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.

How to download code to launch pad kit

Other Parts Discussed in Thread: MSP430G2553

Hi All,

I am using MSP-EXP430G2

launchpad kit for my development. In this board I am using MSP430G2553 uc.  I am using I A compiler to develop the code. But I don't know how to flash the code to uC. I am using JAG to flash the code in to uC for 5series. For this launchpad kit also JAG is needed or can we flash it directly using the USB connection. Thanks

  • Hi All,

    I can able to flash it now using the USB connection. I am developing UART communication, echo the received character. for that i am using the following code.

    In launchpad kit MSP-EXP430G2

    #include <msp430.h>
    
    int main(void)
    {
      WDTCTL = WDTPW + WDTHOLD;                 // Stop WDT
      if (CALBC1_1MHZ==0xFF)					// If calibration constant erased
      {											
        while(1);                               // do not load, trap CPU!!	
      }
      DCOCTL = 0;                               // Select lowest DCOx and MODx settings
      BCSCTL1 = CALBC1_1MHZ;                    // Set DCO
      DCOCTL = CALDCO_1MHZ;
      P1SEL = BIT1 + BIT2 ;                     // P1.1 = RXD, P1.2=TXD
      P1SEL2 = BIT1 + BIT2;                      
      UCA0CTL1 |= UCSSEL_2;                     // SMCLK
      UCA0BR0 = 8;                              // 1MHz 115200
      UCA0BR1 = 0;                              // 1MHz 115200
      UCA0MCTL = UCBRS2 + UCBRS0;               // Modulation UCBRSx = 5
      UCA0CTL1 &= ~UCSWRST;                     // **Initialize USCI state machine**
                                // Enable USCI_A0 RX interrupt
    
      __bis_SR_register(GIE);       // LPM0_bits +Enter LPM0, interrupts enabled
      IE2 |= UCA0RXIE;
      while(1);
    
    }
    
    // Echo back RXed character, confirm TX buffer is ready first
    #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
    #pragma vector=USCIAB0RX_VECTOR
    __interrupt void USCI0RX_ISR(void)
    #elif defined(__GNUC__)
    void __attribute__ ((interrupt(USCIAB0RX_VECTOR))) USCI0RX_ISR (void)
    #else
    #error Compiler not supported!
    #endif
    {
      while (!(IFG2&UCA0TXIFG));                // USCI_A0 TX buffer ready?
      UCA0TXBUF = UCA0RXBUF;                    // TX -> RXed character
    }

    But i can't able to get the data from PC. I am using hyperterminal software to transmit a charcter from PC to uC. Also if i look into the Register of the uC i couldn't see the IFG2 register, I have attached the screen shot of the compiler view with register. Couid anyone guide me where i done the mistake.

    Thanks

**Attention** This is a public forum