I'm using LPC54113J256BD with two SPI master interfaces, one on FLEXCOMM2 and one on FLEXCOMM3.
When in Interrupt mode, both interfaces work correctly. And individually both interfaces work correctly when set to DMA mode, as long as only one of them is set to DMA mode.
However, when both SPI interfaces are set to DMA mode at the same time, the FLEXCOMM3 SPI interface now no longer works. The first data packet appears to be sent correctly over the MOSI pin, however the DMA0_IRQHandler never fires after sending data over that interface, so the SPI port remains in the "busy" state forever preventing any further use. The FLEXCOMM2 interface however still seems to be working correctly.
There is only one DMA peripheral available, DMA0. FLEXCOMM2 is set to use DMA0 channel 4 for Rx and 5 for Tx. FLEXCOMM3 is set to use DMA0 channel 6 for Rx and 7 for Tx. I do not know if this is a valid DMA configuration, but these were the defaults that were set up when configuring it with the peripheral config tool, and it gives me no warnings or errors when I do so.
I would like to use DMA over Interrupt mode for both SPI interfaces since it is significantly faster and speed is a big issue. Is it possible to configure both SPI interfaces to use DMA?