Skip to main content
MRaj
Associate
Sep 24, 2020 4:58 AM UTC
Solved

MEMS source for VS Code Cmake compilation on windows

Hi, I am using an STM32L4 Discovery kit and using VS Code on Windows 10 for development and using CMake to build the application. I have all the setup done using CMake. I now need to include the different mems middleware for calibration and need to know where I can find the source (not just the libraries) to include them if it is open source. Thanks.

    This topic has been closed for replies.
    Miroslav BATEKBest answer
    ST Employee
    Sep 25, 2020 9:20 AM UTC

    Could you please use following compiler option -mfloat-abi=softfp.

    4 replies

    ST Employee
    Sep 24, 2020 7:47 AM UTC

    Hi,

    unfortunately we don't share source code for the MEMS middleware libraries.

    MRaj
    MRajAuthor
    Associate
    Sep 24, 2020 6:04 PM UTC

    Thanks @Miroslav BATEK​ , so I was also trying to include the same middleware's in STCube Ide and it throws me error saying

    "error: *.elf uses VFP register arguments, /STM32Cube/Repository/Packs/STMicroelectronics/X-CUBE-MEMS1/8.1.1/Middlewares/ST/STM32_MotionMC_Library/Lib\MotionMC_CM4F_wc32_ot.a(motion_mc.o) does not"

    I was able to repro this by creating a new project and adding just the MC middleware and compiling the build.

    Miroslav BATEKBest answer
    ST Employee
    Sep 25, 2020 9:20 AM UTC

    Could you please use following compiler option -mfloat-abi=softfp.

    MRaj
    MRajAuthor
    Associate
    Sep 25, 2020 5:13 PM UTC

    Thanks, that works.