Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    bme688 classification ai model embedding error

    bme688 classification ai model embedding error

    smoxy
    Occasional Visitor

    Hello,
    I'm new to the bosch world and have problems embedding my BME-AI-Studio trained model into the Adafruit HUZZAH32 - ESP32 Feather.
    If I flash with Arduino IDE the basic_config_state.ino without editing it I have no problem. When I try to edit the minimal row for run mine model I receive this error:

    c:/users/smoxy/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\smoxy\AppData\Local\Temp\arduino_build_345798\sketch\pers_config_state.ino.cpp.o:(.literal._Z5setupv+0x2c): undefined reference to `bsec_config_selectivity'
    collect2.exe: error: ld returned 1 exit status
    Using library EEPROM at version 2.0.0 in folder: C:\Users\smoxy\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.10\libraries\EEPROM 
    Using library Bosch-BSEC2-Library-1.5.2400 at version 1.5.2400 in folder: C:\Users\smoxy\Documents\Arduino\libraries\Bosch-BSEC2-Library-1.5.2400 
    Using library Wire at version 2.0.0 in folder: C:\Users\smoxy\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.10\libraries\Wire 
    Using library SPI at version 2.0.0 in folder: C:\Users\smoxy\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.10\libraries\SPI 
    Using library Bosch-BME68x-Library-1.1.40407 at version 1.1.40407 in folder: C:\Users\smoxy\Documents\Arduino\libraries\Bosch-BME68x-Library-1.1.40407 
    exit status 1
    Error compiling for board Adafruit ESP32 Feather.

    where bsec_config_selectivity is the name of the extern const uint8_t located in the file .h and .c generated from BME AI-STUDIO.
    The structure of the dir is:
    ./commMux.cpp
    ./commMux.h
    ./config/Vape/bsec_serialized_configurations_selectivity.c
    ./config/Vape/bsec_serialized_configurations_selectivity.csv
    ./config/Vape/bsec_serialized_configurations_selectivity.h
    ./config/Vape
    ./config
    ./pers_config_state.ino

    I'm attaching the .ino file (but 'cause is not supported I changed the extension with ".c")

    1 REPLY 1

    BSTRobin
    Community Moderator
    Community Moderator

    Hi smoxy,

    If you would like to verify your config file with one BME688 on Adafruit HUZZAH32 - ESP32 Feather, you should run the example code under https://github.com/boschsensortec/Bosch-BSEC2-Library/blob/master/examples/generic_examples/basic_co..., not
    https://github.com/boschsensortec/Bosch-BSEC2-Library/tree/master/examples/bme68x_demo_sample

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist