File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Designed for the ATmega328p.
12
12
13
13
* A recent version of the nightly Rust compiler. Anything including or
14
14
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.
15
16
* The rust-src rustup component - ` $ rustup component add rust-src `
16
17
* AVR-GCC on the system for linking
17
18
* AVR-Libc on the system for support libraries
@@ -26,12 +27,7 @@ Now to build, run:
26
27
export AVR_CPU_FREQUENCY_HZ=16000000
27
28
28
29
# 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
35
31
```
36
32
There should now be an ELF file at ` target/avr-atmega328p/release/blink.elf ` . It
37
33
can be flashed directly to an AVR microcontroller or ran inside a simulator.
You can’t perform that action at this time.
0 commit comments