Where can I download msp430x20x2.h and/ or msp430g2231.h? The files are included in a lot of the examples.
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!
They are included as part of the compiler/linker tool such as CCS or KickStart for MSP430.
In reply to old_cow_yellow:
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
In reply to Michelle Geppert76871:
Michelle GeppertI 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.
In reply to Jens-Michael Gross:
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_yellowThey 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. :(
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.