Hello all. I’m struggling with an issue related to using an SPI Flexcomm via DMA on my LPC54016 project. My application requires me to send large amounts of data without any pauses on an SPI port (~4k bytes). I can get into more detail about the purpose of this if needed but in the interest of brevity I’ll leave that aside for the moment. I have this working perfectly up to 1024 byte, but with larger buffers this was causing a hard fault.
I traced this back to the #define DMA_MAX_TRANSFER_COUNT 0x400U (which is decimal 1024) within fsl_dma.h. Is there any way to extend the DMA max transfer size? I changed this #define to a higher value (0x800U) and the code compiles and doesn’t cause a fault when debugging, however the transfer contains a lot less bytes than it should.
Thanks in advance for any help.