From a22f4f05d5fa780f149840087731f69d7dad5cc6 Mon Sep 17 00:00:00 2001 From: zerg <51834266+lowerclasswarfare@users.noreply.github.com> Date: Sat, 16 Aug 2025 11:52:56 +0000 Subject: [PATCH 1/2] Update Makefile for old bootloader Update Makefile with option for deploying to a board with the old bootloader. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7dd1853..f3b546a 100644 --- a/Makefile +++ b/Makefile @@ -15,9 +15,12 @@ led.o: led.c avr-gcc $(CFLAGS) -c -o $@ $< deploy: led.hex - avrdude -F -V -c arduino -p ATMEGA328p -P ${ARDUINO_USB} -b 115200 -U flash:w:led.hex + avrdude -F -V -c arduino -p ATMEGA328p -P ${ARDUINO_USB} -b 115200 -U flash:w:led.hex + +deploy_old: led.hex + avrdude -F -V -c arduino -p ATMEGA328p -P ${ARDUINO_USB} -b 57600 -U flash:w:led.hex clean: FRC rm -f led.elf led.hex led.o led -FRC: \ No newline at end of file +FRC: From 168df58356fbf45d0ce43d2a321217212fba8006 Mon Sep 17 00:00:00 2001 From: zerg <51834266+lowerclasswarfare@users.noreply.github.com> Date: Sat, 16 Aug 2025 12:05:17 +0000 Subject: [PATCH 2/2] Update README.md with deploy changes Updated the README to reflect changes to Makefile so you know how to upload to a board with an old bootloader. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 3fa4742..404ea7f 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,13 @@ Then you can upload the program via: ```bash make deploy ``` +If avrdude complains about the programmer not responding, your board might have +the old bootloader. +If this happens to be the case, just run: + +```bash +make deploy_old +``` ## References