diff --git a/.cargo/config.toml b/.cargo/config.toml index 654e59b..232d501 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,5 +1,8 @@ [target.'cfg(all(target_arch = "arm", target_os = "none"))'] -runner = "probe-rs run --chip STM32F411VETx" +# --no-catch-reset: don't trap the reset vector, so pressing the board's NRST +# button re-runs the firmware instead of ending the session with an Exception. +# (hardfault catch stays on by default, so panics still produce a backtrace.) +runner = "probe-rs run --chip STM32F411VETx --no-catch-reset" rustflags = [ # LLD (shipped with the Rust toolchain) is used as the default linker