2020-08-16 20:40:46 +00:00
|
|
|
# export RUST_TARGET_PATH=`pwd`
|
|
|
|
# export XARGO_RUST_SRC=/home/kirbylife/Aplicaciones/rust-avr/rust/src
|
|
|
|
|
|
|
|
# rustup run avr-toolchain xargo build --target avr-atmega328p --release
|
|
|
|
cargo build -Z build-std=core --target avr-atmega328p.json --release
|
2020-08-16 20:44:54 +00:00
|
|
|
avr-objcopy -O ihex -R .eeprom target/avr-atmega328p/release/rusted_mario_avr.elf output.hex
|
2020-08-16 23:03:53 +00:00
|
|
|
avrdude -p atmega328p -c arduino -P /dev/ttyACM0 -U flash:w:output.hex:i
|