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.

[参考译文] TMS570LC4357:如何控制自定义存储器部分中全局变量的顺序

Guru**** 2391115 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1464596/tms570lc4357-how-to-control-the-order-of-global-variables-in-custom-memory-sections

器件型号:TMS570LC4357

工具与软件:

您好、
我的目标是确保全局变量放置在特定的段中(例如.shared_data)并在内存中保持特定的顺序,而不依赖于结构、指针或位置运算符。 但是、使用KEEPretainsection不能实现这一点。
非常感谢您的任何帮助!