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.

question about 6678 uart interrupt

Hi all,

I have problem about 6678 uart interrupt.

I use the pdk example:Texas Instruments\pdk_C6678_1_0_0_17\packages\ti\platform\evmc6678l

and i tried two code as following to set the uart interrupt:

(1)

CpIntc_mapSysIntToHostInt(0, 148, 32);

CpIntc_dispatchPlug(148, (CpIntc_FuncPtr)myrxint, NULL, TRUE);

CpIntc_enableHostInt(0, 32);

eventId = CpIntc_getEventId(32);

Hwi_Params_init(&params);

params.arg = 32;

params.eventId = eventId;

params.enableInt = TRUE;

params.priority = 2;

Hwi_create(5, &CpIntc_dispatch, &params, NULL);

Hwi_enableInterrupt(5);

Hwi_enable();

(2)

CpIntc_dispatchPlug(CSL_INTC0_UARTINT, (CpIntc_FuncPtr)myrxint, NULL, TRUE);

CpIntc_mapSysIntToHostInt(0, CSL_INTC0_UARTINT, 32);

CpIntc_enableHostInt(0, 32);

CpIntc_enableSysInt(0, CSL_INTC0_UARTINT);

eventId = CpIntc_getEventId(32);

EventCombiner_dispatchPlug (eventId, CpIntc_dispatch, 32, TRUE);

CSL_FINS (hUartRegs->IER, UART_IER_ERBI, CSL_UART_IER_ERBI_ENABLE);
CSL_FINS (hUartRegs->IER, UART_IER_ETBEI, CSL_UART_IER_ETBEI_ENABLE);
CSL_FINS (hUartRegs->IER, UART_IER_ELSI, CSL_UART_IER_ELSI_ENABLE);
CSL_FINS (hUartRegs->IER, UART_IER_EDSSI, CSL_UART_IER_EDSSI_ENABLE);

I can get the eventld value.

But I can`t call my interrupt server function myrxint.

Please tell me why?

  • Hi Xiang,

    Please follow the link http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/199563/731668.aspx#731668 . There is a detailed discussion on the interrupts.

    Make  sure you  are doing the correct setup for the interrupts.

    Regards,

    Kishore.