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:通过 C 设置 SP

Guru**** 2522770 points
Other Parts Discussed in Thread: CC1312R

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1063582/cc1312r-setting-the-sp-from-c

器件型号:CC1312R

你(们)好

我将在 CC1312R 上使用具有 SDK5.30的 CCS11

我需要从 C 程序设置主堆栈指针:

如下所示:

uint32_t App_VectorTable_Stack;

APP_VectorTable_Stack =*((UINT32_t*) APP_ADDRESS);

__set_SP (*((UINT32_t*) app_address ));

我在2个文件中找到:

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

但这些似乎适用于不同的处理器和不同的编译器... 而是具有一 个_SET_MSP 定义。

有什么想法如何实现这一点? 谢谢。