AnsweredAssumed Answered

HAL_I2C_Mem_Write_DMA() doesn't work

Question asked by Maurizio Pinto on May 2, 2018
Latest reply on May 15, 2018 by Maurizio Pinto

Hi everyone,

I have a problem regarding the i2c communication with the 1.9 release of HAL for stm32f0.

I use the i2c2 peripheral of stm32f091rc microcontroller to communicate with a EEPROM.
This peripheral works very well with HAL release 1.31, but migrating to the latest release (ver. 1.9) of HAL it doesn't work.
To write and read to/from EEPROM I use the functions HAL_I2C_Mem_Write_DMA and HAL_I2C_Mem_Read_DMA respectively.
I tried to copy configurations and functions contained in BPS folder for stm32f072b_Discovery, but I didn't solved the problem.
Attached here you can find a file with main, configuration and read/write functions.
Here I tried to write into the EEPROM but the operation exits always with timeout error.

Can anyone tell me where I'm wrong?

Thanks in advance.