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.

HalUARTWrite()

Other Parts Discussed in Thread: CC2530EM, CC2530

Hello,

I'm having issues writing to the serial port.  The only output I get from the code below is this: 

"NOPQRSTU4567890."

Does anyone have any suggestions?

void initUart(halUARTCBack_t SerialApp_CallBack)
{
halUARTCfg_t uartConfig;
uint8 welcome[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890...\r\n";
uartConfig.configured = TRUE;
uartConfig.baudRate = HAL_UART_BR_115200;
uartConfig.flowControl = FALSE;
uartConfig.flowControlThreshold = 48;
uartConfig.rx.maxBufSize = 128;
uartConfig.tx.maxBufSize = 128;
uartConfig.idleTimeout = 6;
uartConfig.intEnable = TRUE;
uartConfig.callBackFunc = SerialApp_CallBack;

HalUARTOpen (HAL_UART_PORT_0, &uartConfig);

HalUARTWrite(HAL_UART_PORT_0, welcome, (uint8)osal_strlen( (char*)welcome ));

}

static void SerialApp_CallBack(uint8 port, uint8 event)
{
}