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.

RTI Interrupt and SPI

Hello

I Use SPI and RTI in my code on C6722 DSP.

RTI Interrupt is enabled and SPI routine is polling approach.

When I use both of SPI and RTI, I get message: “No Source Available For "0x…" .

In this case when below code is polled, “No Source available” message is appeared.

CSL_spiGetHwStatus (hSpi0, CSL_SPI_QUERY_EVT_STATUS, &flagStatus);

When RTI interrupt is inactive, code is running correctly and SPI data is received. Three interrupt of comparator0, comparator1 and comparator2 is enabled. Related code is show in following:

    /* Enable the cpu interrupt 4 */

    status = CSL_intcEventEnable (CSL_INTC_EVENTID_RTI_INT_REQ0, &state);

    /* Enable the cpu interrupt 5 */

    status = CSL_intcEventEnable (CSL_INTC_EVENTID_RTI_INT_OVL_REQ, &state);

    /* Enabling non-maskable interrupt */

    status = CSL_intcEventEnable (CSL_INTC_EVENTID_NMI, &state);

   //Enabling Global interrupt

    status = CSL_intcGlobalEnable (&state);

for example, when I comment:

status = CSL_intcGlobalEnable (&state);

SPI routine is running correctly and “No source available” message did appear, but in this case, RTI interrupt is inactive

  • Hi Mazandran,

    Which line causes the "No source available" issue ?

    Try to debug step by step & step over (F5/F6) and findout the line.

    Which memory are you using to execute the code in linker cmd file ?

  • Hi Titusrathinaraj stalin

    when I debug step by step, "No source available" didn't apear, 

    but when code is in free running, when SPI input data register flag using

    "CSL_spiGetHwStatus (hSpi0, CSL_SPI_QUERY_EVT_STATUS,&flagStatus);"

    is read, "No source available" is appeared,

    that is because when following code is commented, "No source avialable" isn't appeared.

    that is Noteworthy, when I running each of SPI or RTI Interrupt Singly, code is working correctly, but when both RTI interrupt and SPI exist in code, following error is occurred. even when both RTI(without interrupt) and SPI exist in code, code is running correctly but when interrupt of RTI is enabled "No Source Available" is appeared.

    my code acoording to cmd file is executed from IRAM.

    thank you.