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.

[参考译文] TMS320F28388D:闪存和 RAM 中的变量放置

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1467738/tms320f28388d-variable-placement-in-flash-memory-and-ram

器件型号:TMS320F28388D

工具与软件:

尊敬的团队:

根据文档,我们理解,如果我们在链接期间使用--rom_model 标志,那么所有的全局变量都会被添加到闪存中,并且在启动期间,它会被复制到 RAM 位置。



在闪存中、链接器创建.cinit 段并存储变量的初始值。

1.如何找到存储在.cinit 段中的变量初始值的位置。

2.如果上述用例不可行,那么如何在链接时使用--rom_model 选项将变量放在 ram 部分

谢谢!

Vikram