Skip to main content
markjohnson9
Associate III
May 2, 2017
Question

STM32F030 SRAM

  • May 2, 2017
  • 1 reply
  • 544 views
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

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    May 2, 2017
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..