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.

MSP430G2553 Launchpad with CCS v4

Other Parts Discussed in Thread: MSP430G2231, MSP430G2553

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

 

  • Alex,

    With the correct linker command file you could get to the point where you could build an application for G2553 in CCSv4 but you would have issues debugging it as the low level software is going to complain that it doesn't recognize the device part #.

    It is best to just download CCSv5.

    Regards,

    John

  • Hello John,

    thanks very much for that.  I'll try it out.  However, could you clarify something for me?  I would have thought that the specifics of the operation of the device would be captured in a separate file (like a XML file? although I know very little about them), independently of the low level debugging software.  Or are there some new operational features in the MSP430G2553 that had not been anticipated at the time of the design of the CCS v4 tools?

    Thanks again, and I will follow up to confirm that CCS v5 worked out OK.

    Alex

  • Alex,

    The device registers are captured in xml.  However the low level MSP430 debug library itself does contain device specific information. 

    Regards,

    John

  • Hello again John,

    CCS v5 worked out fine. Thanks again very much.  BTW, how do I check off this matter as "answered" ?

    Alex