From 66f8de78be3bf025ae000a9dab8ae2c8e5f739b2 Mon Sep 17 00:00:00 2001 From: kirbylife Date: Thu, 30 Mar 2023 15:03:49 -0600 Subject: [PATCH] Upload directly the elf instead the hex --- build.sh | 1 - upload.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 77da1b6..03eca32 100755 --- a/build.sh +++ b/build.sh @@ -1,2 +1 @@ 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 diff --git a/upload.sh b/upload.sh index b9dacf4..65248a1 100755 --- a/upload.sh +++ b/upload.sh @@ -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