From 7540c93bc3cfcb464a2ec87555c439a19b160854 Mon Sep 17 00:00:00 2001 From: Jesus Hernandez Date: Thu, 6 Jun 2024 03:02:20 +0200 Subject: [PATCH] Update building blink example as now it's simpler --- src/003.3-example-building-blink.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/003.3-example-building-blink.md b/src/003.3-example-building-blink.md index 0786f22..3f9b52b 100644 --- a/src/003.3-example-building-blink.md +++ b/src/003.3-example-building-blink.md @@ -7,13 +7,12 @@ for AVR. # fetch and prepare the blink crate (only needs to be done once). $ git clone https://github.com/avr-rust/blink.git $ cd blink -$ rustup override set nightly # Configure the 'ruduino' crate with a MCU frequency of 16MHz $ export AVR_CPU_FREQUENCY_HZ=16000000 -# compile the blink crate to an ELF file targeting atmega328p. -$ cargo build -Z build-std=core --target avr-atmega328p.json --release +# Compile the blink crate to an ELF file targeting atmega328p (target is configured in .cargo/config.toml). +$ cargo build --release ``` After compilation, the final ELF executable will be available at `target/avr-atmega328p/release/blink.elf`, ready to be flashed to a device