Skip to content

Summary: Add Initial support to pico2 (Arm Cortex M) #12518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

psiddh
Copy link
Contributor

@psiddh psiddh commented Jul 15, 2025

Test Plan:
1\ Cross Compile Executorch for Arm Cortex M target
cd
rm -rf build; mkdir build; cd build; cmake .. -DCMAKE_TOOLCHAIN_FILE=./backends/raspberry_pi/arm-cortex-m0plus-toolchain.cmake -DEXECUTORCH_BUILD_ARM_BAREMETAL=ON -DCMAKE_BUILD_TYPE=Release -DROOT_OPS=aten::add.out; cmake --build . -j$(nproc);

2\ // Export PICO_SDK_PATH
export PICO_SDK_PATH=

3\ // In executorch/third-party folder
Make sure you downloaded c10 & torch folders

4\ cd examples/raspberry_pi/pico2/
rm -rf build; mkdir build; cd build; cmake .. -DPICO_BOARD=pico2 -DCMAKE_BUILD_TYPE=Debug; cmake --build . -j$(nproc)

5\ Flash the firmware

  • Hold BOOTSEL
  • Plug in Pico 2
  • Mounts as RPI-RP2
  • Copy executorch_pico.uf2 to that drive

6\ Check that LED light blinks 10 times , indicating that inference has been successful
(or)
7\ On Mac: check the USB logs as follows -
screen /dev/tty.usbmodem1101 115200

TODO:
1\ Add README.md
2\ Decide the directory structure
3\ Add copyrights to all the files
4\ Add triage / debugging tips for pico2 board

Summary

[PLEASE REMOVE] See CONTRIBUTING.md's Pull Requests for ExecuTorch PR guidelines.

[PLEASE REMOVE] If this PR closes an issue, please add a Fixes #<issue-id> line.

[PLEASE REMOVE] If this PR introduces a fix or feature that should be the upcoming release notes, please add a "Release notes: " label. For a list of available release notes labels, check out CONTRIBUTING.md's Pull Requests.

Test plan

[PLEASE REMOVE] How did you test this PR? Please write down any manual commands you used and note down tests that you have written if applicable.

Test Plan:
TBD

Reviewers:

Subscribers:

Tasks:

Tags:
Copy link

pytorch-bot bot commented Jul 15, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12518

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures, 3 Unrelated Failures

As of commit a565eed with merge base 7c70403 (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following jobs failed but was present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 15, 2025
@psiddh psiddh self-assigned this Jul 15, 2025
Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@@ -0,0 +1,40 @@
cmake_minimum_required(VERSION 3.13)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All files in this repo seem to more fit in https://github.com/pytorch/executorch/tree/main/examples/arm

@psiddh psiddh requested a review from digantdesai July 15, 2025 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants