Need help with proffie compile

i have followeed all the steps in this video, How to Upload Bladestyles to LGT Proffie Lightsabers - YouTube ecept that zadig wont find the SM32Bootoader. my pc somewhat recognises the proffieboard as it shows up in connnected devices. on arduino it also finds it as a port. when i try to compile my proffieos.ini i get the following error,

Arduino: 1.8.16 (Windows 10), Board: “Proffieboard V2, Serial + Mass Storage + WebUSB, SDCARD (SPI), 80 MHz, Smallest Code”

c:/users/melvi/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 24 bytes

c:/users/melvi/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 24 bytes

c:/users/melvi/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\melvi\AppData\Local\Temp\arduino_build_829331/ProffieOS.ino.elf section .text' will not fit in region FLASH’

c:/users/melvi/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 24 bytes

c:/users/melvi/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 24 bytes

c:/users/melvi/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 24 bytes

c:/users/melvi/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: region `FLASH’ overflowed by 10832 bytes

collect2.exe: error: ld returned 1 exit status

exit status 1

Error compiling for board Proffieboard V2.

This report would have more information with

“Show verbose output during compilation”

option enabled in File → Preferences.

what does this mean and how can i fix this?

Hi @Phoenix_Rises2 could you post your config as this may help trace your issue.
One of the errors I believe is that your config is bigger than the flash memory on the proffieboard.

This is the problem, your config is too big/complicated.

Further information: https://github.com/profezzorn/ProffieOS/wiki/Saving-Memory

2 Likes

Wow dude your config is huge as prof said.
I tend to squeeze in about 7 to 9 blades.
Try starting with one of the example configs on the proffie os folder and mod from there.
Its a good way to see how it is structured.

i figured i coppied some of greyscalefonts bladestyles it had tons of text after // and i read that wasnt needed

I’m still learning as there is lots to figure out with this stuff.
Greyscale has some cools stuff for sure.
I started with using one of the configs from the os folder, then changed one of the blade styles to one i liked and just built up from there.
Found it was an easy way to build up my knowledge for this part.

Comments (lines that begin with // ) are ignored by the compiler and take up zero memory.
Spaces and line returns are also ignored.

You also are missing some closing > at the end for the StylePtr<Layers< beginning part.
Bank 4 and 7 at first glance. Should make the ending >>() You have ()

i managed to make it small enoug tho fit on the board, it uploaded fine but when the upload finished it disconected itself from my pc and now the saber wont turn on anymore

The bladestyles for Greyscale fonts tend to be overly complicated, so best to limit their usage. You can comment out ones you won’t be using to save space. Swap them and re-flash if you want others to play with.

I would start with one bladestyle, get that working so you know the rest of the config is OK, then add a couple more.

Does it work better if you remove the SD card?
Did you make sure to it says “proffieboard v2” in arduino->tools->board?
Try a very simple configuration file and see if that works better.
You might need to do the BOOT-RESET tango to flash the board again.
Basically, hold BOOT, click RESET, then hit upload in arduino.

Oh, and what version of ProffieOS are you using?

most recent

it doesnt do anythin when i press boot reset or hold one, my pc wont even recognize the board anymore while it did so before

Hold BOOT, press and release RESET, then release BOOT. The PC won’t do anything, Just hit Upload with a known good config file and it should program.
The key to manual bootloader with the buttons is having boot held down while you apply power (releasing reset)

even if arduino doest find the proffieboard port?

Yes, that’s all you need to do.

still doesnt work arduino does the upload but nothing happens i do get this,
c:/users/melvi/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes
c:/users/melvi/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes
c:/users/melvi/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes
c:/users/melvi/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes
c:/users/melvi/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes
Sketch uses 211800 bytes (86%) of program storage space. Maximum is 245760 bytes.
1
2
3
4
5
6
7
8
9
10

nothing worked is it alright to assume something fried?

Nothing fried so good news, its just telling you that it can’t talk to the proffieboard.
You might needs to do the boot reset again and try to upload again.
You computer should see it as stm32bootloader.
In which case you will have to use zadig to change your USB driver.

This means that it didn’t actually upload.

The buttons can be tricky, and there could also be a problem with the cable or possibly even your computer.

This page has better instructions for how to do the BOOT+RESET tango: https://github.com/profezzorn/ProffieOS/wiki/Is-it-uploading%3F