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

BBC micro:bit v1.5 LSM303AGR-ACCEL #34225

Closed
Liviu112 opened this issue Apr 12, 2021 · 4 comments
Closed

BBC micro:bit v1.5 LSM303AGR-ACCEL #34225

Liviu112 opened this issue Apr 12, 2021 · 4 comments

Comments

@Liviu112
Copy link

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:

image

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:
image
(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:
image

Fix:
Change line 81 and 89 to : status = "okay"; in file zephyr/boards/arm/bbc_microbit/bbc_microbit.dts

To Reproduce
Steps to reproduce the behavior:

  1. west build -p auto -b bbc_microbit samples/sensor/lis2dh
  2. west flash
  3. See error

Impact
Inability to use the LSM303AGR-ACCEL sensor.

Environment:
OS: Linux 20.04
Toolchain: Zephyr version: 2.5.0

@Liviu112 Liviu112 added the bug The issue is a bug, or the PR is fixing a bug label Apr 12, 2021
@FRASTM
Copy link
Collaborator

FRASTM commented Apr 12, 2021

LSM303AGR sensor (MAGN part) is mentioned in the issue #34196

@Liviu112
Copy link
Author

That does not yet explain why is disabled in bbc_microbit.dts file :)

@jfischer-no
Copy link
Collaborator

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.
"See https://tech.microbit.org/hardware/i2c/ for board variants "
This is all in the dts file you screenshotted instead of just posting a link to the line.

@jfischer-no jfischer-no added question and removed bug The issue is a bug, or the PR is fixing a bug labels Apr 12, 2021
@Liviu112
Copy link
Author

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.

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

3 participants