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.

[参考译文] CCS/RM48L952:如何更改堆栈大小

Guru**** 2609895 points
Other Parts Discussed in Thread: RM48L952

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/762002/ccs-rm48l952-how-to-change-the-stack-size

器件型号:RM48L952

工具/软件:Code Composer Studio

我使用 RM48L952、CCS 为 V6.2.0.in CCS 工程,我创建一个函数  

void COD(void)

uint32 temp[1023];

TEMP[0]= 0;

uint16 i =84U;
I = I%93U;

在调试模式下,当运行到 “” i = i%93U 时,程序将转到系统中止函数。 如果我将 uint32 temp[1023]更改为 uint16 temp[1023]、则程序运行正常。 因此、我认为它与堆栈大小集有关。

我更改  cmd 文件中的堆栈  

存储器

引导程序(X):origin=0x00000000 length=0x00000020
FLASH0 (RX):origin=0x00000020 length=0x0017FFE0
FLASH1 (RX):origin=0x00180000 length=0x00180000
堆栈(RW):origin=0x08000000 length=0x00004000
RAM (RW):origin=0x08004000 length=0x0003C000

/*用户代码开始(2)*/
/*用户代码结束*/

但是、注释发生了变化。  

我的问题是如何更改堆栈,我是否忘记了? 还是其他原因? 非常感谢!

圣战

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

    您好!
    检查此主题是否有助于:

    此致、
    米罗