AnsweredAssumed Answered

How to get PC, LR and other information of all threads in a multi threading system?

Question asked by Preet Mehta on Jan 2, 2017
Latest reply on Jan 3, 2017 by Daniel Chen

Hello All,


I am trying to capture all the possible information for all the threads from a "so called monitor" thread, like PC, SP, LR or whole TD.

I am able to get SP_BASE and SP and SP Limit from the TD_STRUCT of MQX.

But I am not able to find PC and LR.


Let me clarify my motive behind my active which is to gather all such information of TD while Watchdog is going to trigger.

So in my system I am using api to get TD and accessing it's info.

Does anyone know how can I get value of last PC of all the threads?