2013-09-13 02:39 AM
Hi,
I'm doing my first project with the STM32F051x8. Yesterday may code was not running in cause of heap problems. I played around with the 'startup_stm32f0xx.s' file, set different sizes for Stack_Size, HeapSize. Can anyone explain to me where Stack and Heap is placed too? What are the limits for Heap_Size and Stack_Size? Thanks Matt2013-09-13 04:03 AM
Using Keil?
To see where they are placed, look at the .MAP file, typically they are place at the end-of-ram consumed by your other statically allocated variables. The limitation on combined size of statics + heap + stack is thus you available RAM (often IRAM1 per the Target Pane under options, or Scatter File)2013-09-13 07:16 AM
Yes, I'm using Keil.
Thanks for the help. Code is now running.