Skip to main content
Wdong.2
Associate
November 9, 2020
Question

STM32H743II spi master half duplex tx into rx

  • November 9, 2020
  • 1 reply
  • 498 views

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.

This topic has been closed for replies.

1 reply

Technical Moderator
November 11, 2020

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks