With some of you guys with experience in embedded systems, I wanted to ask a question regarding overflowing the stack.
Typically, you define what areas of memory are used for in the linker directive. Now lets say you split up some memory for multiple uses. We currently have it so that if we overflow the stack, we run into memory regions we own already, however we are still getting a watchdog reset. The region that it happens to flow into isn't used for about 5KB so it has some space available.
We have defined however in the linker directive how much space should be used for the stack. Are there internal protection operations going on within the controller that could cause us to get a reset even if we are still using space allocated to us? I ask this because we don't actually have access to the low level code of the microcontroller. We load executable code in other regions, and we have a less than cooperative vendor.
FYI, we are using a MPC5566 if anyone happens to be familiar. I wouldn't even mind just having an explanation of what results are typical in a situation like this since I have no background in this field.