cancel
Showing results for 
Search instead for 
Did you mean: 

MEMS source for VS Code Cmake compilation on windows

MRaj
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Miroslav BATEK
ST Employee

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

View solution in original post

4 REPLIES 4
Miroslav BATEK
ST Employee

Hi,

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

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 BATEK
ST Employee

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

MRaj
Associate II

Thanks, that works.