This repository runs an exported impulse on the Raspberry Pi Pico / RP2040. See the documentation at Running your impulse locally. This repository is based on the Edge Impulse Example: stand-alone inferencing (Raspberry Pi Pico).
- Edge Impulse CLI.
- GNU ARM Embedded Toolchain.
- CMake.
- Rasperry Pi Pico SDK:
git clone -b master https://github.com/raspberrypi/pico-sdk.git cd pico-sdk git submodule update --init export PICO_SDK_PATH=`pwd`
Unzip the deployed C++ library
from your Edge Impulse project and copy only the folders to the root directory of this repository:
example-multicore-inferencing-pico/
├─ edge-impulse-sdk/
├─ model-parameters/
├─ source/
├─ tflite-model/
├─ .gitignore
├─ CMakeLists.txt
├─ LICENSE
├─ README.md
└─ pico_sdk_import.cmake
- Create the
build
folder:mkdir build && cd build
- Compile:
cmake .. && cmake --build . --parallel
Connect the Raspberry Pi Pico to your computer using a micro-USB cable while pressing and holding the BOOTSEL button.
Drag and drop the build/example_multicore.uf2
file to the RPI-RP2 disk in your file explorer.
Use screen or minicom to set up a serial connection over USB. The following UART settings are used: 115200 baud, 8N1.