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 - Ti Safety Library optimizaiton level

Other Parts Discussed in Thread: TMS570LC4357

Tool/software: Code Composer Studio

I use TMS570LC4357 board(Evaluation kit). And Ti safey library is used for self-diagnosis.

In the HL_sys_startup.c, the code is problem.

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

I test 3 ways to change optimiziton level.

1. Default option : 3-Interprocedure Optimizations (When I make the project using by Ti Safety Library 2.4.0, optimiziton level 3 is default)

    - When I do power on/off(plug on/off), the code is trapped in the problem code.

2. Optimization level : off (I saw about the optimizaiton problem in the link :  https://e2e.ti.com/support/microcontrollers/hercules/f/312/t/756588?tisearch=e2e-sitesearch&keymatch=tms570lc4357%25252525252520power%25252525252520up%25252525252520ESM%25252525252520group%252525252525203 )

   - When I do power on/off(plug on/off), the problem code is passed. But some self-test is fail.

3. Optimization level : 0-Register Optimizations

   - same result experiment 1.

I have some questions about this.

1. What is optimization level used?  

Regards,

Minwoo

 

 

  • Minwoo,

    The library code and test demo is tested with the default optimization. Can you please indicate what is the version of the compiler used and does that match with the version specified in the Release notes? 

    Regards,

    Rahul

  • Hello, Rahul

    I have some questions about your answers.

    I use CCS version : 8.3.1 / Ti Safety Libray : 2.4.0

    1. default optimization means the imported project in Safety libraray setting? Then, when i import the project default setting is 3 ( root : C:\ti\Hercules\SafeTI Diagnostic Library\2.4.0\build\TMS570LC4357_NoOS)

    The detault setting as follows,

    2. What is the mean "the version of compiler"? and how I can confim " version specified in the Releas notes"?

       - i show the Release Notes.pdf in the "C:\ti\Hercules\SafeTI Diagnostic Library\2.4.0\docs". I cannot find about compiler.

    Regards,

    Minwoo

     

  • Minwoo,

    It appears that the project that you are using was validated using TI ARM toolchain 5.0.1 as per the SDL User guide (Check system requirements). I also confirmed by looking into the .ccsproject in the TMS570LC4357. 

    The version of the compiler that is linked to your project can be seen by right clocking on the project and going to CCS General settings.

  • Hello Rahul,

    I check the compiler version. Version is  Ti 18.1.4. I wonder what opimization level is set? Level 3 is set by default value?

    Regards,

    Minwoo

  • Minwoo,

    Are you still having issue with the optimization level with the Safety diagnostics demo or is this issue resolved? 

    Regards,

    Rahul