cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F030 SRAM

markjohnson9
Associate II
Posted on May 02, 2017 at 21:50

Anyone have suggestions on how to free up additional SRAM? I reduced the Stack to 0x200 and Heap to 0x00 and gained almost 1K of RAM. I need like another 500-600 bytes.

Thanks,

MJ

1 REPLY 1
Posted on May 02, 2017 at 22:00

Look at a .MAP file or do some analysis to work out where your resources are currently going.

Can you define things as ''static const'' so they live permanently in FLASH rather than as copies in SRAM?

Can you rework your algorithms to reuse the same memory for different things at different stages?

ie have a bigger stack and use if to scope local/auto variables rather than large static allocations?

Finally

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