From df36fa34bac19c43f4f607fcc41745ab10bd0094 Mon Sep 17 00:00:00 2001 From: Stephen D <webmaster@scd31.com> Date: Sun, 4 Jun 2023 09:36:14 -0300 Subject: [PATCH] reset on panic --- Cargo.lock | 19 ++++--------------- Cargo.toml | 5 +++-- src/main.rs | 3 +-- 3 files changed, 8 insertions(+), 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 61837fc..731dbaa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -120,15 +120,6 @@ dependencies = [ "syn", ] -[[package]] -name = "cortex-m-semihosting" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c23234600452033cc77e4b761e740e02d2c4168e11dbf36ab14a0f58973592b0" -dependencies = [ - "cortex-m", -] - [[package]] name = "critical-section" version = "1.1.1" @@ -264,13 +255,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d5439c4ad607c3c23abf66de8c8bf57ba8adcd1f129e699851a6e43935d339d" [[package]] -name = "panic-semihosting" -version = "0.6.0" +name = "panic-reset" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee8a3e1233d9073d76a870223512ce4eeea43c067a94a445c13bd6d792d7b1ab" +checksum = "6cf1ff2a5b1a478dd94572aa43476b6630e72071cbd016985003ad3903a3a4f5" dependencies = [ "cortex-m", - "cortex-m-semihosting", ] [[package]] @@ -281,8 +271,7 @@ dependencies = [ "cortex-m", "cortex-m-rt", "cortex-m-rtic", - "cortex-m-semihosting", - "panic-semihosting", + "panic-reset", "rf4463", "ringbuffer", "stm32f4xx-hal", diff --git a/Cargo.toml b/Cargo.toml index 7665571..d6740d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,9 +17,10 @@ opt-level = "z" stm32f4xx-hal = { version = "0.16", features = ["stm32f411", "rtic"]} cortex-m = "0.7" cortex-m-rt = "0.7" -cortex-m-semihosting = "0.5" -panic-semihosting = "0.6" +#cortex-m-semihosting = "0.5" +#panic-semihosting = "0.6" core2 = { version = "0.3", default_features = false } rf4463 = { path = "../rf4463" } cortex-m-rtic = { version = "1.1.4" } ringbuffer = { version = "0.13.0", default_features = false } +panic-reset = "0.1.1" diff --git a/src/main.rs b/src/main.rs index 3409546..89b5dd5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,8 +3,7 @@ extern crate cortex_m; extern crate cortex_m_rt as rt; -extern crate panic_semihosting; - +extern crate panic_reset; extern crate stm32f4xx_hal as hal; mod packet; -- GitLab