Part Number: MSP-EXP430G2
Hello, I'm using the old MSP-EXP430G2 launchpad with CCS 8 on Windows 10.
Since this showed up from the Windows device manager, I thought it is possible to send UART message via the onboard debugger of the launchpad.
DCOCTL = 0; BCSCTL1 = CALBC1_1MHZ; 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; UCA0CTL1 &= ~UCSWRST; IE2 |= UCA0RXIE; __bis_SR_register(LPM0_bits + GIE); // Enter LPM0, interrupts enabled // in main #pragma vector=USCIAB0RX_VECTOR __interrupt void USCI0RX_ISR(void) { while (!(IFG2&UCA0TXIFG)); UCA0TXBUF = UCA0RXBUF; }
For instance, I tested this UART RX echoing example (PC's PuTTy keyboard -> MSP430 RX to create interrupt -> send it back MSP430 TX)
However, the RX interrupt never occurred.
Also, I tested to send some messages but it doesn't send anything to COM3 port although I matched the baud rate to 115200.
Is it not possible to send/receive UART messages using the onboard debugger? I really need this to print debugging messages.
I hope I do not have to connect external UART-USB modules