The osxMotionMC add-on software package for X-CUBE-MEMS1 software runs on the
STM32 and includes drivers that recognize the inertial sensors. It provides
real-time magnetometer calibration using hard iron (HI) and scale factor
(SF) coefficients to correct magnetometer data.

The osxMotionMC magnetometer calibration algorithm is provided in static library
format and is designed to be used in STM32 microcontrollers based on the ARM
Cortex-M3 or ARM Cortex-M4 architecture.

It is built on top of the STM32Cube software technology for portability across
different STM32 microcontrollers.

The software comes with sample implementations running on the X-NUCLEO-IKS01A1
(with optional STEVAL-MKI160V1) or X-NUCLEO-IKS01A2 expansion board on a
NUCLEO-F401RE or NUCLEO-L476RG development board.