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.
Hi there,
I am currently using the MSP430FG4618/f2013 Experimenter's Board with the MSP-FET430UIF USB Debug interface connected via the JTAG1 to use the FG4618 chip.
The code I am running is the msp430xG46x_uscia0_uart_9600.c from the TI examples. I have setup IAR to use the recommended settings for this board. I have also followed the instructions from this link (http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/t/19613.aspx?PageIndex=1) for changes to the code required for my specific board. essentially I am looking to communicate with the board by sending a single character through my USB COM port and recieving data in return using matlab as my interface and data processing application. I have resorted to using windows hyper terminal as my interface for the time being until I can figure out why I am receiving no data back from the board.
If I download and debug the program using IAR, run the program and then open windows hypreterminal using my settings for that port it tells me the port is being used by another program making this difficult to debug (same as when trying to use matlab). If I download and debug the program using IAR, run the program, set the option to leave target running and then exit the debugger I can then use windows hyperterminal to open a connection to the correct COM port. My issue is that I cannot type anything into the hyperterminal screen which makes me believe that there isnt actually a connection to the board at all. My settings for Windows Hyper Terminal are...
Bits per second: 9600
Data bits: 8
Parity: none
Stop bits: 1
Flow control: Hardware
I have also checked multiple times to ensure I am connecting to the correct port (MSP-FET430UIF - Serial Port (COM7) in device Manager)
Edit: I am also using the newst version of IAR kickstart 5.4
Hi,
I am not sure how you are trying to communicate over the JTAG port using the USCIA0. If you see the schematics in the kit user guide, http://www.ti.com/litv/pdf/slau213a, you will notice that pins 2.4 & 2.5 lead to G2 DB9 connector. So you will need to connect to this port to see the serial echo. Also in the serial port settings, set "Flow Control" to "None".
Regards,
Praval
Thanks for the clear reply.
I was under the impression that I would simply be able to communicate through the JTAG to the computer. I see now that this is not the case
Hi, I’m trying to use my PC to communicate with my MS430FG4618/2013 experimenter’s board via the serial port (COM1). I’m using the code suggested in http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/t/19613.aspx?PageIndex=1
I’m having the same problem as some other people in this forum. Yes, I do have a serial cable connected between the PC and the board. The Hyperterminal setting is
· Bits per second: 9600
Data bits: 8
Parity: none
Stop bits: 1
Flow control: None
I’m not able to type in or see anything in the Hyperterminal. I’m sure my COM1 is good since I’m using it for something else. Any solution? Thanks.
#include <msp430xG46x.h>
void main(void)
{
volatile unsigned int i;
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
FLL_CTL0 |= XCAP14PF; // Configure load caps
do
{
IFG1 &= ~OFIFG; // Clear OSCFault flag
for (i = 0x47FF; i > 0; i--); // Time for flag to set
}
while ((IFG1 & OFIFG)); // OSCFault flag still set?
P2SEL |= 0x030; // P2.5,4 = USCI_A0 RXD/TXD
ME2 |= UTXE1 + URXE1; // Enable USART1 TXD/RXD
U1CTL |= CHAR; // 8-bit character
U1TCTL |= SSEL0; // UCLK = ACLK
U1BR0 = 0x03; // 32k/9600 - 3.41
U1BR1 = 0x00; //
U1MCTL = 0x4A; // Modulation
U1CTL &= ~SWRST; // Initialize USART state machine
IE2 |= URXIE1; // Enable USART1 RX interrupt
_BIS_SR(LPM3_bits + GIE); // Enter LPM3 w/ interrupt
}
#pragma vector=USART1RX_VECTOR
__interrupt void USART1_rx (void)
{
while (!(IFG2 & UTXIFG1)); // USART1 TX buffer ready?
TXBUF1 = RXBUF1; // RXBUF1 to TXBUF1
}
**Attention** This is a public forum