02-07-2022 09:43 PM
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.
07-21-2022 07:57 PM
Hello Oner,
I was trying to use BSEC library with STM32F446, and I can only get the sensor values like Temperature, humidity, and Pressure, except CO2.
could you please give me the sample code of using BSEC library with STM32 CubeIDE, to get CO2 equivalent, and IAQ?
Thank you a lot !