Other Parts Discussed in Thread: CC1310
Hi,
I am trying to add UART support to the WOR example (using TI-RTOS).
On the top of the rfWakeOnRadioRx.c fiel I have added the #include <ti/drivers/UART.h> and the UART_Handle global (and static) variable:
#include <ti/drivers/UART.h> #if defined(BOARD_DISPLAY_USE_UART) static UART_Handle hUART; #endif
And inside main.c I have added the following lines:
int main(void) { /* Call driver init functions. */ Board_initGeneral(); /* Open LED pins */ ledPinHandle = PIN_open(&ledPinState, pinTable); Assert_isTrue(ledPinHandle != NULL, NULL); #if defined(BOARD_DISPLAY_USE_UART) // ADDED UART INITIALIZATION /* Enable System_printf(..) UART output */ UART_init(); UART_Params uartParams; UART_Params_init(&uartParams); uartParams.baudRate = 115200; uartParams.writeMode = UART_MODE_BLOCKING; uartParams.readMode = UART_MODE_BLOCKING; uartParams.writeDataMode = UART_DATA_BINARY; uartParams.readDataMode = UART_DATA_BINARY; uartParams.readEcho = UART_ECHO_OFF; hUART = UART_open(Board_UART0, &uartParams); if (!hUART){ while(1); } #endif /* BOARD_DISPLAY_USE_UART */ UART_write(hUART, "Hello", 4); // TRY TO SEND SOMETHING -> HERE THE EXCEPTION OCCURS /* Initialize task */ rxTaskInit(); /* Start BIOS */ BIOS_start(); return (0); }
In ROV I just see that the exception occurred:
But with no decoded information nor exception call stack (symbol is not available) although I have the full exception decoding enabled:
Besides all that, the Board_initGeneral(); function call configure the CC1310 launchpad pins so the UART should be just work, right?
what am I missing?
Thanks