STM32F7DISC's I2C1 is not work in V1.8

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

STM32F7DISC's I2C1 is not work in V1.8

Post by shaoziyang » Sun May 08, 2016 5:04 pm

In micropython v1.8, NUCLEO_F411RE's I2C1 is work now, but STM32F7DISC's I2C1 is still not work. I use a DS3231 RTC mudule, it is work fine with NUCLEO_F411RE.

I use code below to test it, it will read second register, if it works, it will show a continuous change number.

Code: Select all

MicroPython v1.8 on 2016-05-09; F7DISC with STM32F746
Type "help()" for more information.
>>> from pyb import I2C
>>> i2c=I2C(1, I2C.MASTER)
>>> i2c.scan()
[87, 104]
>>> i2c.send(0, 104);i2c.recv(1, 104)[0]
0
>>> i2c.send(0, 104);i2c.recv(1, 104)[0]
16
>>> i2c.send(0, 104);i2c.recv(1, 104)[0]
16
>>> i2c.send(0, 104);i2c.recv(1, 104)[0]
16
>>>

Post Reply