mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-09 15:55:37 +00:00
show a single way to flash the program
this is the recommended way
This commit is contained in:
parent
0c19f76a85
commit
a85e1f1152
1 changed files with 5 additions and 9 deletions
|
@ -1,19 +1,15 @@
|
||||||
# Flashing the Program
|
# Flashing the Program
|
||||||
|
|
||||||
✅ Use the following command to flash the ELF file to the device.
|
✅ Use the following command to flash the program 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.
|
|
||||||
|
|
||||||
``` console
|
``` console
|
||||||
$ cargo flash --chip nRF52840_xxAA --bin hello
|
$ 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.
|
The `cargo-flash` subcommand flashes and runs the program but won't display logs. It is a deployment tool.
|
||||||
|
|
||||||
**🔎 How does flashing work?**
|
**🔎 How does flashing work?**
|
||||||
|
|
Loading…
Reference in a new issue