Dear e2e forum,
I have successfully used SPI5 in classic mode with DMA, driving SPI transfers by directly writing to / reading from the DAT1/BUF registers with the DMA controller. I prepare "raw" transfers that write the full 32 bits of the DAT1 register so that I can include the control flags to manipulate CSHOLD and WDEL. This technique has been described in this forum and is really useful for performing several SPI transactions in one big DMA transfer.
Now I needed to add another SCI and discovered that, unfortunately, it shares its DMA request lines with the SPI5 classic ones (DMAREQ[30] and [31] to be exact).
As a workaround, I am trying to enable MIB mode on SPI5 and remap the DMA request lines using RXDMA_MAP / TXDMA_MAP. But so far, my transfer stalls after the first byte is transmitted; I think I have an invalid combination of ONESHOT, ICOUNT and RXDMAENA bits, and it would be very helpful if I could compare my settings against a working example.
I have found a relevant example that seems to be very close to what I need: configuring a single transfer group with just a single mibRAM buffer and then driving long transfers through it using DMA.
Unfortunately, the zip files in this thread are no longer available.
Do you know of any similar examples that are public?
Thanks a lot and Best Regards,
Thomas