cancel
Showing results for 
Search instead for 
Did you mean: 

.elf section `.bss' will not fit in region `RAM_D1' C/C++ Problem

yogui_ricardo
Associate II

Any idea how to solve this? My board is: stm32h753ZI, I think it has plenty of memory, but I don't know where or how to modify it, or which bank to choose. Where could I find info to configure it and also learn more about the subject? Thanks

1 REPLY 1

Use less of it?

Check the Linker Script (.ld) file, see what RAM regions are defined, and what you're putting in each. There's quite a lot of RAM but it's not contiguous, as it resides at different addresses within the address space.

If you initialize more than one RAM region, you'll need to manage those in the script and the startup.s file.

Make the RAM bigger in the .ld so you can get closure, and then look at the .MAP file to understand what is sucking up all the resources. Avoid large global allocations. Put frame/display buffers elsewhere.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..