Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I2C example produces weird non-working results #810

Open
HourGlss opened this issue Jun 14, 2024 · 3 comments
Open

I2C example produces weird non-working results #810

HourGlss opened this issue Jun 14, 2024 · 3 comments

Comments

@HourGlss
Copy link

https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/examples/i2c.rs

verifying with an O-Scope... the clock this produces only sends one pulse and the data line sent nothing.

@ithinuel
Copy link
Member

ithinuel commented Jun 16, 2024

This has been and still is being used regularly by lots of people without issues.

Could you tell us more about your use case?

  • hardware setup, (simplified) schematics or off-the-shelf board reference?
  • driver configuration, pin used, frequency?
  • what peripheral is being controlled? have you been able to have this setup work with a different firmware?

EDIT: we also have some quite extensive hardware in the loop testing: https://github.com/rp-rs/rp-hal/tree/main/on-target-tests/tests

@jannic
Copy link
Member

jannic commented Jun 16, 2024

Just to be sure, I captured the signals on GPIO18/19 while running the i2c example. (Nothing connected to these pins, so there's no device answering.) Looks fine.
screen

@jannic
Copy link
Member

jannic commented Jun 29, 2024

@HourGlss any news on this? I'm quite confident that the example works as expected. Of course it is not strictly impossible that we have some bug that needs some unknown condition to get triggered. But I consider it much more likely that there's something wrong with your hardware. GPIO pins can break, for example, with the rest of the rp2040 working perfectly fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants