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.

Compiler issues with CCS 3.3

Greetings all.  I am running version 3.3.82.13 of CC and I am programming to an F28335.  I am currently using compiler version 5.0.  If I switch to any of the newer compiler versions my code does not work correctly.  For example the ADC does not work unless I use compiler 5.0.  Why does this happen?  Also is there something I can do to my code to make sure it will work on any compiler version?  

  • Well, this is very vague.  I can take a guess.  But it is probably wrong.

    Here's my guess ... You are using high levels of optimization (-o3 or -o2) and something is wrong in the optimization done by recent compiler versions.  To test this theory, lower the level of optimization.  Try -o1 or -o0.  The method to disable all optimization varies.  With older compiler versions, do not use any -o option.  With more recent compiler versions, use --opt_level=off.  See if this change helps.

    Thanks and regards,

    -George