2011-05-06 04:16 AM
STM32 I2C communication failure
2011-05-17 05:34 AM
Post your code
2011-05-17 05:34 AM
read the errata, there is a lot of problems with the I²C but two workarounds are suggested
2011-05-17 05:34 AM
You can take a look at
http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32_i2c_cpal.zip
library available on ST website. In general, I2C peripheral in STM32F is tricky and not really successful: well minded double buffering of data register brings in fact a lot of problems, the cases for one or two bytes transmissions should be handled in a special way while the interrupts should be completely disabled, etc. I spent a week to get familiar with STM32F I2C. Be ready!2011-05-17 05:34 AM
read the errate. two workarounds suggested
0x00000040, as the return value of I2C_GetLastEvent(). same as me (and probably everybody else)2011-05-17 05:34 AM