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.

incorrect UART received from ez430-rf256x

I have been trying to get bluetooth working on my launchpad for a while now with the ez430-rf256x with limited success.

NOTE: I have attached the header pins to the launchpad, I have flashed the ez430-rf256x with the MT UART BRIDGE, in the application note.

When I use putty/ hyper terminal with the launchpad connected to the PC, I see the correct UART stream.

When I make a bluetooth connection with my tablet to the launchpad+ez430-rf256x, I see an incorrect UART stream. So I went into the ez430-rf256x firmware and hardcoded a character in the buffer. Afterwards, my tablet is able to receive the character correctly. So I believe this incorrect UART stream might have something to do with the USB receive buffer in the firmware which I am simply confused about, and would honestly like some help with.

the particular code section in the MT UART BRIDGE firmware I am refereing to is in the user_task.c is the following

---------------------------------------------------------------------------

__interrupt void USB_UART_ISR(void)
{
char temp_data;
temp_data = USB_RXBUF;

if(temp_data == 0x39)
{
for(int i = BT_BD_ADDR_SIZE; i>0 ; i--)
halUsbSendChar(bluetooth_address [i-1]);
}
else
halUsbReceiveBuffer[bufferSize++] = temp_data; /////// if I make halUsbRecieveBuffer[bufferSize++] = 'c'; my tablet receives the correct message, but not with temp_data

----------------------------------------------------------------------------

and the USB_RXBUF is defined in hal_usb.c as

#define USB_RXBUF UCA3RXBUF