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.

[参考译文] RM46L852:CCS 本地字符阵列未正确初始化

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1207028/rm46l852-ccs-local-char-array-not-correctly-initialized

器件型号:RM46L852

您好!

应使用字符串"Hercules"初始化的本地字符数组"tx_data"。 执行后、使用"0"值初始化数组、请参阅调试屏幕截图:

我们必须做些什么来纠正这种行为?

(相同的数组静态或全局已正确初始化。)  

(构建环境与 rm46_can_boot 项目相同)。

坦克和此类物品、

Renaud 先生  

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

    您好!  

    这个问题已经解决、并且特定于"rm46_can_boot"项目、其中 const 段必须由"应用软件"加载

    (memcpy (&constRunStart、&constLoadStart、(uint32)&constLoadSize);)。

    加载 const 段后、所有器件都会正常运行。

    谢谢。此致

    Renaud 先生