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-5.4 doesn't follows code flow for TM4C123

Other Parts Discussed in Thread: OMAP-L138, AM1808, EK-LM3S2965

Hi,

I download the package of TM4C123 which include CCS-5.4.

So, I renamed my existing CCS-5.4 installed for OMAP-L138 & AM1808 and install new CCS-5.4 just to make sure it works for TM4C123

I'm able to compile TM4C123 examples, load and run. But, in debugging the code, it jumps back and forth like crazy, not following the code flow.

I don't have that kind of behavior in debugging EK-LM3S2965, also run out of ROM as in case TM4C123, not out of RAM as in OMAP or AM18 .

So, what should I do to make it behave properly ?

Thanks,

~Duy-Ky

  • Hi,

    Can you confirm the same by using CCS v6. CCS v5.4 was a bit unstable version for TIVA family.
    Let me know what your observations are.

    Regards,
    Gautam
  • Hi,
    I downloaded and installed the latest CCS-6.0.1 and it behaves exactly the same as CCS-5.4. In debugging single step, it first jumps to the 1st 2 lines of source code at the beginning, then it jumps back & forth like crazy, not following the source code at all!!!
    Thanks,
    ~Duy-Ky
  • Duy-Ky Nguyen88210 said:
    I'm able to compile TM4C123 examples, load and run. But, in debugging the code, it jumps back and forth like crazy, not following the code flow.

    Some of the TM4C123 examples have the Compiler Optimization Level set to "Global Optimizations" which can cause the compiler to generate assembler out-of-order .w.r.t. the C statements.

    To prevent such confusion while single stepping in the debugger, try setting the Optimization Level to "off" in the CCS Project Properties:

  • Yes, you're absolutely correct. I turned off optimization and it behaves as expected, even with CCS-5.4
    Thanks so so much, Gautam