我使用的是结合了AVR32Studio 2.6的AT32UC3B0256微控制器,我希望在闪存末尾的固定地址(例如,位置0x80799999)使用一个常量变量。
const int variable __attribute__((section(????))) = 1234;有什么想法吗?
发布于 2015-08-18 17:21:27
在程序使用中
const int variable __attribute__((section(".varaddress"))) = 1234;并在您的链接器脚本中添加此标志:
-wl,--section-start=.varaddress=0x80799999你也可以在AVR中查看Memory Sections
https://stackoverflow.com/questions/32052884
复制相似问题