Hi,
I tried to use BME680 sensor with STM32F303 in STM32Cube IDE (macos version). I can read gas sensor data, temp and humudity with BME680 lib. But i got below error when I tried to use BSEC lib to read IAQ data. How can I solve this issue?
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: Core/Src/bsec_integration.o: in function `bme680_bsec_update_subscription':
/Users/*******/STM32CubeIDE/workspace_1.6.1/BME680_IQA/Debug/../Core/Src/bsec_integration.c:140: undefined reference to `bsec_update_subscription'
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: Core/Src/bsec_integration.o: in function `bsec_iot_init':
/Users/******/STM32CubeIDE/workspace_1.6.1/BME680_IQA/Debug/../Core/Src/bsec_integration.c:185: undefined reference to `bsec_init'
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: /Users/*****/STM32CubeIDE/workspace_1.6.1/BME680_IQA/Debug/../Core/Src/bsec_integration.c:195: undefined reference to `bsec_set_configuration'
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: /Users/******/STM32CubeIDE/workspace_1.6.1/BME680_IQA/Debug/../Core/Src/bsec_integration.c:206: undefined reference to `bsec_set_state'
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: Core/Src/bsec_integration.o: in function `bme680_bsec_process_data':
/Users/******/STM32CubeIDE/workspace_1.6.1/BME680_IQA/Debug/../Core/Src/bsec_integration.c:416: undefined reference to `bsec_do_steps'
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: Core/Src/bsec_integration.o: in function `bsec_iot_loop':
/Users/******/STM32CubeIDE/workspace_1.6.1/BME680_IQA/Debug/../Core/Src/bsec_integration.c:520: undefined reference to `bsec_sensor_control'
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: /Users/******/STM32CubeIDE/workspace_1.6.1/BME680_IQA/Debug/../Core/Src/bsec_integration.c:538: undefined reference to `bsec_get_state'
collect2: error: ld returned 1 exit status
Solved! Go to Solution.
Hi Robin,
I am using "BSEC_1.4.8.0_Generic_Release_updated_v3", but how can I add "libalgobsec.a" data in STM32Cube. I tried to add in Project folder and add folder link in Project Includes and Source Locations. But error is still there. I added screenshots.
Öner
Hi Robin,
I crated new project and add the library only in setings, and it works. The sample code reads sensör parameters correctly. But iaq variable is 25 and
Hello oner,
Good.
The program needs to run for a period of time until the accuracy state changes.