From 9e61bd70f3f794fc8849a004ca13208de98d8225 Mon Sep 17 00:00:00 2001 From: Bluebie Date: Fri, 5 Oct 2012 10:12:08 +1000 Subject: Improved upgrade mechanism - now it should actually work! I've successfully upgraded from 1.02 to 1.03 and 1.03 to 1.03. Haven't tested earlier versions of micronucleus or other bootloaders not based on USBaspLoader-tiny85 --- upgrade/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'upgrade/Makefile') diff --git a/upgrade/Makefile b/upgrade/Makefile index e4f6b9d..e1c8254 100644 --- a/upgrade/Makefile +++ b/upgrade/Makefile @@ -18,8 +18,8 @@ DEVICE = attiny85 FUSEOPT = $(FUSEOPT_t85) LOCKOPT = -U lock:w:0x2f:m -# app starts at beginning, as it should! -APP_ADDRESS = 0 +# app starts two pages in, so we can mess around with the first page for leet ISR hax +APP_ADDRESS = 80 PROGRAMMER = -c USBasp # PROGRAMMER contains AVRDUDE options to address your programmer @@ -192,7 +192,9 @@ upgrade.bin: $(OBJECTS) upgrade.hex: upgrade.bin rm -f upgrade.hex upgrade.eep.hex - avr-objcopy -j .text -j .data -O ihex upgrade.bin upgrade.hex + avr-objcopy -j .text -j .data -O ihex upgrade.bin upgrade-app.hex + cat upgrade-prefix.hex upgrade-app.hex > upgrade.hex + rm upgrade-app.hex avr-size upgrade.hex disasm: upgrade.bin -- cgit v1.2.3