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.

Where are msp430x20x2.h and/ or msp430g2231.h?

Other Parts Discussed in Thread: MSP430G2231, CCSTUDIO

Where can I download msp430x20x2.h and/ or msp430g2231.h?  The files are included in a lot of the examples. 

  • Hi Michelle,

    If you have CCSv4, you can find these at C:\Program Files\Texas Instruments\ccsv4\msp430\include. If you are simply hoping to see the contents of these files, an easy way is to highlight "msp430g2231.h" where you include it in your code in CCS, right click on it, then select "open file msp430g2231.h" and it will open it right there in CCS.

    Also note a different way to do it is to simply include "msp430.h" and then make sure in your predefined symbols you have __MSP430G2231__ (for example) and this will also pull in the correct header file for your device.

    I hope this helps!

    Regards,

    Katie

  • They are included as part of the compiler/linker tool such as CCS or KickStart for MSP430.

  • Thanks.  I found the files in the Kickstart program file.  I had downloaded CCStudio v3.3 but I was using it for a different device so the MSP430 header files were not downloaded with it.

    C:\Program Files\IAR Systems\Embedded Workbench 6.0 Kickstart\430\inc

  • Michelle Geppert said:
    I found the files in the Kickstart program file.  I had downloaded CCStudio v3.3 but I was using it for a different device so the MSP430 header files were not downloaded with it.

    You mean for a different processor type and not the MSP series? The MSP supporting version of CCS should contain all header files for all MSPs - at least for all that were out when the CCS was released.

    However, you cannot just take the header files from a different compiler. Most of it (e.g. the register definitions) will work. Other things, however (like some macros, definitions for the ISRs etc.) may be compiler specific and won't work if you copy them over from a different compiler.
    You should download a recent version of CCS for MSP if you want to use CCS with MSP.

  • I need the old verison of CCS for the another project I am working on.  For that reason I am going to use IAR Kickstart.  It is good to know that I can't just take header files from IAR Kickstart and move them to CCS.

  • They are "portable" as long as you use the same version of the same compiler.

  • old_cow_yellow said:
    They are "portable" as long as you use the same version of the same compiler.

    Which IAR and CCS aren't.
    Indeed, if the only change between two compiler versions is an update of the header files, you can simply copy the new files and keep the old installation.
    One would expect these new or changed files to be available as a service download too then, but sometimes there are just silent updates and you don't see that a toolchain has been updated at all - except for the packaging date and the file list. Sometimes even same build number. Just a few files updated and the new package replaced the old one.

    The often seen advice to update to the 'latest version' does not always mean that there is a newer binary available (indicated by a higher version number), sometimes downloading the seemingly same package again makes a difference. :(

**Attention** This is a public forum