2022-05-11 07:07 AM
I already set up a SPI1 Tx and Rx with MDMA and DMA2 moving data from DTCMRAM to RAMD2 to SPI1
Is it possible to do the same with SPI6 ?
I see that DMA2 can access APB4 peripherals (including SPI6) but "sp6_rx_dma" and "spi6_tx_dma" hardware requests are linked to DMAMUX2 (it triggers only BDMA)
But I can't use BDMA because it can't trigger a MDMA transfer on transfer completion (as I do with DMA2 and MDMA).
A workaround would be that BDMA triggers a DMA2 transfer and then DMA2 triggers a MDMA transfer to get my data to DTCRAM without using CPU.
Is there a way to accomplish what I want to do ?
I prefer to use any hardware tweaks to save CPU time