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.

CC1312R: Setting the SP from C

Part Number: CC1312R


Hi

I'm using CCS11 with SDK5.30 on a CC1312R

I need to set the main Stack Pointer from a C program:

Something like this:

uint32_t App_VectorTable_Stack;

App_VectorTable_Stack = * ( (uint32_t*) APP_ADDRESS );

__set_SP ( * ( (uint32_t*) APP_ADDRESS ) );

I found in 2 files:

ti\simplelink_cc13xx_cc26xx_sdk_5_30_01_01\source\ti\devices\cc13x4_cc26x4\cmsis\core\cmsis_gcc.h

ti\simplelink_cc13xx_cc26xx_sdk_5_30_01_01\source\ti\devices\cc13x4_cc26x4\cmsis\core\cmsis_iccarm.h

but these seem to be for a different processor and a different compiler... And they instead have a __set_MSP define.

Any ideas how can this be achieved? thanks.