2010-09-02 05:25 PM
I2C Stuck on EV5 Test
2011-05-17 05:05 AM
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?
2011-05-17 05:05 AM
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