This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Does RA4M3 have stack pointer monitor?

I want to use the stack pointer monitor to determine which thread crashed the system as explained in the following discussions 

But it seems there is no stack pointer monitor in RA4M3. Can anyone suggest an equivalent mechanism to trace the same thing?

[locked by: Sai (SWF) at 13:14 (GMT 0) on 28 Jun 2022]
Parents Reply
  • Hi Jeremy! 

    I added a separate function body for each exception. And each time a thread is low on the stack a hard fault exception occurs and usage fault never occurs. 

    If I see at that time the PSP and PSPLIM registers are both identical, I know that the stack pointer limit has been violated, but I do not know which thread broke this. Can you help me solve this problem?