Question
STM32F030 - Heap start and end address and usage
Hi,
My uC (STM32F30K6T6) is full in RAM memory.
To optimize the RAM size, I have planned to reduce the Heap Size Memory (initial Heap size is 0x400).
I do not use any manual memory allocation so, I think I will set it to a quarter of it (0x100), just in case.
It leads me two interrogrations about heap and stack :
- how to check and know the exact start and end addresses of the heap and stack memory ? This, to check, in debug mode, the live usage (using IAR RAM memory live watch) of each.
The .map file just give that piece of information:
Following the described order, should I expect to have first rw, then CSTACK and at the end of RAM memory the heap ?
At next question, we see that I have hint about the CSTACK start and end RAM addresses (0x2000 0C00 to 0x2000 1000) but what about the Heap adresses? - From now on, I don't see any correlation between what I see in the CSTACK usage tool and the RAM Memory
- Live watch (where I suppose to have the stack)

- I see only 20bytes (CSTACK usage tool) while I see at the end of RAM


For information, here is what I have in the .map file using the stack tracking usage of IAR tool
- Live watch (where I suppose to have the stack)
