请问如何在MSS中指定全局变量的存放地址,谢谢
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.
可以用DATA_SECTION伪指令定义#pragma DATA_SECTION ( symbol , " section name ")。请看下面ARM编译器手册5.11.7 The DATA_SECTION Pragma。
https://www.ti.com/lit/ug/spnu151w/spnu151w.pdf
在.c文件里定义全局变量。
#pragma DATA_SECTION(bufferB, "my_sect")
char bufferB[512];
在cmd文件里把my_section分配到指定地址。