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
compilation terminated.
1 week ago same project was running fine but now when i downloaded the arduino build it is not running and giving above error.
I am using arduino ide. This is arduino build : ei-mnv2_96_0.35_96imgsize-arduino-1.0.3.zip - Google Drive. The main problem is that the same build was running fine 1 week ago but now it is not running and giving error of there is no such file or directory esp_nn.h.
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?
in some build esp_nn.h was available but still that was running but now it is not running it is not problem of esp_nn.h it is problem of something else as far i can think
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.
As a workaround, you might be able to bring the esp_nn framework into your project (https://github.com/edgeimpulse/esp-nn). That will likely be a lot of effort in Arduino, though
Hello!
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.
I’ve got a M5Stack Timer Camera F that I want to use as my device, which is virtually identical to the Timer Camera X (OV3660).
I just wanted to check before starting down the ESP Tool documentation for ESP32-based devices that there is not a
firmware-arduino-esp32
repository?
Update: To clarify, if the repos are structured as follows:
|-firmware-manufacturer-model
|-example-manufacturer-model
Is there a repo that uses Arduino IDE instead of ESP Tool, thus structure:
|-firmware-manufacturer-model (OEM default utility)
|-firmware-manufacturer-model-ide (defined utility)
e.g.
|-firmware-expressif-esp32 (ESP Tool)
|-firmware-expressif-esp32-arduino (Arduino IDE)
As a follow-up: we do test Arduino ESP32 builds in CI now and everything should be working, including ESP-NN acceleration. @gavin67890 you get Arduino examples when you deploy your project as Arduino Library from Edge Impulse Studio. They are bundled with SDK and model files.