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.

[参考译文] MSP430FR6043:NOINIT 无法正常工作

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1314428/msp430fr6043-noinit-not-working

器件型号:MSP430FR6043

我们有一个不希望在对板进行编程时进行初始化的变量。  

我们在代码中使用了#pgrama NOINIT (VarName)、并且在链接命令文件中使用了 main.obj (.TI.noinit:VarName)。

如果我们对开发板进行编程并手动设置该值、它将像 persistent 变量一样按照预期通过移除和恢复功率来保留该值。  

但是、如果我们再次对板进行编程、该值将被擦除并再次重新初始化为0。  

还有其他建议吗?  

谢谢。

布伦特

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

    选中"Project"->"Properties"->"Debug"->"MSP Flash Settings"->"Erase Options"。

    你想要"擦除和下载必要的段"(或者可能是"更换写入的内存位置"-我忘记了)。