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

add note about I2C issues with certain microcontrollers #35

Merged
merged 3 commits into from
Mar 1, 2024

Conversation

rursprung
Copy link
Contributor

while i can use the sensor (& library) directly with my STM32F4 it doesn't work out of the box with my ESP32C6. after some digging & debugging i found esp-rs/esp-hal#352 which explains this same problem (though for a BNO080) and the solution for it (increased timeout).

i think it's worth adding a note here as people will find this library more easily than the solution (esp. since Adafruit doesn't mention the solution and kind-of just says "meh, don't use it with those microcontrollers").

the example wasn't aligned anymore with the current implementation and
thus didn't compile if copied directly.
while i can use the sensor (& library) directly with my STM32F4 it
doesn't work out of the box with my ESP32C6. after some digging &
debugging i found [esp-hal#352] which explains this same problem (though
for a BNO080) and the solution for it (increased timeout).

i think it's worth adding a note here as people will find this library
more easily than the solution (esp. since Adafruit doesn't mention the
solution and kind-of just says "meh, don't use it with those
microcontrollers").

[esp-hal#352]: esp-rs/esp-hal#352
@rursprung
Copy link
Contributor Author

one more thing which might make sense to add to the README (i can do that if you agree): you have to wait for the sensor to boot up before talking to it. as per the documentation (see chapter 1.2 / page 14) this is ~400ms (start-up time) / 650ms (power on reset time). my STM32 was slow enough so i didn't notice this, but with the ESP32 it fails on the first attempt

@eupn
Copy link
Owner

eupn commented Mar 1, 2024

@rursprung thank you, sure, please add a note about the initial delay too

@rursprung
Copy link
Contributor Author

@rursprung thank you, sure, please add a note about the initial delay too

done

@eupn eupn merged commit 8b9bba9 into eupn:master Mar 1, 2024
5 checks passed
@rursprung rursprung deleted the add-note-about-i2c-issues branch March 1, 2024 21:42
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

Successfully merging this pull request may close these issues.

2 participants