From 911e8c4898f8eabc70e7234f60adac16abe90733 Mon Sep 17 00:00:00 2001 From: MacBobby Chibuzor <83423188+theghostmac@users.noreply.github.com> Date: Thu, 20 Oct 2022 02:40:05 +0100 Subject: [PATCH] Update 004-flashing-a-crate-to-chip.md file Fixed a deprecated link, and made a simple formatting. --- src/004-flashing-a-crate-to-chip.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/004-flashing-a-crate-to-chip.md b/src/004-flashing-a-crate-to-chip.md index 75025c9..fc05fd5 100644 --- a/src/004-flashing-a-crate-to-chip.md +++ b/src/004-flashing-a-crate-to-chip.md @@ -1,29 +1,29 @@ # 4. Flashing a crate to a real AVR chip -The [AVRDUDE](https://www.nongnu.org/avrdude/) utility is recommended for flashing the final ELF file to a physical AVR microcontroller. - -Flashing a Rust ELF file is no different to flashing a regular AVR-GCC C/C++ generated ELF file. +The [AVRDUDE](https://www.nongnu.org/avrdude/) utility is recommended for flashing the final ELF file to a physical AVR microcontroller. +Flashing a Rust ELF file is no different to flashing a regular AVR-GCC C/C++ generated ELF file. You can learn more about the AVRDUDE project from either of +the following: * [AVRDUDE Project Homepage](https://www.nongnu.org/avrdude/) * [LadyADA AVRDUDE Tutorial](http://ladyada.net/learn/avr/avrdude.html) ## Arduino Uno -Connect your Arduino Uno to your computer, and use `avrdude` to flash your crate. The example below uses the output from [the `blink` example](./003.2-example-building-blink.md). +Connect your Arduino Uno to your computer, and use `avrdude` to flash your crate. The example below uses the output from [the `blink` example](./003.3-example-building-blink.md): ```bash avrdude -patmega328p -carduino -P[PORT] -b115200 -D -Uflash:w:target/avr-atmega328p/release/blink.elf:e ``` -where +where: * `-patmega328p` is the AVR part number * `-carduino` is the programmer * `-P[PORT]` is the serial port of your connected Arduino * On Linux & macOS, replace `[PORT]` with your Arduino's serial port (like `/dev/ttyUSB0`) * `-b115200` is the baud rate * `-D` disables flash auto-erase -* `-Uflash:w:target/avr-atmega328p/release/blink.elf:e` writes the `blink.elf` program to the Arduino's flash memory +* `-Uflash:w:target/avr-atmega328p/release/blink.elf:e` writes the `blink.elf` program to the Arduino's flash memory. For more debugging information, run `avrdude` with one or more `-v` flags.