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/TMS320F280049: Compiler version change causes crash

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

My customer recently migrated their code from the delfino to the piccolo part. They started with the stock c2000ware example (hrpwm_ex2) - which is working with the compiler version 16.9.8 LTS. They have added code to run in the CLA which needs a version of 18.1.x to be able to meet their timing requirements of 10 microsecs. The timing is not met when they tried with the 16.9.8LTS. 

But the hrpwm code crashes when using the latest compiler toolchain 18.1.x.

How can this mismatch be resolved?

Thanks,

Prasanna.

  • PRS,

    Thanks for notifying us that HRPWM_Ex2 does not run with compiler version 18.1.x.

    1. What happens when the "HRPWM code crashes"?
      1. Does the code compile?
      2. Does the program run into unallocated memory? 
      3. Does the PWM output anything?

    What is the customer trying to do in 10 microseconds? Is this a CLA timing requirement or a C28x timing requirement?

    We will look into why the different compiler versions have different results.

    Regards,
    Cody 

  • Cody,

    The code compiles fine. When flashed and started, it immediately jumps to a location 0x3Fbd92 with no source or disassembly available. Customer has tried single stepping but then it happens randomly - not on a particular function or line. 

    I will check again on the timing details and ask them to clarify their expectation. 

    I did confirm to them that the C2000ware (1.00.06) has been tested against the 16.9.1.LTS. If we can get the timing on the CLA with this version, they do not have any particular requirement to move to the newer compiler version. 

    Thanks,

    Prasanna.

  • Cody,

    Here is what they are doing with the CLA. 

    I have some control loop calculations in the CLA that need to be run every 10us and the calculation itself takes around 9 us when the code is compiled with compiler version 18.x with the optimization set at level 1. I compiled and ran the same code with compiler ver. 16.9 and the code execution time exceeded 10us.

    Any updates or thoughts?

    Thanks,

    Prasanna.

  • Prasanna,

    Sorry, I am not the expert for compiler issues, I am handing this issue to another colleague. You should receive ASAP.

    Regards,
    Cody 

  • Prasanna,

    Does the code crash with any particular optimization level or is it failing in 18.1.x and not in 18.x as per your previous comments.

    Thanks
    Vasudha
  • Vasudha,

    The code is crashing regardless of optimization level with the new compiler version.
    thanks,
    Prasanna.
  • Hi Prasanna,

    I tried the hrpwm_ex2_prdupdown_sfo_v8 with compiler version TI v18.1.4.LTS and it works fine for me. Do you think it coul be due to the new code added for CLA. Let me know if you were able to resolve this.

    Thanks
    Vasudha
  • I have some control loop calculations in the CLA that need to be run every 10us and the calculation itself takes around 9 us when the code is compiled with compiler version 18.x with the optimization set at level 1. I compiled and ran the same code with compiler ver. 16.9 and the code execution time exceeded 10us.

    Can you provide more details on this? Are there any operations in particular which are slower in v18.1.x.LTS due to which execution time is exceeding?

    Thanks

    Vasudha