From 5c965ad687752de61079d36af92c9ee65dbe4d0a Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 9 Oct 2024 16:13:17 -0500 Subject: [PATCH] Add readme --- flake.nix | 3 --- readme.md | 14 ++++++++++++++ rust-toolchain.toml | 5 +++++ 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 readme.md create mode 100644 rust-toolchain.toml diff --git a/flake.nix b/flake.nix index 02deda4..4f52990 100644 --- a/flake.nix +++ b/flake.nix @@ -14,10 +14,7 @@ default = pkgs.mkShell { packages = with pkgs; [ picotool - elf2uf2-rs - probe-rs rustup - flip-link ]; }; }); diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..046148a --- /dev/null +++ b/readme.md @@ -0,0 +1,14 @@ +# Raspberry Pi Pico 2 - with Rust! + +You will need nix with flakes enabled. Then: + +```shell_session +$ direnv allow # setup rustup and picotool +$ rustup show # install rustc, cargo, and the pico 2 toolchain +# plug in your pico 2 while holding the BOOTSEL button +$ cargo run --release +# this will probably fail the first and you will need to install whatever is missing with rustup +# then try again +``` + +Have fun! diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..f036ad1 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,5 @@ +[toolchain] +channel = "1.80" +components = ["rustc", "cargo"] +targets = ["thumbv8m.main-none-eabihf"] +profile = "minimal"