cancel
Showing results for 
Search instead for 
Did you mean: 

how to switch between HAL_SPI_Receive_DMA and HAL_SPI_Transmit_DMA ?

AMESD
Associate

to develop a SPI full-duplex dma communication, I use an stm32L4 as MASTER and an stm32L0 as a slave.

firstly to check if the slave is ready, master send tram "is OK", the slave receives the trame and if he is ready he sends tram "ok".

After when the master sends next tram to configure slave, the trame is sent but, he receive at the same time the previous tram "ok".

and the same thing for the slave when he receives the configuration frame, he sends a truism to say he is configured but he receives at the same times the previous term "is OK".

 0690X000006Ck4RQAS.png

0 REPLIES 0