SPI: Incorrect SPI DMA Tx/Rx Implemention causes Intr failure

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Urgent

      Description:
      From the changes done in SPI in SDK 9.2 to SDK 10.0 , while using AUTOSAR OS the SPI DMA Rx interrupt is not received . If we use udma_chdisable API in SPI DMA Tx ISR handler and Rx ISR handler able to receive more interrupts but fails on different data lengths and different sequences.

      Whereas in baremetal we never face this issue for different data lengths, AUTOSAR OS expects to clean the channel after every transaction by using udma_chdisable after transfer is completed.

      Resolution:
      Fix order as dmaRx->dmaTx.
      Remove redundant calls in Spi_DmaTransferStart/Restart
      clear respective intr in Tx/Rx IS

      Root Cause:
      SPI DMA Tx/Rx ordering was incorrect in original implementation

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-5413 - SPI: Incorrect SPI DMA Tx/Rx Implem...
                SYNCHRONIZED
                • Last Sync Date: