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.

[参考译文] CSS-AM243X:使用 MCU-PLUS-SDK Theia 增加 LaunchPad AM243x 的堆和堆栈大小

Guru**** 2465890 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1473450/mcu-plus-sdk-am243x-increasing-heap-and-stack-size-for-launchpad-am243x-using-css-theia

器件型号:MCU-PLUS-SDK AM243X

工具与软件:

我认为在程序的调试运行中我正在耗尽堆、并且动态内存调用(例如 malloc、calloc)失败。  

我已尝试增加尺寸(如下)。 在基本链接器选项中、我尝试了以 KB、B 以及十进制和十六进制格式输入值、但没有效果。 只要我能告诉我什么都不做就是改变堆的大小。  

我查看了 CCS 用户指南、 除了提到耗尽堆资源可能会导致 printf 问题之外、我找不到任何帮助。 可能错过了、但在论坛中也找不到任何内容。  

我目前仅使用单个内核而没有 RTOS。。。 我的问题是:

1) 1)能否增加堆大小? 如果是、如何实现?

2) 2)过渡到使用两个内核时、需要进行哪些调整?

提前感谢。

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

    您好!

    感谢您的提问。

    要修改堆大小、您需要编辑 example.syscfg 文件中的条目。

    请参阅下图。

    此致、

    Tushar