This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM57L843: Detecting stack overflow on all call stacks

Part Number: RM57L843

Hello,

The call stack is split in several parts User, SVP, FIQ, IRQ, Abort and Undefined. If I need to detect the stack overflow, I would perform a test on each part separately or at least in User, SVP, FIQ and IRQ, because Abort and Undefined would be use only once (lead to an infinite loop or reset). Am I correct?

It is better to use the MPU to perform this test?

Is it possible to set up watch-points programmatically to detected the stack overflow?

Thanks in advance for a response,

Marcio.