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

Wrong example for ESP8266? #88

Open
Eirenliel opened this issue May 26, 2021 · 0 comments
Open

Wrong example for ESP8266? #88

Eirenliel opened this issue May 26, 2021 · 0 comments

Comments

@Eirenliel
Copy link

Subject of the issue

Example code recommends setting clock stretch limit for ESP to 4000, despite default clock stretch being 150000. 4000 is not enough for BNO085, it can stretch clock further and it can cause the ESP to skip a bit, misshandle communication with the sensor, and cause it to crash. I recommend not setting stretch limit or setting default value of 150000.

I am curious on how this value ended up in the example, was the default setting not part of i2c driver before?

Your workbench

  • What development board or microcontroller are you using?
    • NodeMCU 3 or custom board based on ESP-12F
  • What version of hardware or breakout board are you using?
    • Breakout boards from amazon
  • How is the breakout board to your microcontroller?
    • SCL, SDA and INT pints to GPIO
  • How is everything being powered?
    • Doesn't matter, any power produces the same result

Steps to reproduce

Run any code long enough with low stretch time and it will crash the BNO.

Expected behavior

BNO should not restart itself.

Actual behavior

BNO restarts after random period of time with reset reason 2 (internal reset).

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

1 participant