Problems with config file

I’ve been following The Frugal Jedi’s tutorial on proffie and I got all the way to adding your config file. But every time I verify it I get this error.

C:/Users/wnada/AppData/Local/Arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/14-2-rel1-xpack/bin/…/lib/gcc/arm-none-eabi/14.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe:C:\Users\wnada\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\4.6\variants\STM32L433CC-ProffieboardV2/linker_scripts/STM32L433CC_FLASH.ld:224: warning: memory region `SRAM2’ not declared

lto-wrapper.exe: warning: using serial compilation of 8 LTRANS jobs

lto-wrapper.exe: note: see the ‘-flto’ option documentation for more information

C:/Users/wnada/AppData/Local/Arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/14-2-rel1-xpack/bin/…/lib/gcc/arm-none-eabi/14.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: C:\Users\wnada\AppData\Local\arduino\sketches\C99A29CB8992676C9D5D240F79356A06/ProffieOS.ino.elf section .text' will not fit in region FLASH’

C:/Users/wnada/AppData/Local/Arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/14-2-rel1-xpack/bin/…/lib/gcc/arm-none-eabi/14.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: region `FLASH’ overflowed by 9256 bytes

collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

I know it has something to do with the size of my file but I don’t understand how that can happen because the file was from my manufacturer. Please help I’m very new to proffie.

and

Means your config is too big.

You can start by following this link and remove some of the extra:

If that is not enough, you will need to remove a preset or two or three,… until it all fits in your ProffieBoard Flash memory.

Did you add anything to it ?

If you post your config, we can take a look.

If you do, please use 3 back ticks before and after your config, like this:

```
Your config (or Arduino error code) here
```

It makes your config a lot easier to read for us.

Sometimes, unfortunately, manufactures can make mistakes and send the wrong files. They are humans after all! Some manufactures don’t care and just send something because they are supposed to.

I’ll send the code tomorrow I got the saber from dark wolf and they put over 40 sounds on it and honestly about 20 are maybe worth it. But how did they get that many if it was too big

Do you have a Proffie v2.2 or 3.9 ? I have over 50 fonts on my v3.9 but only half or less would fit on a v2.2!

You should probably ask that to them.

What ProffieOS are you using and what OS came pre-installed on the saber could make a difference. Newer OS is better but also a bit bigger.

I got a v2.2 and it should have the newest os on it which is a 7.14 I just got it last week lol

The latest stable version is 7.15, the latest beta is 8.3 and I am using 8.x from github (not yet released as an official version). I saw on dark wolf page that they provide support for v6.9

Yeah that’s what I have I haven’t updated the board or anything considering I haven’t got past putting my config file in there. Sorry I am pretty new to this, just wanted to learn how to do it right not some 10 minute speedrun from a guy on youtube lmao.

then just check the page I linked above, it will tell you how to remove what most users never need/use

Neopixel1xswitchneo32.h (84.4 KB)

This is the config file that came with my saber.

It is a good looking config, seems as optimized as can be to cram as many presets (a preset is a sound font + blade style) as possible.

Unfortunately for you, it was optimized for ProffieOS 6.9 (I think).
If you want to use the latest stable ProffieOS 7.15 (which is bigger than 6.9), you will need to remove some preset(s).

I removed one (bank26), the most memory hungry. I didn’t delete it, I just commented it out by adding // in front of it.

I hope it is not your favorite because I started by removing the bottom 2, that barely did anything, then I tried removing the bottom 10, then 15 and it was still too big!
Billy_Adair_Neopixel1xswitchneo32.h (84.4 KB)

I’m willing to comment out some more because I saw some cool fonts by jaydalorian i wanted to use. If I send the config file with presets commented out it’ll just remove them from the board until I flash it again to add them in the future if I want right? Also do i need to change any other files before I flash the board?

Every time you flash, the whole configuration of the board is overwritten.
So there is no “remove” step. Everything is just overwritten.
You do not need to change any other files. (Except possibly adding fonts to the SD card.)

I didn’t comment out a “font”, I commented out a preset for you.
A preset is font + blade style. A font will not take more space than another. A “complicated” blade style can take a lot more space than 20 simple blade styles.

1 Like