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.

MTS570LS1227 Flash配置ECC后出现错误。FEDACSTATUS寄存器的值不为0。

Other Parts Discussed in Thread: TMS570LS1227, HALCOGEN

最近测试TMS570LS1227的ECC功能,配置完成后,FEDACSTATUS寄存器的值为0x00000100,.同时FCORERRADD寄存器的值为0x00046838.

并且第2次dbugg时,程序会卡死在 sys_startup.c里面的if ((esmREG->SR1[2]) != 0U){for(;;){}} 处。不知道原因是什么?

以下为ECC配置:

1、使用HALCoGen配置Flash的ECC。

在sys_startup.c里生成如下代码。

_coreEnableFlashEcc_的代码如下:

2、CCS 配置Flash的ECC代码,如下: