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: TMS570LC4375 - Power on/off error

Other Parts Discussed in Thread: TMS570LC4357

Tool/software: Code Composer Studio

I test power on/off by Physically(power code plug in/out by hand). And i check by LED on (if the code enter main loop LED on).

Experiment environment :

 - Hardware : TMS570LC4357(Developement kit) 

 - Software(basefirmware) : Ti safety library.

The problem is that the code is stopped in HL_sys_startup.c(I think -> the esm error is occurred or code is trapped in self-test because is failed)

I want to know why this problem is occurred.

The additional test :

1. reset repeat : the same problem is occurred.

2. por reset repeat : the same problem is not occurred.

Regards,

Minwoo

  • Hello,

    Please, try to identify where where application has stopped. You can put breakpoint in sys_strartup.c and then reset the device in debug mode and step over the code.

  • Hello, Miro

    I want to find the point. But this problem is occurred when power off to on physically. So I think it is possible to use debug.

    Can you guide use Debug-mode this situaiton if it is possible?

    Regards,

    Minwoo

  • Hello,

    You have mentioned that this issue appears also at restart. If so, you can start debug session and then from Run menu you can disconnect JTAG. After that push reset button and then again from Run menu choose Connect for continue debugging JTAG again and check the status.

  • Hello, Miro

    I test the board as your recommend. When I push reset buttom, _excpt_vec_abort_data is occurred. Why is this error occurred? 

    I just change  base Ti Safety Library in HL_sys_startup.c. I insert ESM reset code. Greenline is new inserted code.

           // esm reset code G

            esmREG->EKR = 0x0a;// insert error to join in error state
            esmREG->LTCPR = 0x00003fffu;
            esmREG->SSR2 = 0xffffffffu;
            esmREG->SR1[0] = 0xffffffffu;
            esmREG->SR1[1] = 0xffffffffu;
            esmREG->SR1[2] = 0xffffffffu;
            esmREG->SR4[0] = 0xffffffffu; //Group1 63:32
            esmREG->SR7[0] = 0xffffffffu; //Group1 95:64
            esmREG->EKR = 0x05;// error reset at error state (error force reset)
            /*while(TRUE == SL_ESM_nERROR_Active()){
                timeoutcnt--;// wait for error reset complete
                if(timeoutcnt == 0){
                    retval.result = fail;
                    break;
                }
            }*/
            esmREG->EKR = 0x00;// error machine now at normal operating


            if ((esmREG->SR1[2]) != 0U)
            {
               while(1); //ESM group3 error
            }

    Regards,

    Minwoo