-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
BBC micro:bit v1.5 LSM303AGR-ACCEL #34225
Comments
LSM303AGR sensor (MAGN part) is mentioned in the issue #34196 |
That does not yet explain why is disabled in bbc_microbit.dts file :) |
Because it is for v1.5 variant of bbc:microbit, the "default" variant v1.3 has MMA8653FC enabled. |
It didn't was clear to me at the start what was the problem. Now looking back that makes sense, also you do not have to feel offended I tried just to help. |
Describe the bug
Hi, I was trying to use the lis2dh example code in combination with BBC micro:bit v1.5 .
The code compiles without issues and can be flashed, when the board is reseted the following message is received:
What have you tried to diagnose or workaround this issue?
I have found that, in the definition of the board, the status is set to disable for some reason:
(zephyr/boards/arm/bbc_microbit/bbc_microbit.dts)
In order to get the lis2dh to work, it is required to change the status to "okay". After reflashing the lis2dh example the terminal showed the following:
Fix:
Change line 81 and 89 to :
status = "okay";
in filezephyr/boards/arm/bbc_microbit/bbc_microbit.dts
To Reproduce
Steps to reproduce the behavior:
west build -p auto -b bbc_microbit samples/sensor/lis2dh
west flash
Impact
Inability to use the LSM303AGR-ACCEL sensor.
Environment:
OS: Linux 20.04
Toolchain: Zephyr version: 2.5.0
The text was updated successfully, but these errors were encountered: