AnsweredAssumed Answered

Get stack pointer of interrupted task

Question asked by Hugo Bouchard on Nov 15, 2016
Latest reply on Nov 25, 2016 by Hugo Bouchard



Is it possible to get the address of the instruction that will be executed first upon a return from interrupt?


Actually, we would like to know the address of the last executed instruction before SWT watchdog is trigger. This address is saved in a part of RAM that is not initialized at startup and thus can be read by the application during initialization. But since MQX switches stack for interrupt, I'm wondering if there is a way to read the stack of the task that was interrupted.