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/TMS570LS3137:如何调整堆栈大小

Guru**** 2487425 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/738100/ccs-tms570ls3137-how-to-chage-stack-size

器件型号:TMS570LS3137

工具/软件:Code Composer Studio

你(们)好

   客户希望增加堆栈大小。  

1) 1)在 CCS 中 有两个到堆栈大小的位置中继、如下图所示、一个在 cmd 文件中、另一个在 Project Properties -> Build -> ARM Linker -> Basic option -> Set C system stack size 中。

  我不知道哪个是设置堆栈指针大小的正确位置。

2) 2)最大堆栈大小是多少?  

谢谢

   

   


  

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

    1.--stack_size=0x800在 CCS 链接器选项中定义(您的第二张图片)
    2.用于堆栈的内存部分在 cmd 文件中定义(您的第一张图片)。 此区域应>=--stack_size、在 CCS 链接器选项中定义
    cmd 文件中栈的起始地址应该与 sys_core.asm 中定义的起始地址一致:

    userSp .word 0x08000000+0x00001000
    svcSp .word 0x08000000+0x00001000+0x00000100
    fiqSp .word 0x08000000+0x00001000+0x00000100+0x00000100
    irqSp .word 0x08000000+0x00001000+0x00000100+0x00000100+0x00000100
    中止 Sp .word 0x08000000+0x00001000+0x00000100+0x00000100+0x00000100+0x00000100+0x00000100
    undefSp .word 0x08000000 + 0x00001000+0x00000100+0x00000100+0x00000100+0x00000100+0x00000100+0x00000100