I2C problems on STM32F10X

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
User avatar
z80
Posts: 20
Joined: Mon Oct 08, 2012 5:36 pm

I2C problems on STM32F10X

Post by z80 »

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.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: I2C problems on STM32F10X

Post by Giovanni »

Probably Barthess can answer this, he worked with I2C a lot.

Giovanni
Post Reply