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/TMS570LS0714: Difference between debug code and release code.

Part Number: TMS570LS0714


Tool/software: Code Composer Studio

There are some delay functions in my code. They works fine in debug mode. However, the release code doesn't work until I made the delay longer. I am just wondering why this happened.

Thanks,

Charlie

  • Check the optimizer settings in your project options. They may remove or optimize your loop, or use registers instead of memory variables in release mode. On my version of CCS it's available on:
    Right Click on project -> select Options menu
    CSS Build -> ARM compiler -> Optimization-> Optimization Level.

    As a side note: your code should better not rely on such loop constructs.