C:\Users\hp\Documents\Arduino\libraries\project1_96_0.1_imgsize96_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\add.cpp:530:20: fatal error: esp_nn.h: No such file or directory
1 week ago same project was running fine but now when i downloaded the arduino build it is not running and giving above error.
Hi there, I am getting the same error. Unable to compile in Arduino IDE. Its complaining about esp_nn.h. In previous libraries, this file did not exist. Do we need to download esp_nn components and copy it to the sdk folder before compilation in Arduino IDE?
Hi, @jenny , I am experiencing the same problem. It used to work about 2 weeks ago without a problem using Arudino IDE. Same library that worked before and if I download it again and try to compile Arduino code fails as shown in screen shots below.
We do not actually support (or test) Arduino builds for ESP32 - the recommended way to run impulse on ESP32 chips is to use ESP IDF, as described in the documentation
The issue you encountering is related to recent update to Edge Impulse SDK, where we included ESP NN into SDK. In future we plan to provide Arduino sketch examples for ESP32, but I cannot give you a definite date on when this might happen.
To fix your builds now I recommend switching off ESP NN acceleration
to do that locate ei_classifier_config.h in exported Arduino library folder and add #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN 0
on line 25.
Additionally you might encounter the linker error when trying to use ESP32 with Arduino IDE. If you do, change line 139 in src/edge-impulse-sdk/porting/ei_classifier_porting.h to #if defined(CONFIG_IDF_TARGET_ESP32) && EI_PORTING_ARDUINO == 0
After that your project should build properly.