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.

TMS570LS1227: SPI communication in fail after microcontroller reboot

Part Number: TMS570LS1227

Hello,

a colleague of mine is working with the TMS570LS1227. In his test environment the TMS570 is acting as an SPI slave and it is connected (via SPI) to an IMX6 CPU Board, acting as an SPI Master. TMS570 and IMX6 are embedded in the same CPU board and have the power supply in common.

 After flashing the SW on the microcontroller, the SPI communication works fine unless he needs to reset the board. After a reset, he reports

 << If I turn off the motherboard, and after a subsequent power on, the communication via SPI fails and is not restored.

It is necessary to load the microcontroller software again to restore communication.>>

Do you have any idea about the problem?

Thanks

  • Hello,

    After reset, please connect the target through JTAG. Then check the ESM error status registers (ESMSR1, ESMSR2, ESMSR3) and nERROR pin ststus register (ESMEPSR). 

    If any bit of status register is set, please clear the bit by writing 1 to this bit. Then clear ERROR Pin status register by writing 0x5 followed by 0x0 to ESMEKR register. nPORRST is able to clear ESMSRx and ESMEPSR registers.

    If any bit of ESMSR3 is set, the code will fall in a loop in sys_startup.c: