I also have the similar problem about get the VOC.
When I import the BSEC library, i have find some compile error.
My platform is Simplicity Studio. it found some compile error of such as: pow, roundf, powf,....
Can you help?
The following links described the platforms and compilers that BSEC already supported.
EFM32LG332F128G-F-QFP64 was Cortex-M3 architecture, but compiler of simplicity studio was not be supported in the list.
If you have any further requests, please visit https://www.bosch-sensortec.com/about-us/contact/contact-form, and use the contact form to submit your request.”
You are the right person to identify my problem using the below platform and Cortex-M33 module. I am using BME680 BSEC libraray in simplicity studio.
IDE: Simplicity Studio
MCU: Silicon Labs BGM220SC (32-bit ARM Cortex-M33)
Compiler : arm-none-eabi-gcc
Compiler with flags (Makefile) :
arm-none-eabi-gcc -g3 -gdwarf-2 -mcpu=cortex-m33 -mthumb -Xlinker --gc-sections -Xlinker -mfpu=fpv5-sp-d16 -mfloat-abi=hard --specs=nano.specs
I am getting the below errors for compilation, please do the needful.
error: Test_BSEC.axf uses VFP register arguments, C:\Users\fkumar\SimplicityStudio\v5_workspace_new_update\Test_BSEC\libalgobsec.a(any.o) does not uses VFP register arguments, does not Test_BSEC C/C++ Problem
error: Test_BSEC.axf uses VFP register arguments, C:\Users\fkumar\SimplicityStudio\v5_workspace_new_update\Test_BSEC\libalgobsec.a(bsec_codegen_data.o) does not Test_BSEC C/C++ Problem
As per your error list, It is realated to your Math library. If library is not included, then you have to implement the code for pow, round and etc..
FIrst please define #include <math.h> , #include <stdio.h>, #include <stdint.h>, #include <stdlib.h> header files.
hope it will solve your dependency.