I2C baudrate on CAM H7 seems wrong

Discussion related to "under the hood" OpenMV topics.
User avatar
garivetm
Posts: 19
Joined: Mon Sep 18, 2017 8:51 am

I2C baudrate on CAM H7 seems wrong

Postby garivetm » Wed Jan 29, 2020 4:06 am

Hi,

I have configured an i2c bus in MASTER mode with the baudrate 400000 on my CAM H7. However when I scope the SCL line, signal frequency is 800kHz. I have also tried 100000 and frequency is 120kHz (so it seems ok). 200000 is not supported according to an error message. What are the allowed baudrates ?

Here is my sample code :

Code: Select all

from pyb import I2C

# Objects (I2C, INT_pin, VL53L0X)
i2c = I2C(2)
i2c.init(I2C.MASTER, baudrate=400000)
Have you ever been reported this kind of problem ?

Regards,
User avatar
kwagyeman
Posts: 4271
Joined: Sun May 24, 2015 2:10 pm

Re: I2C baudrate on CAM H7 seems wrong

Postby kwagyeman » Wed Jan 29, 2020 8:26 am

This sounds like a prescaler issue in the MicroPython HAL. Can you open a bug ticket on GitHub?
Nyamekye,
User avatar
garivetm
Posts: 19
Joined: Mon Sep 18, 2017 8:51 am

Re: I2C baudrate on CAM H7 seems wrong

Postby garivetm » Wed Jan 29, 2020 8:30 am

Yes I do think it is this kind of problem. Can you give me the link of the git repo please ? I will report it.
User avatar
kwagyeman
Posts: 4271
Joined: Sun May 24, 2015 2:10 pm

Re: I2C baudrate on CAM H7 seems wrong

Postby kwagyeman » Wed Jan 29, 2020 8:51 am

Nyamekye,
User avatar
garivetm
Posts: 19
Joined: Mon Sep 18, 2017 8:51 am

Re: I2C baudrate on CAM H7 seems wrong

Postby garivetm » Wed Feb 05, 2020 6:35 am

Thx, it has been done.

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 19 guests