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.

MSP430FR5994: What's the difference between MSP430-gcc and GNU gcc

Part Number: MSP430FR5994

I am now developing some applications on the msp430fr5994 devices. I need to use msp430-gcc to compile, but I also encounter some problems. For example, cannot find the "stdlib.h, stdint.h" .etc. It needs to use the GNU GCC version, but sometimes it will occur issues like "  error: expected declaration specifiers before '__attribute__'.  

So, I want to know the difference between them, can I compile the application only use GNU-gcc version?

Best wishes,

Gaosheng

  • Hi Gaosheng,

    If you look at this wiki:

    https://en.wikipedia.org/wiki/GNU_Compiler_Collection

    You'll see that GCC stands for GNU Compiler Collection. The MSP430 GCC represents architectural/compiler support of GCC for the MSP430 family of processors.  It sounds like there may be some issue in the setup of you GCC compiler.  Code Composer has integrated support for the GCC compiler, I recommend that you use CCS with this integrated GCC support.  You can learn more about how to do this here:

    https://www.ti.com/tool/MSP430-GCC-OPENSOURCE?keyMatch=MSP430%20GCC

    BR,

    Leo

  • The msp430 version of gcc is simply gcc compiled for a msp430 target processor. (There are lots of possible targets.) I don't know what you are doing but the include files are all there. For example on my machine: /usr/ti/gcc/msp430-elf/include/stdint.h

    It is of course vitally important to invoke the correct version of compiler if the regular gcc is on your machine. All of the tools (prefixed with "msp430-elf-" live in the bin directory: /usr/ti/gcc/bin on my machine.

    A makefile is an easy way to take care of these details.

**Attention** This is a public forum