08-02-2023 03:45 PM
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")
08-06-2023 04:37 PM
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