Problem with I2C in DMA mode in the latest versions of the F4 STM32Cube FW
Hello everyone.
I think that the stm32f4xx_hal_i2c.c driver present in the STM32Cube_FW_F4_V1.25.1 and STM32Cube_FW_F4_V1.25.2 versions has a bug on I2C transfer in DMA mode.
In the function:
"I2C_MemoryTransmit_TXE_BTF" the value of "hi2c->MemaddSize" remains 0 even when the I2C internal memory address size is 8 bit (I2C_MEMADD_SIZE_8BIT).
This causes the malfunction of the function "HAL_I2C_Mem_Write_DMA"
As a workaround I added the following setting in the MX_I2C1_Init function
hi2c1.MemaddSize = I2C_MEMADD_SIZE_8BIT;
Has anyone else experienced this problem before and how did they solve it?
