2024-10-27 04:24 AM
Hi!
I would like to know if there is a way to handle "automaticaly" a transmit then receive transfert using SPI and DMA ?
I think using linked list should be possible, but i don't know how to configure that..
-Create a single linked list (only 1 GPDMA channel)
-Configure a 1st node with request from SPI1_TX, the tx buffer and len and add it to the linked list
-Configure a 2nd node with request from SPI1_RX, the rx buffer and len and add it to the linked list
-Call HAL_SPI_TransmitReceive_DMA
do you think it should works ?
The goal is multiple.. only 1 GPDMA channel used, manage automatically Transmit then Receive for 1 transfert..
I have same needs for 2 QuadSPI drivers.
thank for help.