-
Notifications
You must be signed in to change notification settings - Fork 621
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
base: main
Are you sure you want to change the base?
Conversation
Test Plan: TBD Reviewers: Subscribers: Tasks: Tags:
🔗 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 FailuresAs of commit a565eed with merge base 7c70403 ( 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. |
This PR needs a
|
@@ -0,0 +1,40 @@ | |||
cmake_minimum_required(VERSION 3.13) |
There was a problem hiding this comment.
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
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
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.