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)
{
}