Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/003.3-example-building-blink.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down