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.

如何将msp430 变量的初始化值保存在指定的存储单元上



Hi,

msp430f5438a,CCS7.4 环境,

参考

代码中添加如下:

#pragma DATA_SECTION(temp, ".infoD")

int temp = 20;

编译成功后,在生成的TI-TXT中,没有看到类似@1800的字段。

从viem--->Memory Allocation中,看到INFOD segment被占用了2个字节,

程序下载到mcu中,读取0x1800地址的值,显示为FF。

请问,还需要如何修改??