Hi teams
As the title, is there a way to find out what codes/functions are running before an interrupt.
Say WDT interrupt for example. Once my WDT time out, my processor trigger an interrupt, and it pushes some registers onto the stack and jump to my WDT_ISR(). So from my WDT_ISR(), how can I find out what which function is being interrupted??
PS:
I was thinking programming in C, for AVR/PIC/MSP/STM32 MCU.
As the title, is there a way to find out what codes/functions are running before an interrupt.
Say WDT interrupt for example. Once my WDT time out, my processor trigger an interrupt, and it pushes some registers onto the stack and jump to my WDT_ISR(). So from my WDT_ISR(), how can I find out what which function is being interrupted??
PS:
I was thinking programming in C, for AVR/PIC/MSP/STM32 MCU.