cancel
Showing results for 
Search instead for 
Did you mean: 

I2C Stuck on EV5 Test

jakematlick
Associate II
Posted on September 03, 2010 at 02:25

I2C Stuck on EV5 Test

2 REPLIES 2
jakematlick
Associate II
Posted on May 17, 2011 at 14:05

Here's an update:

I realized that the peripheral library comes with firmware for the temperature sensor (Utilities\STM32_EVAL\Common\stm32_eval_i2c_tsensor.c). I tried using that code and still had the same problem (the code times out on the EV5 test).

The new code:

LM75_Init();

printf(''Error Status = %s\n\r'', (LM75_GetStatus() == ERROR) ? ''Error'' : ''Success'');

Any chance this isn't an issue with the slave?

 

nanayakkaraan
Associate II
Posted on May 17, 2011 at 14:05

Hi Jake,

With STLM75 I2C communication I too having problems.

I think I can get out of EV%. When I write to I2C->DR register, bit 0 of I2C->SR1register get clears and hence I think I am got out of EV5.

But I am stuck with EV6.

Though I write the address into I2C->DR, SR1 register is updated to 0x0000 0400, which means I am receiving an Acknowledge failure. Further ADDR remains in 0 in

I2C->SR1 implies no end of address transmission.

Have you found any solutions to the issues? may be they can help me as well.

Thank you