Skip to main content
yogui_ricardo
Associate III
October 30, 2024
Question

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

  • October 30, 2024
  • 1 reply
  • 1415 views

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

Tesla DeLorean
Guru
October 30, 2024

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 VenmoUp vote any posts that you find helpful, it shows what's working..