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.

CCS/TM4C129ENCPDT: UART interrupt isssue

Part Number: TM4C129ENCPDT

Tool/software: Code Composer Studio

Dear all,

I am using TivaWare_C_Series-2.1.4.178. I use UART echo example program,  and checked UART0 interrupt and is working fine.

But when i modified the code for other UARTs , i am able to send but interrupt is not working.

The program is setting into IntDefaultHandler function.

The following changes has been made:

/**************************Initialization***********************************************************/

g_ui32SysClock = MAP_SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |SYSCTL_OSC_MAIN |SYSCTL_USE_PLL |SYSCTL_CFG_VCO_480), 120000000);
//
// Enable the GPIO port that is used for the on-board LED.
//
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPION);

//
// Enable the GPIO pins for the LED (PN0).
//
ROM_GPIOPinTypeGPIOOutput(GPIO_PORTN_BASE, GPIO_PIN_0);

//
// Enable the peripherals used by this example.
//

ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_UART4);

ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOK);
//
// Enable processor interrupts.
//
ROM_IntMasterEnable();

//
// Set GPIO K0 and K1 as UART pins.
//

GPIOPinConfigure(GPIO_PK0_U4RX);
GPIOPinConfigure(GPIO_PK1_U4TX);
ROM_GPIOPinTypeUART(GPIO_PORTK_BASE, GPIO_PIN_0 | GPIO_PIN_1);

//
// Configure the UART for 115,200, 8-N-1 operation.
//

ROM_UARTConfigSetExpClk(UART4_BASE, g_ui32SysClock, 115200,
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
UART_CONFIG_PAR_NONE));
//
// Enable the UART interrupt.
//

ROM_IntEnable(INT_UART4);
ROM_UARTIntEnable(UART4_BASE, UART_INT_RX | UART_INT_RT);

/*************************************************************************************************************************/

/****************In Interrupts********************************************************************************************/

void UARTIntHandler(void)
{

ui32Status5 = ROM_UARTIntStatus(UART4_BASE, true);

//
// Clear the asserted interrupts.
//
ROM_UARTIntClear(UART4_BASE, ui32Status5);

//
// Loop while there are characters in the receive FIFO.
//
while(ROM_UARTCharsAvail(UART4_BASE))
{

 g_UARTBuffer[g_UART[Count] =  ROM_UARTCharGetNonBlocking(UART4_BASE);

*

*

*

// Program to save received data in buffer

*

*

*

}

}