Skip to content

Commit 5b67ff8

Browse files
committed
Simplify steps in usage section of README.md as now Cargo configuration works
1 parent 2a10692 commit 5b67ff8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Designed for the ATmega328p.
1212

1313
* A recent version of the nightly Rust compiler. Anything including or
1414
greater than `rustc 1.63.0-nightly (fee3a459d 2022-06-05)` can be used.
15+
* A recent version of Cargo. At least 1.52.0 or greater.
1516
* The rust-src rustup component - `$ rustup component add rust-src`
1617
* AVR-GCC on the system for linking
1718
* AVR-Libc on the system for support libraries
@@ -26,12 +27,7 @@ Now to build, run:
2627
export AVR_CPU_FREQUENCY_HZ=16000000
2728

2829
# Compile the crate to an ELF executable.
29-
cargo build -Z build-std=core --target avr-atmega328p.json --release
30-
31-
# Note: there is work in progress to make that easier
32-
# peeking in .cargo/config.tom will show that
33-
# cargo build --release
34-
# is the short version
30+
cargo build --release
3531
```
3632
There should now be an ELF file at `target/avr-atmega328p/release/blink.elf`. It
3733
can be flashed directly to an AVR microcontroller or ran inside a simulator.

0 commit comments

Comments
 (0)