2021-10-25 01:16 AM
I have this problem
myOSLautomatic500.elf section `.bss' will not fit in region `RAM'
region `RAM' overflowed by 652336 bytes.
my memory is here.
/* Specify the memory areas */
MEMORY
{
ITCM_RAM (rx) : ORIGIN = 0x00000000, LENGTH = 16K
CCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
RAM (xrw) : ORIGIN = 0x20020000, LENGTH = 384K
FLASH (rx) : ORIGIN = 0x08040000, LENGTH = 896K
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
}
I know in .map file we can see where exactly this memory issue is happening. But, i am not able to figure how and where exactly in the .map extension file we have to check.
I have also attached the .map extension file here.
Any idea what exactly happened and where exactly it can be checked?
2021-10-25 06:17 AM
> Any idea what exactly happened and where exactly it can be checked?
Sounds like the amount of data you want to store in RAM is 650kB larger than the 384kB you have available. Probably due to a large array you're trying to put there.
2021-10-25 06:23 AM
Thank you so much for the reply. yes, you are right, but is it possible to find out by looking at the .map file, exactly in which file i might have declared it??
I tried checking but could not find out where exactly the problem might be. (I believe i havenot declared any array of that big size anywhere in my code)
2021-10-25 06:52 AM