I want to protect myself from stack overflow. From several
articles I got the idea that I can locate the stack in the bottom of
the RAM, before .bss section.
Since on Cortex M stack grows down, on stack overflow my code will
attempt to write in non-existing memory and I'll get an exception.
And exception is much better than quit corruption of static data.
I used project for stm32f10x, so 0x08000000 is the beginning of
the flash and 0x20000000 is the beginning of RAM.
Using
ht
↧