Hi
I'm starting a project in TI-RTOS and have the following problem:
Start the UART0 with the following functions:
... #define Board_UART0 VA_TM4C129ENCPDT_UART0 ... #include <ti/drivers/uart/UARTTiva.h> /* UART objects */ UARTTiva_Object uartTivaObjects[VA_TM4C129ENCPDT_UARTCOUNT]; /* UART configuration structure */ const UARTTiva_HWAttrs uartTivaHWAttrs[VA_TM4C129ENCPDT_UARTCOUNT] = { {UART0_BASE, INT_UART0}, /*TM4C1294XL_UART0 */ {UART2_BASE, INT_UART2} /* TM4C1294XL_UART2 */ }; const UART_Config UART_config[] = { {&UARTTiva_fxnTable, &uartTivaObjects[0], &uartTivaHWAttrs[0]}, {&UARTTiva_fxnTable, &uartTivaObjects[1], &uartTivaHWAttrs[1]}, {NULL, NULL, NULL} }; #endif /* * ======== VA_TM4C129ENCPDT_initUART ======== */ void VA_TM4C129ENCPDT_initUART(void) { /* Enable and configure the peripherals used by the UART0 */ SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0); GPIOPinConfigure(GPIO_PA0_U0RX); GPIOPinConfigure(GPIO_PA1_U0TX); GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1); /* Enable and configure the peripherals used by the UART2 */ SysCtlPeripheralEnable(SYSCTL_PERIPH_UART2); GPIOPinConfigure(GPIO_PA6_U2RX); GPIOPinConfigure(GPIO_PA7_U2TX); GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_6 | GPIO_PIN_7); /* Initialize the UART driver */ #if TI_DRIVERS_UART_DMA VA_TM4C129ENCPDT_initDMA(); #endif UART_init(); } // Open port Uart Debug void Uart_init_Debug (void) { UART_Params uartParams; const char echoPrompt[] = "UART DEBUG OK\r\n"; /* Create a UART with data processing off. */ UART_Params_init(&uartParams); uartParams.writeDataMode = UART_DATA_BINARY; uartParams.readDataMode = UART_DATA_BINARY; uartParams.readReturnMode = UART_RETURN_FULL; uartParams.readEcho = UART_ECHO_OFF; uartParams.baudRate = 115200; uart0 = UART_open(Board_UART0, &uartParams); if (uart0 == NULL) { System_abort("Error opening the UART"); } UART_write(uart0, echoPrompt, sizeof(echoPrompt)); }
All right however when I create a HWI with the UART0 interrupt the program stop here:
I think it has to do with the setting "UART_open" but I do not see how I can fix the problem. The same is true the UART2 is for the "interrupt number = 49".
I am a beginner in TI-RTOS, Sorry.
Regards