This commit is contained in:
Ulf Lilleengen
2023-10-03 21:00:59 +02:00
parent 2a437d31c4
commit 9010bfe79b
17 changed files with 42 additions and 577 deletions

View File

@ -1,17 +1,6 @@
[unstable]
build-std = ["core"]
build-std-features = ["panic_immediate_abort"]
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
#runner = "./fruitrunner"
runner = "probe-rs run --chip nrf52840_xxAA"
rustflags = [
# Code-size optimizations.
"-Z", "trap-unreachable=no",
#"-C", "no-vectorize-loops",
"-C", "force-frame-pointers=yes",
]
runner = "teleprobe local run --chip nRF52832_xxAA --elf"
[build]
target = "thumbv7em-none-eabi"

View File

@ -6,8 +6,8 @@ description = "Bootloader for nRF chips"
license = "MIT OR Apache-2.0"
[dependencies]
defmt = { version = "0.3", optional = true }
defmt-rtt = { version = "0.4", optional = true }
defmt = { version = "0.3" }
defmt-rtt = { version = "0.4" }
embassy-nrf = { path = "../../../../embassy-nrf", features = ["nightly"] }
embassy-boot-nrf = { path = "../../../../embassy-boot/nrf" }
@ -17,15 +17,9 @@ cortex-m-rt = { version = "0.7" }
cfg-if = "1.0.0"
[features]
defmt = [
"dep:defmt",
"embassy-boot-nrf/defmt",
"embassy-nrf/defmt",
]
softdevice = [
"embassy-boot-nrf/softdevice",
]
debug = ["defmt-rtt", "defmt"]
[profile.dev]
debug = 2

View File

@ -4,7 +4,6 @@
use core::cell::RefCell;
use cortex_m_rt::{entry, exception};
#[cfg(feature = "defmt")]
use defmt_rtt as _;
use embassy_boot_nrf::*;
use embassy_nrf::nvmc::Nvmc;