I haven’t posted here in a while so I forgot how to send the error messages for easy viewing, but I am trying to add a new blade style and soundfont to my proffie saber. I removed one to replace it with the new one. However, when I try to verify and upload, I am getting messages saying “warning: changing start of section .bss by 8 bytes” 5 times and a message saying “warning: memory region ‘SRAM2’ not declared”. It then displays that my sketch is using 95% of storage space and then has the numbers 1-10 below it and says done uploading. Then when I unplug my saber and turn it on, my saber says something that I cannot understand and the font that is supposed to be there is not there, but the deleted blade style that is no longer in my config is still on my saber with no soundfont with it, just silence. What is going on? I’ve added and deleted many soundfonts from my saber and never had this happen.
To post an error message or config that isn’t super-long, just type three backticks (`) on a separate line, paste the text you want to show (ctrl-V on windows) and then end with another three backticks on a separate line.
The result will look something like this:
The quick brown fox jumped over the lazy dogs back.
If the file is too big to do that (several hundred lines), you an save it as a text file and just attach it to the post instead, OR, you can upload it to pastebin and post a link here.
To see exactly how I typed this post, click the triple-dot menu below, then select the icon that looks like a paper with text on it. (If you hover over it it will say “raw post”.) If you click on it, it will show exactly what I typed.
Now for your actual advice:
This is a warning that can be safely ignored.
All it means is that it had to move something in memory by 8 bytes.
If I knew of a way to turn this warning off, I would, because it is not helpful.
This one can also be safely ignored.
I should probably hunt down what is causing it and fix it though…
This is not so good.
The 1-10 count is while it’s trying to find your proffieboard so it can start uploading to it. When it actually finds the board, it will show a progress bar and start counting percent from 0 to 100. If you don’t get the progress bar, then it didn’t find the board. The most common cause for this is not having selected the right port in Arduino → Tools → Port.
More information:
Okay, it seems to be working now. Thank you!
I dont want to presume too much as I am just joining in here but I was curious about the “SRAM2 not declared” as well as it is the only warning i get.
Looking at my specific setup it is calling on the V2 file STM32L433CC_FLASH.ld and I can see in comparison to some others, SRAM2 is not a defined variable but is referenced later on in the script. Like I said I dont know if there is an global system variable for sram2 I am unaware of but firgured Id chirp in if its helpful.
example from file mentioned above
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 0x00040000
SRAM1 (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00010000
}
Looked up the board datasheet and found the address location ( 0x10000000 ) and size ( 16kb ) so I tried it out and the message no longer comes up. I noticed there was also a mapped location ( 0x2000c000 ) for SRAM2 but looking at other examples looks like this uses the hardware address.
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 0x00040000
SRAM1 (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00010000
SRAM2 (rwx) : ORIGIN = 0x10000000, LENGTH = 0x00004000
}
SRAM2 actually has two locations in memory, but that’s sort of besides the point.
I removed the SRAM2 definition from this array because I wanted to treat all the ram as one 64kb area, so what we need to do is to find out where it’s being referenced and remove that. Not add it back in again…