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.

CCS/TMS570LS3137: The EMAC sample code causes a FlashECC error

Part Number: TMS570LS3137
Other Parts Discussed in Thread: SEGGER

Tool/software: Code Composer Studio

When I use the officially provided LWIP sample code, I have no problem using it directly.

But when I enabled FlashEcc in sys_startup.c, initialized the ESM module and enabled the  Interrupt,there are some error.

this is the code :

_coreEnableFlashEcc_();
.......
esmInit();
esmSetInterruptLevel(0xFFFFFFFFFFFFFFFF,0xFFFFFFFFFFFFFFFF);
esmEnableInterrupt(0xFFFFFFFFFFFFFFFF);

And Then I found that the first load was over without a problem,

But the second time I Debug it, I find that it enters an endless loop of sys_startup.c

Read the ESM_stat3 register to indicate an ESM Group3 Channel7 error.

At this point, I think that this sample code causes a FlashECC error.

My other local programs, which had FlashEcc and ESM capabilities , did not make this mistake, but the same thing happened when I ported the official EMAC sample code.It's going to go into this loop.

So that's my question

Thank you for your help