bme688 classification ai model embedding error

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")

pers_config_state.ino.c
10.33KB
1 reply