I2C problems on STM32F10X
Posted: Thu Dec 27, 2012 8:28 pm
Hi!
I searched for a problem I met on this forum and on bug tracker but didn't find any similar. If I've repeated already known problem I'm very sorry.
Well, it consists of several issues related to I2C implemented in Chibios for STM32F10X MCU. These issues are the following.
1) If I choose I2C frequency to be relatively small and fast duty cycle then i2cStart() function hangs MCU up. I tried several frequencies. For 10'000 Hz it definitley works out.
2) If I set normal duty cycle then I2C works for some time (several minutes for my case) and after that dies out. But after that MCU is still alive. At least other tasks seem to run but in a bit abnormal way with big time gaps.
3) If I change I2C frequency from 10kHz to 100kHz problem disappears.
Well,... by the moment it's all I've managed to find out.
I searched for a problem I met on this forum and on bug tracker but didn't find any similar. If I've repeated already known problem I'm very sorry.
Well, it consists of several issues related to I2C implemented in Chibios for STM32F10X MCU. These issues are the following.
1) If I choose I2C frequency to be relatively small and fast duty cycle then i2cStart() function hangs MCU up. I tried several frequencies. For 10'000 Hz it definitley works out.
2) If I set normal duty cycle then I2C works for some time (several minutes for my case) and after that dies out. But after that MCU is still alive. At least other tasks seem to run but in a bit abnormal way with big time gaps.
3) If I change I2C frequency from 10kHz to 100kHz problem disappears.
Well,... by the moment it's all I've managed to find out.