From 7542f30bab92f2c5f7c09818b30e89fef46ad62d Mon Sep 17 00:00:00 2001 From: Stephen D <webmaster@scd31.com> Date: Fri, 1 Dec 2023 16:53:23 -0400 Subject: [PATCH] move to panic reset --- Cargo.lock | 19 ++++--------------- Cargo.toml | 5 +++-- src/main.rs | 4 ++-- 3 files changed, 9 insertions(+), 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d5083b0..ce85585 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -76,14 +76,13 @@ dependencies = [ "cortex-m", "cortex-m-rt", "cortex-m-rtic", - "cortex-m-semihosting", "crc", "embedded-storage", "half", "ham-cats", "nmea", "num-traits", - "panic-semihosting", + "panic-reset", "rand", "rf4463", "stm32f4xx-hal", @@ -169,15 +168,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 = "crc" version = "3.0.1" @@ -447,13 +437,12 @@ dependencies = [ ] [[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]] diff --git a/Cargo.toml b/Cargo.toml index fd23dba..2fb5ad4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,8 +16,9 @@ stm32f4xx-hal = { version = "0.16", features = ["stm32f411", "rtic", "otg-fs", " cortex-m = "0.7" cortex-m-rt = "0.7" cortex-m-rtic = { version = "1.1.4" } -cortex-m-semihosting = "0.5" -panic-semihosting = "0.6" +#cortex-m-semihosting = "0.5" +#panic-semihosting = "0.6" +panic-reset = "0.1.1" rf4463 = { git = "https://gitlab.scd31.com/stephen/rf4463-lib" } #rf4463 = { path = "../../rf4463" } systick-monotonic = "1.0.1" diff --git a/src/main.rs b/src/main.rs index 661aa2f..b5253a3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,8 @@ #![no_main] #![no_std] -// use panic_halt as _; -use panic_semihosting as _; +use panic_reset as _; +//use panic_semihosting as _; mod config; mod geo; -- GitLab