From a85e1f115219aa123f7c26dba22adefb0fe62303 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 14 Jul 2020 11:14:41 +0200 Subject: [PATCH] show a single way to flash the program this is the recommended way --- embedded-workshop-book/src/flashing-program.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/embedded-workshop-book/src/flashing-program.md b/embedded-workshop-book/src/flashing-program.md index 2b99d85..ae7b91c 100644 --- a/embedded-workshop-book/src/flashing-program.md +++ b/embedded-workshop-book/src/flashing-program.md @@ -1,19 +1,15 @@ # Flashing the Program -✅ Use the following command to flash the ELF file to the device. - -``` console -$ cargo flash --chip nRF52840_xxAA --elf target/thumbv7em-none-eabi/debug/hello -``` - -> NOTE: If you run into an error along the lines of "Debug power request failed" retry the operation and the error should disappear. - -Alternatively you can run this command, which builds the application before flashing it. +✅ Use the following command to flash the program to the device. ``` console $ cargo flash --chip nRF52840_xxAA --bin hello ``` +> NOTE: If you run into an error along the lines of "Debug power request failed" retry the operation and the error should disappear. + +This subcommand will build the program first so you'll always flash the latest version. + The `cargo-flash` subcommand flashes and runs the program but won't display logs. It is a deployment tool. **🔎 How does flashing work?**