Copyright ©

Mongoose OS Forum


CC3200 - How to get Stack Pointer

On the CC3200, is there a way to get the stack pointer? I have tried embedded assembly in C to obtain the pointer but since it returns a value it won't compile. See code below.

unsigned int getStackPointer(void)
unsigned int result;

__asm("mrs %0, psp" : "=r" (result));



I need the stack pointer to pass into PRCMLPDSRestoreInfoSet.


Sign In or Register to comment.