cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_I2C_Mem_Write_DMA() doesn't work

Maurizio Pinto
Associate
Posted on May 02, 2018 at 21:24

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.

#i2c-eeprom-example-hal #stm32f-i2c-eeprom
1 REPLY 1
Maurizio Pinto
Associate
Posted on May 15, 2018 at 07:07

Can anyone help me?