Where can I download msp430x20x2.h and/ or msp430g2231.h? The files are included in a lot of the examples.
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 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
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
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.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.
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.
Which IAR and CCS aren't.old_cow_yellow said:They are "portable" as long as you use the same version of the same compiler.
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