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.

AWR2944: MCAL_SPI

Part Number: AWR2944

Tool/software:

Hi, TI support

I have a few questions about the Mcal SPI driver provide by TI. hope you can help with these items.

1. TG completed interrupt and suspended interrupt are both enabled, but only completed interrupt are mapped to INT1 while suspended interrupt is mapped to INT 0, why?

2. In Spi_IrqTxRx() the interrupt service, it seems have not clear the completed and suspended interrupt. So the interrupt service cannot run again. Please check

3. When trigger a SPI communication by call Spi_SetupEB() and Spi_SyncTransmit(). a suspended interrupt is present instead of completed interrupt. Is that right? the completed interrupt is more in line with human intuition.

  • One more thing, here, in the following function,should be Spi_TGINTVECT[1], right?  because TG completed and suspended inerrupt are mapped to INT1 before.

    So it is a mistake, right?

  • Hi Jerry,

    Can you please share the MCAL configuration file. Meanwhile let me check with the team on the points you mentioned.

    Can you also explain what is the unexpected behavior/issue that you are seeing, is the transfer not happening?

     Regards,

    Ajay

  • Cannot Entry irq service Spi_IrqTxRx(), so the app cannot get the response from PMIC. when call the sync interface mentioned by point NO.2.

    I had tried to modify the mcal static code, And find that the IRQ can only triggered once every power cycle. That cause the app can only get the first response message.

    you mean the .xdm file? How can I share the mcal config? I cannot upload any document.

  • Every power cycle, the first message transfer, the SPI IRQ can been hit. The second transfer cannot hit the IRQ server, but the TGINTFLG was set. So I also want to know any other pre-condition should meet when trigger the interrupt