Possible Bug : BMI08x Sensor driver #63714
Unanswered
aloysiousBenoy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a BMI088 (bosch sensortech) Sensor module connected to a Seeed Studio XIAO BLE Sense. I'm trying to use the BMI08X driver included in zephyr to access the sensor. The sensor is treated as two separate devices in the device tree (gyro and accel)
Right now I'm just checking if both devices are ready. When I first flash (using jlink) and run the code both devices report ready. But on resetting the board (using on board reset button) the accelerometer fails to initialise and device reports as not ready. If I flash again, things work, but the error returns if I hit reset.
I used a logic analyser to check the activity on the bus and this is the first frame on the bus when things are working normally, (soft reset command to the accel):

Now after pressing reset, the driver seems to be invoking the wrong address. Here the address is 0x18 which is wrong.
.
Nothing is changed in hardware or software between the two runs, just a reset using the reset pin on hardware.
I feel like this is some bug with the sensor driver implementation. I faced a similar issue with the gyro which I have currently managed by editing the init sequence in the driver.
I'm not sure how to debug this using the debugger because issue only pops up after hitting reset in the debug session.
Should I file a bug report?
I've added the sensor to device tree in an overlay file. Also added
entries in prj.conf to enable the driver
Device tree overlay
Thank you for your time!
Beta Was this translation helpful? Give feedback.
All reactions