cancel
Showing results for 
Search instead for 
Did you mean: 

How to define STM32N6 variables in external RAM

I am using the debugging mode in STM32CubeIDE, and the compilation result shows that there is insufficient RAM.

27_Touch_Appli.elf section `.bss' will not fit in region `RAM'

region `RAM' overflowed by 94904 bytes

 

1 REPLY 1
mfgkw
Senior II

Assume you have a variable declared like:

some_type   myvariable;

then you can force the linker to place it in a spefic section like this:

some_type   myvariable  __attribute__ ((section (".anothersection")));

 The name of the section must correspond with the desired section in the ld file.