Skip to content

[codex] Add BMX160 auxiliary magnetometer init#232

Draft
TobiasRoeddiger wants to merge 1 commit into
mainfrom
codex/bmx160-aux-init-fix
Draft

[codex] Add BMX160 auxiliary magnetometer init#232
TobiasRoeddiger wants to merge 1 commit into
mainfrom
codex/bmx160-aux-init-fix

Conversation

@TobiasRoeddiger

Copy link
Copy Markdown
Member

Summary

This PR adds a more in-depth BMX160/BMM150 magnetometer initialization path for BMX160 units whose serial numbers require initialization through the BMI160-style auxiliary interface.

The driver now first probes and configures the BMM150 through the auxiliary interface, then falls back to the existing BMX160 magnetometer setup routine if that path is not available.

Why

Some BMX160 serial numbers do not initialize reliably with the previous magnetometer setup sequence alone. This change adds the deeper auxiliary-interface sequence needed by those units while preserving the older BMX160 routine as a fallback.

Compatibility note

This still needs to be verified on hardware to confirm that the new probe-and-fallback flow does not break compatibility with devices that already worked with the old BMX160 routine.

Validation

  • git diff --check -- src/SensorManager/BMX160/DFRobot_BMX160.cpp src/SensorManager/BMX160/DFRobot_BMX160.h
  • Attempted west build -b openearable_v2/nrf5340/cpuapp; configuration reached toolchain discovery but could not continue because the local Zephyr SDK/toolchain package is not installed or configured.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Build output available:
openearable_v2_firmware.elf.zip
openearable_v2_fota.zip

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.

1 participant