So i'm trying to add UART functionality to my project on SensorTag board.
Here's how the initialisation happens:
First, main() function calls HalDriverInit(), which calls HalUARTInit(), which calls HalUARTInitDMA(), since i've configured UART to work in DMA mode using HAL_UART_DMA = 2 symbol.
Then i initialise UART parameters in MyApplication_Init() function the following way:
{
halUARTCfg_t uartConfig;
uartConfig.configured = TRUE;
uartConfig.baudRate = HAL_UART_BR_9600;
uartConfig.flowControl = FALSE;
uartConfig.flowControlThreshold = 0;
uartConfig.rx.maxBufSize = 128;
uartConfig.tx.maxBufSize = 128;
uartConfig.idleTimeout = 10;
uartConfig.intEnable = TRUE;
uartConfig.callBackFunc = (halUARTCBack_t)UART_CB;
// start UART
// Note: Assumes no issue opening UART port.
if ( HalUARTOpen( HAL_UART_PORT_1, &uartConfig ) != HAL_UART_SUCCESS )
HalLedBlink( HAL_LED_2, 15, 50, 50 );
else
{
uint8 *msg = "UART configured";
uint8 msgLen = strlen(msg);
if (HalUARTWrite(HAL_UART_PORT_1, msg, msgLen) != msgLen)
HalLedBlink( HAL_LED_2, 15, 50, 50 );
}
}
No blinking happens, so i know the configuration is successful and the message has been sent. However, i can see no signal on the Tx pin (P1.5). Why?