aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSelene ToyKeeper2022-04-14 21:01:05 -0600
committerSelene ToyKeeper2022-04-14 21:01:05 -0600
commit7ff4a96b1a25ebf6625f327b9d88e9f120ffde46 (patch)
tree2fc8e8f47f87f8fcc575a383883f8d6acaa05277 /bin
parentmoved fuses from cfg to hwdef, renamed LED_EN/DISABLE_DELAY to LED_ON/OFF_DELAY (diff)
downloadanduril-7ff4a96b1a25ebf6625f327b9d88e9f120ffde46.tar.gz
anduril-7ff4a96b1a25ebf6625f327b9d88e9f120ffde46.tar.bz2
anduril-7ff4a96b1a25ebf6625f327b9d88e9f120ffde46.zip
avrdude fails when .fuse section is included, so omit that when copying elf to hex
Diffstat (limited to '')
-rwxr-xr-xbin/build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build.sh b/bin/build.sh
index 58896a5..4cb03b4 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -32,7 +32,7 @@ export DFPFLAGS="-B $ATTINY_DFP/gcc/dev/$MCU/ -I $ATTINY_DFP/include/"
export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -fgnu89-inline -fwhole-program -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums $DFPFLAGS"
export OFLAGS="-Wall -g -Os -mmcu=$MCU -mrelax $DFPFLAGS"
export LDFLAGS="-fgnu89-inline"
-export OBJCOPYFLAGS='--set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex'
+export OBJCOPYFLAGS='--set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex --remove-section .fuse'
export OBJS=$PROGRAM.o
for arg in "$*" ; do