2021-01-06 10:06 PM
2021-01-07 06:14 AM
2021-01-07 12:09 AM
If you're using a Cortex-Mo M0+ MCU, use the functions from motion_fx_cm0p.h, e.g. MotionFX_CM0P_initialize();
see "Getting started with MotionFX sensor fusion library in X-CUBE-MEMS1 expansion for STM32Cube" usr manual.
2021-01-07 01:09 AM
I use STM32WB - CortexM4.
But i have the same problem with all the functions in motion_fx.h and motion_fx_cm0p.h.
My IDE can't find the reference to these functions
2021-01-07 02:59 AM
Works for me if STM32CubeIDE 1.5.1 & MEMS pack 8.2.0.
Please note .a file is used (archive file <=> precompiled code) ... I guess function implementation is part of.
2021-01-07 03:23 AM
Exactly. The last (linker) step in the build console should link that library (-l). Exact name depends on MPU core.
arm-none-eabi-gcc -o "MotionFX.elf" @"objects.list" -l:MotionFX_CM0P_wc32_ot.a ...
If not, check that the library is in project properties:
2021-01-07 04:58 AM
Thank you,
I added Library Paths like you but it cannot find the MotionFX_CM4F_wc32_ot.a
I don't know how to link to .a file
2021-01-07 06:14 AM
2021-01-07 05:23 PM
Thank you for all support,
Finally it works for me :beaming_face_with_smiling_eyes:
For information, with Cortex M4 we need to config the Floating point to work with MotionFx. More information here :