Question/Problem:
I am trying to compile and deploy an Edge Impulse model on my Arduino Nano RP2040 Connect board. Despite importing the Arduino library as instructed and verifying that the toolchain is correctly installed, compilation consistently fails with errors related to library detection and no binary is produced.
Project ID:
720761
Context/Use Case:
The goal is to run an Edge Impulse motion classification model on the Nano RP2040 Connect. The project uses the official Edge Impulse Arduino library (generated from my project) and the standard example code provided in the deployment instructions.
Steps Taken:
- Generated and downloaded the Arduino library (.zip) from Edge Impulse.
- Imported the library into the Arduino IDE via Sketch > Include Library > Add .ZIP Library.
- Verified that the library appeared correctly in the Arduino IDE library manager.
- Attempted to compile example sketches (e.g.,
rp2040_microphone.ino
) included in the Edge Impulse library. - Tried different library import methods (unzipped folder, zip import).
- Confirmed the board platform and core installation.
- Tested that simpler sketches compile successfully without the Edge Impulse Arduino library.
Expected Result:
The project should compile without errors, generate a valid binary, and allow me to flash the board and run the inference.
Actual Results:
The compilation process fails with the following detailed error output:
FQBN: arduino:mbed_nano:nanorp2040connect
Using board ‘nanorp2040connect’ from platform folder: C:\Users\Domenico\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nano\4.3.1
Using core ‘arduino’ from platform folder: C:\Users\Domenico\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nano\4.3.1
Detecting libraries used…
C:\Users\Domenico\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\bin\arm-none-eabi-g++ -c -w -g3 -nostdlib … (truncated)
Alternative for suoniamo_il_mondo_inferencing.h: [suoniamo_il_mondo_inferencing@1.0.7]
ResolveLibrary(suoniamo_il_mondo_inferencing.h)
→ candidates: [suoniamo_il_mondo_inferencing@1.0.7]
Alternative for PDM.h: [PDM@1.0]
ResolveLibrary(PDM.h)
→ candidates: [PDM@1.0]
C:\Users\Domenico\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\bin\arm-none-eabi-g++ … (truncated)
An error occurred while detecting libraries used by C:\Users\Domenico\AppData\Local\arduino\sketches\B71A0EE4F1468976EA4F3F64C7310EEC\sketch\rp2040_microphone.ino.cpp
Compilation terminates and produces no binary output. This happens every time I attempt to build the project.
This happens not just in one case but evan when i try to compile other exemple sketch from the library that i’ve imported.
Reproducibility:
[X] Always
[ ] Sometimes
[ ] Rarely
Environment:
Platform: Arduino Nano RP2040 Connect
Build Environment Details: Arduino IDE 2.3.2, ARM GCC toolchain (7-2017q4)
Operating System: Windows 11
Edge Impulse Version (firmware): 1.72.16.
Project Version: v7 giu 29 2025, 12:17:55
Custom Blocks / Impulse Configuration:
Using default impulse configuration from Edge Impulse Studio (motion classification) without any custom blocks.
Logs/Attachments:
The full compilation log is included above. Additional screenshots or logs can be provided upon request.
Additional Information:
I have already verified that the board works and simpler Arduino sketches compile correctly. The issue only arises when including the Edge Impulse Arduino library. I have tried multiple import methods and different project configurations without success.