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.

[参考译文] TM4C123BH6ZRB:如何设置堆栈指针

Guru**** 2578945 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1124715/tm4c123bh6zrb-how-to-set-stack-pointer

器件型号:TM4C123BH6ZRB

您好!

我已将我们的引导加载程序移植到 TI 硬件。 最后一步是在跳转到应用程序之前设置堆栈指针、通常可以通过一些内联汇编语言来完成这些操作

void __Set_MSP (uint32_t val)

  _asm volatile ("MSR MSP,%0\n":"r"(Val ):"sp");

但是、使用 TI v20.2.6.LTS 编译器时、不支持内联汇编。 是否有办法解决这个问题?

感谢您的任何建议

此致

Lothar