diff options
author | Bluebie <a@creativepony.com> | 2012-10-05 10:12:08 +1000 |
---|---|---|
committer | Bluebie <a@creativepony.com> | 2012-10-05 10:12:08 +1000 |
commit | 9e61bd70f3f794fc8849a004ca13208de98d8225 (patch) | |
tree | 47b08d19853ee2038d20e0502fcddb2cb235aa39 /upgrade/Makefile | |
parent | 22d16fbdeddba74eab24c3cec7f085e3af8ad5af (diff) | |
download | micronucleus-9e61bd70f3f794fc8849a004ca13208de98d8225.tar.gz micronucleus-9e61bd70f3f794fc8849a004ca13208de98d8225.tar.bz2 micronucleus-9e61bd70f3f794fc8849a004ca13208de98d8225.zip |
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
Diffstat (limited to 'upgrade/Makefile')
-rw-r--r-- | upgrade/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
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 |