06-24-2023 02:13 PM
I'm using STM32F756ZG microcontroller with BME688 sensor and BSEC API.
After calling one of available BSEC API functions, I get hard fault interrupt, which is caused by the "Invalid instruction set" event. I have tried using `-mthumb` to support the Thumb instruction set and also `-mthumb-interwork` option for compiler, linker, and assembler. In both cases my project compiles but I get hard fault when trying to call BSEC functions. If I use other option, that is `-marm`, my project won't compile, saying "CPU doesn't support this instruction set".
Which instruction set (option) should be used in combination with BSEC API?
06-24-2023 05:07 PM
Hi lgacnik97,
Could we know which BSEC software version you used?
You can increase you stack and heap size and run it again according my experience on STM32.
06-24-2023 05:33 PM
07-10-2023 08:54 AM
Hi lgacnik97,
If you use Keil MDK to compile BSEC on STM32F756ZG, there will be no compilation failure issue.
Do you use GCC compilation? If yes, do you use "BSEC2.4.0.0_Generic_Release_23012023\algo\normal_version\bin\gcc\Cortex_M7\libalgobsec.a" as you used STM32F756ZG?