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.

全局变量仿真是无法恢复初值



CCS5 仿真28034时,restart后全局变量无法恢复赋予的初值(不为0),而是保持之前的数值,

点击CPU reset,程序跑到0x003ff8a1的rom区域里面,全局变量仍然没有复位,

resume,跑到0x003ff599,停住,还是在rom里面,

查看map,这两个地址没有定义什么,

再restart,变量的数值还是没有复位。

除非terminate退出来,再重新debug,否则变量的数值就是不恢复初值。

我知道restart跳过了引导程序,但是cpu reset这样是不是不太正常。

这样仿真很烦,请高手们指点一下。