Skip to main content
Visitor II
September 24, 2020
Solved

MEMS source for VS Code Cmake compilation on windows

  • September 24, 2020
  • 3 replies
  • 1187 views

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.
    Best answer by Miroslav BATEK

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

    3 replies

    ST Employee
    September 24, 2020

    Hi,

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

    MRajAuthor
    Visitor II
    September 24, 2020

    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.

    ST Employee
    September 25, 2020

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

    MRajAuthor
    Visitor II
    September 25, 2020

    Thanks, that works.