Upload directly the elf instead the hex

not_working
kirbylife 2023-03-30 15:03:49 -06:00
parent 41efcce00f
commit 66f8de78be
2 changed files with 1 additions and 2 deletions

View File

@ -1,2 +1 @@
cargo build -Z build-std=core --target avr-atmega328p.json --release cargo build -Z build-std=core --target avr-atmega328p.json --release
avr-objcopy -O ihex -R .eeprom target/avr-atmega328p/release/rustytoken.elf rustytoken.hex

View File

@ -1 +1 @@
avrdude -p atmega328p -c arduino -P /dev/ttyACM0 -U flash:w:rustytoken.hex:i avrdude -p atmega328p -c arduino -P /dev/ttyACM0 -U flash:w:target/avr-atmega328p/release/rustytoken.elf:e