AnsweredAssumed Answered

Query related to reading current stack poniter DS32K142

Question asked by Sandip Ardalkar on Sep 4, 2019
Latest reply on Sep 6, 2019 by Victor Jimenez

We have query related to reading current stack pointer with STS instruction.  Below is macro defined to read current SP, but it is giving compilation error (identifier STS is undefined)


#define GET_STACKPOINTER(x) _asm(STS x) Is the STS instruction supports for cortex M4 (DS32k142)?


Please let us know if you have any alternative solution for getting current stack pointer with direct RAM accessible instruction.