Accelerometer stopped working after moving from Zephyr 2 to 3 #50884
Unanswered
jefffhaynes
asked this question in
Q&A
Replies: 1 comment
-
The doc says:
https://docs.zephyrproject.org/latest/kernel/drivers/index.html#c.DEVICE_DT_GET_ANY |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Not sure how to ask for help with this because I'm super lost. I have what I believe is a pretty straightforward use of an accelerometer. It was working both on our dev board and our production board under Zephyr 2. After moving to 3, we are getting EIO from the I2C bus when we try to contact the part.
Here is our overlay for the nrf52840 SDK:
And the relevant code:
The only difference with the 2 version was that I was retrieving the device by label, but I don't see how that would matter.
EDIT: There doesn't appear to be any I2C traffic on the bus at all.
@avisconti any ideas?
Beta Was this translation helpful? Give feedback.
All reactions