Why '.bss' was created in both Flash and RAM? This causes "section `.bss' will not fit in region `RAM'" in my application.
Hi All,
I have created a STM32 application using STM32CUBDEIDE. I'm using STM32F469IH6 for this project.
I have declared few uninitialized variables in one file. I know this affects ".bss" section but it is required in my code. This causes an error saying "section `.bss' will not fit in region `RAM'" in my application". I have few question regarding this?
- Below image shows Memory details in Build Analyzer from Map file. Why '.bss' was created in both Flash Memory and RAM ?
- How can i change the code to use only ".rodata"/".bss" section in Flash memory instead of RAM? I have written below piece of code to use C variable in ".rodata" section in the Flash but it was creating in RAM in a separate section called "RO".
float C[40000] __attribute__((section ("RO")));3.Same object file(predict.o) was stored in both '.rodata' and '.bss' sections? I have attached .map file for more details.
Please find the map from below location:
https://drive.google.com/file/d/1AOiWwmsoodgzdnbz0I5Hp1NzAgetNKRA/view?usp=sharing

Thanks in advance,
Hari
