09-30-2021 06:28 PM - edited 09-30-2021 06:29 PM
Good afternoon,
I feel that this is a simple problem but I can't seem to wrap my head around it. I have created a project with the BME680 and included all the directories for the .h and .c files needed. The compiler is having an issue loading the libalgosec.a library in. I am using a LPC 54xxx series chip in MCUXpresso IDE v11.3.1. I think it may be an issue with my project settings but reading through the documentation for the arduino implementation isn't helping that much in regard to adding this library. Any help is greatly appreciated.
c:/nxp/mcuxpressoide_11.3.1_5262/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.3.0.202008311133/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe:
./external/BSEC_1.4.8.0_Generic_Release/examples/bsec_iot_example/bsec_integration.o: in function `bme680_bsec_update_subscription':
C:\Users\Documents\Software\Debug/../external/BSEC_1.4.8.0_Generic_Release/examples/bsec_iot_example/bsec_integration.c:140: undefined reference to `bsec_update_subscription'
c:/nxp/mcuxpressoide_11.3.1_5262/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.3.0.202008311133/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: ./external/BSEC_1.4.8.0_Generic_Release/examples/bsec_iot_example/bsec_integration.o: in function `bsec_iot_init':
C:\Users\Documents\Software\Debug/../external/BSEC_1.4.8.0_Generic_Release/examples/bsec_iot_example/bsec_integration.c:186: undefined reference to `bsec_init'
c:/nxp/mcuxpressoide_11.3.1_5262/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.3.0.202008311133/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe:
C:\Users\Documents\Software\Debug/../external/BSEC_1.4.8.0_Generic_Release/examples/bsec_iot_example/bsec_integration.c:196: undefined reference to `bsec_set_configuration'
c:/nxp/mcuxpressoide_11.3.1_5262/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.3.0.202008311133/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe:
C:\Users\Documents\Software\Debug/../external/BSEC_1.4.8.0_Generic_Release/examples/bsec_iot_example/bsec_integration.c:207: undefined reference to `bsec_set_state'
c:/nxp/mcuxpressoide_11.3.1_5262/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.3.0.202008311133/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe:
./external/BSEC_1.4.8.0_Generic_Release/examples/bsec_iot_example/bsec_integration.o: in function `bme680_bsec_process_data':
C:\Users\Documents\Software\Debug/../external/BSEC_1.4.8.0_Generic_Release/examples/bsec_iot_example/bsec_integration.c:417: undefined reference to `bsec_do_steps'
c:/nxp/mcuxpressoide_11.3.1_5262/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.3.0.202008311133/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe:
./external/BSEC_1.4.8.0_Generic_Release/examples/bsec_iot_example/bsec_integration.o: in function `bsec_iot_loop':
C:\Users\Documents\Software\Debug/../external/BSEC_1.4.8.0_Generic_Release/examples/bsec_iot_example/bsec_integration.c:521: undefined reference to `bsec_sensor_control'
c:/nxp/mcuxpressoide_11.3.1_5262/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.3.0.202008311133/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Documents\Software\Debug/../external/BSEC_1.4.8.0_Generic_Release/examples/bsec_iot_example/bsec_integration.c:539: undefined reference to `bsec_get_state'
10-08-2021 08:19 AM
Hello ceso,
It seems that the BSEC library does not match your compiler and MCU platform.
We gladly publish all publicly available info, but sadly are unable to share the requested info within the community. Thanks for your understanding. If you have any further requests, please visit https://www.bosch-sensortec.com/about-us/contact/contact-form, use the contact form to submit your request and please make sure you refer to the question posed in the community.