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.

CCS10.1.0 中 watch expressions 中无法读取寄存器映射地址,显示Memory map prevented reading 0x00B4A@Program

Other Parts Discussed in Thread: C2000WARE

使用CCS10.1进行仿真,芯片是280025C,使用C2000Ware 3_02_00_00  ,程序可以正常运行,在用watch Expressions时,出现如图的问题:

在watch寄存器对应的结构体时,出现Memory map prevented reading 0x00B4A@Program的错误,但观察Registers和Memory Browser时,可以看到寄存器对应的地址中是相应的数值的。

如果将Expressions中的结构体中“.”改为“_”,或者直接将Registers添加进Expressions中,可以正常观察。用户自定义部分的内存也可以正常观察。

我怀疑是Expressions错误识别我所添加的寄存器的数据类型,寄存器对应的应该是Data,从Memory Browser中也能看出这点,但Expressions在读取时,将它们视为Program,所以无法正确读取。但这点我不确定,会不会是我的CMD文件那里有问题,担心程序运行也会有问题。

x 出现错误。请重试或与管理员联系。