cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7's I2C4+BDMA method cannot read sensor data

one V
Associate III

Reading sensor data using the STM32H7's I2c4+BDMA method was unsuccessful. It is okay to simply use I2C4 or other i2c+DMA methods. The read function when using BDMA is HAL_I2C_Mem_Read_DMA, and when BDMA is not used, it is HAL_I2C_Mem_Read.

This discussion is locked. Please start a new topic to ask your question.
10 REPLIES 10

Read out and check the relevant I2C, DMAMUX and DMA registers.

You may want to start with the DMAMUX, and the I2C_CR1.RXDMAEN bit.

CubeMX-generated code? Maybe one of those "swapping calls solved the problem" eg. cases https://community.st.com/s/question/0D50X0000BcPXk2SQG/32f746-usart-dma-with-stemwin-not-working ?

JW