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.
Tool/software: Code Composer Studio
Hello,
I have started to work with the Hercules family device - RM44L520. I try to make a project, blinky, which will be working from RAM and blink with the LED connect to the N2HET1[0] pin. I made a HalCoGen project and create the new CCS project "giotest" and try to debug the device(on my own board) with the TI XDS200USB. When I start the debug the code I am not able to reach the main(void) procedure due to the program stuck in the infinite "for" cycle in the sys_startup.c file:
/* Check if there were ESM group3 errors during power-up. * These could occur during eFuse auto-load or during reads from flash OTP * during power-up. Device operation is not reliable and not recommended * in this case. * An ESM group3 error only drives the nERROR pin low. An external circuit * that monitors the nERROR pin must take the appropriate action to ensure that * the system is placed in a safe state, as determined by the application. */ if ((esmREG->SR1[2]) != 0U) { /* USER CODE BEGIN (24) */ /* USER CODE END */ /*SAFETYMCUSW 5 C MR:NA <APPROVED> "for(;;) can be removed by adding "# if 0" and "# endif" in the user codes above and below" */ /*SAFETYMCUSW 26 S MR:NA <APPROVED> "for(;;) can be removed by adding "# if 0" and "# endif" in the user codes above and below" */ /*SAFETYMCUSW 28 D MR:NA <APPROVED> "for(;;) can be removed by adding "# if 0" and "# endif" in the user codes above and below" */ for(;;) { }/* Wait */ /* USER CODE BEGIN (25) */ /* USER CODE END */ }
What is the reason of this ESM group3 error? I am attaching my blinky_from_RAM project to help solve my problem. I will be very grateful for any suggestions to solve my problem with code loading.
Regards,
Tomas
Hello Tomas,
ESM (Error Signaling Module - Chapter 12 of device TRM) channels are devided into three groups. Group 3 channels indicate errors of the highest severity and always generate an nERROR pin output.
To identify the reason you should read the value of ESMSR3 (ESM Status Register 3). This register is dedicated for Group 3. (ESM module )
The meanings of different channels are described in Table 6-31 of device Datasheet.
Best regards,
Miro
Hello,
I assume you have resolved this issue and I'll close this thread for now. You can always reopen it with posting in this thread or you can open new thread.
Best regards,
Miro