cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 I2C Address Ack Error

mrunmoy
Associate
Posted on September 16, 2015 at 10:05

Hi,

I am trying to communicate STM32F407 with a I2C slave device @ 100khz on I2C1.

The slave supports up to 400khz.

I traced the lines between the controller and the slave using a logic analyzer and check whether signals are properly generated (attached).

But, the controller generates an AF error. Tried for all available Read/Write functions in HAL but get the same error.

I am using I2C2 for another slave (EEPROM) with the same settings and things work just fine

I2C Settings and Code attached.

Environment: FreeRTOS, Coocox IDE, ARM gcc,  STLINKV2

Any thoughts?

Thanks.

#ack #i2c #aferror #stm32f407
0 REPLIES 0