Hi
@danielmartynek,
I'm working on the S32K344 platform using the LPSPI module in slave mode with DMA support. My use case is as follows:
The LPSPI slave is expected to receive 40 bytes of data per transfer.
This transfer occurs 5 times in succession, resulting in a total of 200 bytes.
I want the DMA RX interrupt (ISR) to be triggered only after all 5 transfers are complete, i.e., after the full 200 bytes have been received.
In the DMA Configuration, I have enabled:
Global Configuration
Transfer Configuration
My questions:
How can I configure the DMA (using RTD) to accumulate these 5 transfers and trigger an interrupt only after receiving the total 200 bytes?
If this is not possible, would I need to handle each 40-byte transfer individually in the DMA RX ISR and use a counter in software to detect when 5 transfers have completed? If so, how can this be implemented?
Any guidance would be greatly appreciated.
Thanks in advance!