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/XEVMK2LX: How to enable UART interrupt

Part Number: XEVMK2LX
Other Parts Discussed in Thread: TCI6630K2L

Tool/software: Code Composer Studio

Hi,

I need to get rx and tx interrupts from UART1, I try:

#define UART_HWI_NUM 6
...
	Hwi_Params_init(&hwiparams);
	hwiparams.eventId = 233; // 234, 235
	hwiparams.maskSetting = ti_sysbios_interfaces_IHwi_MaskingOption_ALL;
	Error_init(&eb);
	hwi = Hwi_create(UART_HWI_NUM, (Hwi_FuncPtr)&Uart_irq_handler, &hwiparams, &eb);
	if (!hwi) {
		return -1;
	}
    Hwi_enable();
    Hwi_enableInterrupt(UART_HWI_NUM);

A 233-235 is a numbers from Table 7-24. CIC0 Event Inputs — C66x CorePac Secondary Interrupts at page 103 of tci6630k2l datasheet (SPRS893E.pdf). I see ipend = 0 flag in iir register of uart, that means interrupt is pending (according to Table 3-5 at page33 of UART periferal datasheet SPRUGP1.pdf), but my IRQ handler not called. What is wrong?