Hello all,
I have a MSP430 Launchpad, rev 1.4, which came with a MSP430G2231, and which I have been able to successfully program with Code Composer Studio v4.
I have recently obtained a MSP430G2553, but am not able to figure out how to configure the project.
I have browsed about, and identified the need for several files, as documented in the basic LED blinking example program below:
/******************************************************************************
MSP430G2553_x1.C
REQ'D FOR MSP430G2553:
- lnk_msp430g2553.cmd and msp430g2553.cmd:
Linker Command Files for definitions in the header file; downloaded from:
http://downloads.isee.biz/pub/files/igep-dsp-gst-framework-3_40_00/tools
/xdctools/xdctools_3_23_00_32/packages/ti/mcu/msp430/include
- MSP430G2553.ccxml from: https://github.com/zeiv/led-blink/blob/master/
- MSP430G2553.xml - not fuly tested, by Aleksander Miera, Updated: 2012-07-25
from: http://sourceforge.net/p/embsysregview/patches/7/
copied to: C:\CCSv4\ccsv4\common\targetdb\devices (as apparently implied in
MSP430G2553.ccxml)
******************************************************************************/
#include <msp430g2553.h> // In: C:\CCSv4\ccsv4\msp430\include
void main(void)
{
unsigned int i;
// Req'd at start of most MSP430 projects: turn off watchdog timer, which
// can reset device after a certain period of time:
WDTCTL = WDTPW + WDTHOLD ;
P1DIR |= 0x41; // Set P1.0 and P1.6 to o/p dir
for (;;)
{
P1OUT ^= 0x01; for (i = 50000; --i;) ; // Toggle P1.0 & delay
P1OUT ^= 0x40; for (i = 50000; --i;) ; // Toggle P1.6 & delay
P1OUT ^= 0x01; for (i = 50000; --i;) ;
P1OUT ^= 0x40; for (i = 50000; --i;) ;
}
} // main()
However, any MSP430G2553 based example seems to imply CS v 5. Is it possible to build and run a project for the MSP430G2553 under CCS v4 ? or do I really need CCS v5?
Thanks very much for your assistance,
Alex