王工:
您好,通过XDS100仿真器下载TMS570LC4357的程序,下载完成后重新上电,CPU ERROR灯点亮,程序正常运行。通过查看
ESM寄存器esmREG->SR1[1]对应的值是8。查看手册,可能是ECC问题。

通过J-Link仿真器下载,CPU ERROR不亮,未报错这个错误。
请问为什么出现这种情况,或者使用xds仿真器需要如何配置?
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.
王工:
您好,通过XDS100仿真器下载TMS570LC4357的程序,下载完成后重新上电,CPU ERROR灯点亮,程序正常运行。通过查看
ESM寄存器esmREG->SR1[1]对应的值是8。查看手册,可能是ECC问题。

通过J-Link仿真器下载,CPU ERROR不亮,未报错这个错误。
请问为什么出现这种情况,或者使用xds仿真器需要如何配置?
Hi Bo,
Under certain circumstances Cortex-R4/R5 can perform SPECULATIVE Instruction prefetch and SPECULATIVE data prefetch beyond the address ranges defined by the application image.
So the ECC values for all of the Flash memory space (Flash banks 0 through 6) must be programmed into the Flash before the program/data can be read. This can be done by generating the correct values of the ECC for the whole flash using linker cmd script.
https://software-dl.ti.com/hercules/hercules_docs/latest/hercules/How_to_Guides/index.html
I am sorry that I forgot to mention that the ECC generation should be turned on.
CCS project property --> Build --> ARM Linker --> Advance Options --> Linker Output
In the Linker Output panel, select "on" for "Control whether ECC generation is on or off"
