Improved debugger experience

This commit is contained in:
Dreaded_X 2023-09-02 05:33:12 +02:00
parent 831f180046
commit 690fab5c51
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4
4 changed files with 7 additions and 4 deletions

View File

@ -3,10 +3,10 @@ build-std = ["core"]
build-std-features = ["panic_immediate_abort"] build-std-features = ["panic_immediate_abort"]
[target.'cfg(all(target_arch = "arm", target_os = "none"))'] [target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "probe-rs run --chip RP2040" runner = "./wrapper.sh"
[build] [build]
target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+ target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
[env] [env]
DEFMT_LOG = "debug" DEFMT_LOG = "warn,rp=trace,bootloader=trace"

2
.embed.toml Normal file
View File

@ -0,0 +1,2 @@
[default.general]
chip = "rp2040"

View File

@ -1,2 +0,0 @@
file target/thumbv6m-none-eabi/debug/rp
target remote :1337

3
wrapper.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
probe-run --chip RP2040 --log-format="{L} {s}
└─ [{t}] {m} @ {F}:{l}" $@