From da61611f8f57410a87106961efd24d80e6a8f63e Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Tue, 26 Apr 2022 18:33:09 +0200 Subject: Add bootloader to CI --- examples/boot/nrf/.cargo/config.toml | 6 ++++++ examples/boot/nrf/Cargo.toml | 2 +- examples/boot/nrf/README.md | 8 ++++---- 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 examples/boot/nrf/.cargo/config.toml (limited to 'examples/boot/nrf') diff --git a/examples/boot/nrf/.cargo/config.toml b/examples/boot/nrf/.cargo/config.toml new file mode 100644 index 000000000..c75b5c539 --- /dev/null +++ b/examples/boot/nrf/.cargo/config.toml @@ -0,0 +1,6 @@ +[target.'cfg(all(target_arch = "arm", target_os = "none"))'] +# replace nRF82840_xxAA with your chip as listed in `probe-run --list-chips` +runner = "probe-run --chip nRF52840_xxAA" + +[build] +target = "thumbv7em-none-eabi" diff --git a/examples/boot/nrf/Cargo.toml b/examples/boot/nrf/Cargo.toml index 0a5bb8f9d..da8333b7c 100644 --- a/examples/boot/nrf/Cargo.toml +++ b/examples/boot/nrf/Cargo.toml @@ -6,7 +6,7 @@ version = "0.1.0" [dependencies] embassy = { version = "0.1.0", path = "../../../embassy", features = ["nightly"] } -embassy-nrf = { version = "0.1.0", path = "../../../embassy-nrf", features = ["time-driver-rtc1", "gpiote", "nightly"] } +embassy-nrf = { version = "0.1.0", path = "../../../embassy-nrf", features = ["time-driver-rtc1", "gpiote", "nightly", "nrf52840"] } embassy-boot-nrf = { version = "0.1.0", path = "../../../embassy-boot/nrf" } embassy-traits = { version = "0.1.0", path = "../../../embassy-traits" } diff --git a/examples/boot/nrf/README.md b/examples/boot/nrf/README.md index b97513a9d..453df7f31 100644 --- a/examples/boot/nrf/README.md +++ b/examples/boot/nrf/README.md @@ -17,15 +17,15 @@ application. ``` # Flash bootloader -cargo flash --manifest-path ../../embassy-boot/nrf/Cargo.toml --release --features embassy-nrf/nrf52840 --chip nRF52840_xxAA +cargo flash --manifest-path ../../../embassy-boot/nrf/Cargo.toml --features embassy-nrf/nrf52840 --release --chip nRF52840_xxAA # Build 'b' -cargo build --release --features embassy-nrf/nrf52840 --bin b +cargo build --release --bin b # Generate binary for 'b' -cargo objcopy --release --features embassy-nrf/nrf52840 --bin b -- -O binary b.bin +cargo objcopy --release --bin b -- -O binary b.bin ``` # Flash `a` (which includes b.bin) ``` -cargo flash --release --features embassy-nrf/nrf52840 --bin a --chip nRF52840_xxAA +cargo flash --release --bin a --chip nRF52840_xxAA ``` -- cgit