Firefly Open Source Community

Title: About problem of Rrk3399's I2C being not able to driven up [Print This Page]

Author: zengqiluo@yahoo    Time: 8/8/2018 17:49
Title: About problem of Rrk3399's I2C being not able to driven up
We encountered some problem of Camera integration. Currently our R&D progress is blocked at I2C being not able to driven up。 Even we are using official open-source code project and Devicetree file:


The phenomenon is any enabled I2C bus, SDA SCLkeep low. If externally connect to pull-up circuit,SDA become high voltage,but SCL is still less than 0.2V.
Check dmesg, it reports: “rk3x-i2c ff120000.i2c: timeout, ipd: 0x00, state:1”


Does anyone know the reaosn?
Author: leung先森    Time: 8/13/2018 15:18
I thought if you have not changed the code of the i2c2,  it might be the hardware broken.

Author: wizama    Time: 6/21/2019 22:52
Hi,
I have got the same problem (same error message), but on I2C4.
When you say "It might be the hardware broken" : does Firefly change the board ? It's a brand new one received one week ago !!!
Author: penguin    Time: 6/24/2019 11:39
@wizama

I2C4_SDA & I2C4_CLK are pulled up by the VCC_3V0 regulator.
Plz describe your problem more specifically.
It might be the same error message, but might not be the same reason.
Author: wizama    Time: 6/25/2019 00:14
Last edited by wizama In 6/26/2019 16:19 Editor

Hi penguin,
Thank you for your message.

I have got 3 boards AIO-3399C, and the issue only concerns one of them.
All three run the same customized firmware which is compiled from the sources with only the LVDS screen resolution modified in the DTS and the boot animation updated with customized logo. No changes have been made about I2C configuration.
On the I2C4 port, a NFC reader is connected, but is never detected whereas it is on the 2 other boards.

Here is the log I got from debug serial port on launch :
  1. [    1.878134] rk3x-i2c ff3d0000.i2c: Initialized RK3xxx I2C bus at ffffff800994a000
Copy the code

which suppose it seems to correctly initialized;
however, when i run "i2cdetect -y 4" command as root, it runs very slow, and for each tested address, I have the following in the logs :
  1. [  288.691942] rk3x-i2c ff3d0000.i2c: timeout, ipd: 0x00, state: 1
Copy the code

SDA is 3V and SCL is 0V, but should be 3V also

On the 2 other boards, this command is fast and displays for each address if a device is connected or not.

Any idea ?



Author: penguin    Time: 7/1/2019 10:11
You need to have the hardware guy check that.  SDA and SCL are pulled up to 3V. If no communication is in place, the voltage should be both 3V.
While communicating, there should be a square clock/signal.
Author: ballsystemlord    Time: 8/31/2019 03:54
See: https://robot-electronics.co.uk/i2c-tutorial
In particular:
It shows how to wire up the I2C bus.

Author: ballsystemlord    Time: 8/31/2019 03:55
Addendum: I've not tested the I2C bus yet, but I plan to.
Author: penguin    Time: 9/3/2019 17:49
Thanks ballsystemlord , for attaching a clear picture and tutorial link.
Author: johnbro300    Time: 1/9/2026 19:19
This is so good, I’m liking it immediately. The Valid dumps 156-836 ppt resource is available for free, hoping it supports your learning process.
Author: royyoun291    Time: 1/13/2026 19:10
Your article was incredibly refreshing, thank you. Reliable NCE-ABE exam bootcamp gives you a wealth of free content, created to assist you.
Author: sarahmi537    Time: 1/19/2026 23:28
I love the content, so it’s an instant like for me. With Latest test Experience-Cloud-Consultant collection free, you get access to valuable content at no cost, designed for your benefit.
Author: stanweb859    Time: 1/23/2026 03:08
我相信不論在哪個行業工作的人都希望自己有很好的職業前景。當然在競爭激烈的IT行業裏面也不例外。在IT行業中工作的專業人士也希望自己有個很好的提升機會和很大的提升空間。很多專業的IT人士都知道SAP C_BCBDC_2505 認證考試可以幫你滿足這些願望的。而PDFExamDumps是一個能幫助你成功通過SAP C_BCBDC_2505 的網站。
Author: halfox977    Time: 5 day before
Thank you for your wonderful share; this article really opened my eyes! The PCAP-31-03 free Brain dumps content is of great value, and it's completely free.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1