Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
This document outlines the steps required to run a simple Add Module on the Pico2 microcontroller using executorch.

## (Pre-requisistes) Prepare the Environment for Arm
1. See <a href="https://docs.pytorch.org/executorch/main/tutorial-arm.html#set-up-the-developer-environment"/> for instructions on setting up the environment for Arm.

1. Setup executorch development environment, Also see <a href="https://docs.pytorch.org/executorch/main/tutorial-arm-ethos-u.html#software"/> for instructions on setting up the environment for Arm.
2. Make sure you have the toolchain configured correctly.

```bash
which arm-none-eabi-gcc
--> return something like executorch/examples/arm/ethos-u-scratch/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-gcc
Expand All @@ -22,9 +24,11 @@ executorch/examples/rpi/build_firmware_pico.sh --model=<path_to_model.pte>
```

### Flash Firmware

Hold the BOOTSEL button on the Pico2 and connect it to your computer; it will mount as RPI-RP2. Copy the executorch_pico.uf2 file to this drive.

### Verify Execution

Check that the Pico2's LED blinks 10 times at 500 ms interval to confirm successful firmware execution.
The Pico2's LED should blink 10 times at 500 ms intervals, indicating successful firmware execution. If connected via serial, you should see:

Expand All @@ -34,7 +38,9 @@ Output: 13.000000, 136.000000, 24.000000, 131.000000
```

### Debugging via Serial Terminal

On macOS or Linux, open a serial terminal with:

```bash
screen /dev/tty.usbmodem1101 115200
```
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading