cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743II spi master half duplex tx into rx

Wdong.2
Associate

spi half duplex with dma,change tx ino rx,when finished tx process,start rx process,just set the "spe" bit of spi master(not set cstart bit),dma just starts working,and cntdr goes to zero,then rx process fail,spi report overun error.

1 REPLY 1
Imen.D
ST Employee

Hello @Wdong.2​ ,

Welcome to the STM32 Community :smiling_face_with_smiling_eyes:.

You can refer to the ready SPI example with STM32CubeH7 MCU package, for data buffer transmission/reception between two boards via SPI using DMA, this will help you as an implementation example and get inspiration to achieve you goal:

STM32Cube_FW_H7_Vx.x.x\Projects\NUCLEO-H7A3ZI-Q\Examples\SPI\SPI_FullDuplex_ComDMA

Hope this helps you.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen