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

Fix for I2C startup issues on BNO055 and ICM20948 #206

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

Timocop
Copy link
Contributor

@Timocop Timocop commented Oct 22, 2022

For still unknown reasons BNO055 and ICM20948 (and may probably others) have I2C-Scan issues when starting up or resetting. Without this fix, I2C-Scan has a random chance of not finding those IMUs. It either fails to find them or deadlocks the ESP.

Example error:

[INFO ] [SlimeVR] SlimeVR v0.2.3 starting up...
[INFO ] [Configuration] Found up-to-date configuration v1
[DEBUG] [Configuration] Found sensor calibration for ICM20948 at index 0
[INFO ] [Configuration] Loaded configuration
[ERR] I2C: Can't find I2C device on provided addresses, scanning for all I2C devices and returning 
[DBG] I2C (@ D2(4) : D1(5)): I2C device found at address 0x28  ! 
[ERROR] [ErroneousSensor:0] IMU of type BNO055 failed to initialize 
[INFO ] [BNO055Sensor:1] Connected to BNO055 at address 0x28

For still unknown reasons BNO055 and ICM20948 (and may probably others) have I2C-Scan issues when starting up or resetting.
Without this fix, I2C-Scan has a random chance of not finding those IMUs. It either fails to find them or deadlocks the ESP.

Example error:
[INFO ] [SlimeVR] SlimeVR v0.2.3 starting up...
[INFO ] [Configuration] Found up-to-date configuration v1
[DEBUG] [Configuration] Found sensor calibration for ICM20948 at index 0
[INFO ] [Configuration] Loaded configuration
[ERR] I2C: Can't find I2C device on provided addresses, scanning for all I2C devices and returning
[DBG] I2C (@ D2(4) : D1(5)): I2C device found at address 0x28  !
[ERROR] [ErroneousSensor:0] IMU of type BNO055 failed to initialize
[INFO ] [BNO055Sensor:1] Connected to BNO055 at address 0x28
@Eirenliel Eirenliel merged commit 418a33a into SlimeVR:main Oct 25, 2022
@Timocop Timocop deleted the I2C-fix branch October 27, 2022 15:05
ThreadOfFate pushed a commit to ThreadOfFate/SlimeVR-Tracker-ESP that referenced this pull request Nov 1, 2022
Circuitwalker pushed a commit to Circuitwalker/SlimeVR-Tracker-ESP that referenced this pull request Nov 14, 2022
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.

4 participants