Skip to main content
Rami Rosenbaum (old)
Associate III
January 25, 2017
Question

STM32F101T6 i2c issues

  • January 25, 2017
  • 7 replies
  • 1040 views
Posted on January 25, 2017 at 08:56

Hi,

I'm working on a STM32F101T6U6ATR, and need to 'talk' with it via i2c (PB6, PB7).

There's an errata (STM32F10xx4 STM32F10xx6 Errata sheet, en.CD00211391.pdf) talking about lot's of i2c issues.

I've created a project with Cube (version 4.19.0), using FW_F1 V1.4.0.

I took i2c example code from the installed Cobe repository (c:\Users\user\STM32Cube\Repository\STM32Cube_FW_F1_V1.4.0\Projects\), but am not sure which board to take as reference, so defaulted to the STM32F103RB-Nucleo.

I have encountered many problems: Master mode stuck on BUSY state, Slave mode stuck after single transaction, etc.

I've set up 2 Discovery boards (STM32F0308-DISCO and STM32F072B-DISCO), connecting their PB6-7 i2c pins, and ran the Cube i2c examples, and they all work fine, seeing the data with an analyzer.

Any help or sample code will be much appreciated.

Thanks

#i2c #stmf101
This topic has been closed for replies.

7 replies

Nesrine M_O
Associate
January 25, 2017
Posted on January 25, 2017 at 09:50

Hi

Rosenbaum.Rami

,

  1. try to start withI2C examples under the STM32F1 firmware package: STM32Cube_FW_F1_V1.4.0\Projects\STM32F103RB-Nucleo\Examples\I2C
  2. Connect the 4.7k pull-up resistor as it is shown in the figure below

    0690X000006062nQAA.png

-Nesrine-

Rami Rosenbaum (old)
Associate III
January 25, 2017
Posted on January 25, 2017 at 10:14

Thanks for the quick reply.

I can try the HW change in development, but I'm working on a given HW, 2 boards (STM32F101CBT6 master and STM32F101T6U6ATR slave), connected directly via i2c, VCC and GND.

No HW changes possible...