Hi,
I tried to run RM57Lx_demo_software project of "Hercules Safety MCU Demos" (4.0.0) from ccsv6.1 environment. However, I was always stucking in the following while loop in the
esmClearErrPin() function:
void esmClearErrPin(void)
{
/** - clear only when the error PIN are set */
if (!esmREG ->EPSR)
/** - clear the error using Error Key Register */
esmREG ->EKR = 0x5;
/** - Wait till the error pin is reset */
while (!esmREG ->EPSR)
;
sciSend_32bitdata(sciREG1, 1U);
}
I also noticed that, when this happens, the ESM1 ESMLTCR register never decrease and its value always stays at the original value 0x3FFF. I guess the ESM1 is not properly initialized when we run the program in the debugging mode.
When flashed the same program image to the TMDXRM57L board and power cycle it, the program runs without any problem and I can interact with target board using the front-end of the demo software.
Does anybody know what is wrong here?
Thanks,
Ruiming