In order to use the magnetometer sensor of the BBC:Microbit v1.5 we need to compile the LIS2MDL driver.
To compile, this driver need a file named "lis2dh_reg.h" who is part of the zephyr-hal-st. This HAL is not releated to STM32 mcu but only to ST sensors (https://github.com/zephyrproject-rtos/hal_st)
Platformio should allows download of this module for the nordic platform.
Solution proposal
Updating the platform.json by adding the following line :
Bug
In order to use the magnetometer sensor of the BBC:Microbit v1.5 we need to compile the LIS2MDL driver.
To compile, this driver need a file named "lis2dh_reg.h" who is part of the zephyr-hal-st. This HAL is not releated to STM32 mcu but only to ST sensors (https://github.com/zephyrproject-rtos/hal_st)
Platformio should allows download of this module for the nordic platform.
Solution proposal
Updating the platform.json by adding the following line :
Project to reproduce
src/main.c
zephyr/CMakeLists.txt
zephyr/prj.conf
zephyr/bbc_microbit.overlay