From cd9c304370e586173bab1d71920a0943ea4d94d5 Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Tue, 23 Sep 2025 20:51:10 +0200 Subject: [PATCH] Use picotool --- .cargo/config.toml | 3 +-- shell.nix | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 01c7fca..0b32db2 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,6 +1,5 @@ [target.'cfg(all(target_arch = "arm", target_os = "none"))'] -runner = "probe-rs run --chip RP2040 --protocol swd" -# runner = "elf2uf2-rs -d" +runner = "picotool load -u -v -x -t elf" rustflags = [ "-C", "linker=flip-link", diff --git a/shell.nix b/shell.nix index d866bbc..882a501 100644 --- a/shell.nix +++ b/shell.nix @@ -1,10 +1,9 @@ { pkgs ? import {} }: pkgs.mkShell { nativeBuildInputs = with pkgs; [ - elf2uf2-rs + picotool gcc gnumake - probe-rs rustup ]; }