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.

TMDSDOCKH52C1: Concerto

Part Number: TMDSDOCKH52C1
Other Parts Discussed in Thread: SYSBIOS

Hi,

I would like to write a c code for TIRTOS on Concerto platform, that reads the value of MSP (master stack pointer) register into the variable foo.

How am I doing it?

  • My question is about the M3 processor side

  • I'm not aware of any existing code for this in SYSBIOS. There's Task_stat() and Hwi_getStackInfo() functions to get stack info, but it sounds like you want to do a direct read of the register, right? I think in that case, you'd need to write some assembly--either using inline assembly or writing a C-callable assembly function (probably the safer option) that reads the SP and returns it.

    Whitney