cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to use I2C DMA for STM32F072

supgz
Associate II

Issue description as below:

1. STM32F072+STM32CUBEMX+FREERTOS+I2C1 DMA

2. I2C1 was set for rx DMA 

supgz_0-1723110535016.png

supgz_1-1723110557778.png

2. I use HAL_I2C_Mem_Read_DMA() for external device memory reading and it retured HAL_OK,but no data written to DMA buffer , DMA1_Channel2_3_IRQHandler for i2c1 DMA was not entered

3. Then I tried HAL_I2C_Mem_Read() and it read data successfully

4. I have tried HAL_I2C_Mem_Read_DMA() for STM32F105 and data can be read successfully.

 

My question:

1. why i2c dma read faied to get data from i2c slave for stm32f072?

2. what else should be done for stm32f072 i2c dma read?

3. any difference of i2c usage between stm32f072 and stm32f105?

0 REPLIES 0