Why stm32cubeide does not throw error when stack overflowed?
Hi. I was trying to test my code to see if I have enough stack. I realized in my project's .ld file stack size is defined as:
_Min_Heap_Size = 0x200;
_Min_Stack_Size = 0x400;
However, I tried to test this to see if stm32cubeide gives error when I tried to exceed defined memory size. I declared a local variable inside a function and checked stack pointer. When I call my function inside main, stack pointer seems to go somewhere it shouldn't. For example 0x1FFFFFF6 which is memory domain for code segment and not SRAM. Same thing happens when I declare a local variable inside ISR.
My question is why stm32cubeide do not throw an error when I pass the defined stack size? Do I have to test max occupied stack for each code manually?
Thanks.
