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/TMS570LC4357: SafeTI Diagnostic Library demo issue

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

hello,

i want to use the  \SafeTI Diagnostic Library\2.4.0   demo to test  my project on TMS570LC4357 .I First referd the demo on the\  ti\Hercules\SafeTI Diagnostic Library\2.4.0\build, I download the demo as follow:C:\ti\Hercules\SafeTI Diagnostic Library\2.4.0\build,use CCS8.3,and refer to the routine under this path C:\ti\Hercules\HALCoGen\v04.07.00\help\TMS570LC43XX\Flies\examples\example_safety_lib.c

I have do as the help\examples\example_safety_lib.c ,but the demo project  can bulid and download,can't debug ,once run ,fly.why?

this is my demo project, can you help me find what's wrong with it?

thanks very much.0257.SL_TMS570LC4357_NoOS2.rar

mary5148.SL_TMS570LC4357_NoOS2.rar

  • Hello,

    The demo project under C:\ti\Hercules\SafeTI Diagnostic Library\2.4.0\build contains a main() function which calls SL APIs. You don't need to use the example code in HALCoGen.

    The main() function is located in the file: app_main_NoOS.c under the folder of C:\ti\Hercules\SafeTI Diagnostic Library\2.4.0\demo_app\common\source
  • 4101.spnc043b(1).zip

    hello.

    Thank you very much for your reply. I did as you suggested, and did not use that example code in HALCoGen. Re-download 2.4 and open the project, compile and run, but fly in an instant. What is the reason?

    This project starts from _c_int00(void) of HL_sys_startup.c, executes to line 144: switch(resetReason), and returns to line 143: resetReason = SL_Init_ResetReason(). Is this normal? Is the compiler (free version) working prQJ Wangoperly? resetReason==RESET_TYPE_UNKNOWN, shouldn't it jump to the default? I set a breakpoint for default. The program does not jump from 144 to default. How do you explain this?

    thanks very much  .

  • Hello,

    Can you please add a breakpoint at resetReason = SL_Init_ResetReason(), and read the value of the SYSESR register manually using CCS->View->Registers?

  • Thank you very much for your reply. I have the following three questions to ask you:

    (1) After reading the e2e.ti.com/.../714381 content, I ran the code of this demo as before and wanted to confirm the reason why my code was running fly. It turns out that the code ran to the _SL_Kickoff_STC_execution() statement and ran away. I have not found the reason yet.
    (2) In the single-step debugging process, the value of R12 is always changing, and R4 is always 0. How to explain?

    (3)the code died in different places,such as :

         line a.  while(1);//ESM Group2 error,

        line b.   while(1);//ESM Group3 error;

        if(RESET_TYPE_DEBUG != resetReason)//!=
        {
            if(RESET_TYPE_ICSTRST != resetReason)
            {
                /* Memory interconnect selftest */
    linec:            SL_SelfTest_MemoryInterconnect(MEMINTRCNT_SELFTEST);
            }


    The program stopped at these places linea,b,c and no longer runs. why?

  • Hello,

    Most likely it is caused by the wrong ECC value.

    When you load the program, please generate and load the ECC too --> CCS Connect JTAG target --> CCS Tools --> On-Chip Flash