I'm a little surprised that I couldn't find an answer to this question so I'll just ask it. I have a farely large Look Up Table which is not initialized and hence will be placed in the .bss section of my TI TMS320F280049 MCU. Not surprisingly the bss section is way to small for that.
So I thought of several ways to fix this issue:
- Increase the .bss section size
- Initialize the LUT (which is not really necessary in my case) and increase the .data size until it fits in there.
- Create a dedicated RAM section for this LUT (must be RAM, flash is not sufficient due to slower access time)
Thanks to a lack of experience I cannot really tell which variant would be best. Is there any reason why you shouldn't screw with the section size of .bss and .data?
Thanks in advance for taking the time to answer!