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/MSP430FR5969: USING TDM GCC COMPILER IN CCS V8

Part Number: MSP430FR5969

Tool/software: TI C/C++ Compiler

Whenever I test code prior to adding it to a CCS project, I test it from the command line. However, I use the TDM-GCC MinGW compiler for this purpose and my outputs commonly appear to be different than what I received from running the code on my PC. Is there any way I could replace the CCS compiler (using TI v16.9.7.LTS) with TDM-GCC?

  • It is possible to build with a compiler that is not shipped with CCS.  However, you give up the GUI features associated with a deeply integrated compiler.  For details see the Types of Projects section of the larger article Projects and Build Handbook for CCS.  Focus on the part about Makefile Project with Existing Code.

    Are you aware a GCC MSP430 compiler ships with CCS?  Consider trying it.

    Thanks and regards,

    -George

  • Technically speaking, the compiler should produce the same output though correct? So is there potentially a problem in the code? Half of the outputs match and the second half varies when compiled from my pc versus compiled in code composer
  • Susan Joseph26 said:
    Technically speaking, the compiler should produce the same output though correct?

    I think what you mean is... When the same source is compiled with different compilers, upon execution, the behavior of the program is the same.  That is correct.

    Susan Joseph26 said:
    So is there potentially a problem in the code?

    There is not enough here to say.  It is possible your program has a bug that is always present, but only exposed when run on the MSP430.  It seems more likely there is some configuration error.  Perhaps in the build options, memory setup, failure to keep the watchdog timer from going off, or something similar.

    Thanks and regards,

    -George