In S32K344, do the various DMA channels have a fixed correspondence with LPSPI 0~6?
I configured DMA_IP_HW_CH_5 as LPSPI0 TX, DMA_IP_HW_CH_5=4 as LPSPI0 RX, LPSPI0 as slave SPI, and the DMA interrupt of RX was triggered when the master SPI was not initialized.
If DMA_IP_HW_CH_5 is configured as LPSPI0 RX and DMA_IP_HW_CH_5=4 is configured as LPSPI0 TX, then when the master spi starts to send a message, the TX interrupt is triggered first. Did I configure the DMA channel corresponding to SPI0 incorrectly?
Hello @TianyaoLi,
The DMA channels are not fixed to LPSPI module.
Can you please share the project or the configuration files?
From the description, I can't tell what configuration is incorrect.
Thank you,
BR, Daniel