CyberCircuits / optiboot

Automatically exported from code.google.com/p/optiboot
0 stars 0 forks source link

VIRTUAL_BOOT doesn't work #120

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It's been a long time since anyone has tried to build/use an optiboot that uses 
the Virtual boot partition feature, so it's not too surprising that it doesn't 
work.

First, the Makefile target "virboot328" sets -DVIRTUAL_BOOT, but the source 
code checks VIRTUAL_BOOT_PARTITION

http://forum.arduino.cc/index.php?topic=304207

Original issue reported on code.google.com by wes...@gmail.com on 6 Mar 2015 at 4:02

GoogleCodeExporter commented 9 years ago
Second, the current code assumes 2-byte vectors containing rjmp instructions, 
while the 328 (and other interesting chips) has 4-byte vectors, probably with 
"jmp"
There should be a way to figure this out via the defined variables.

Original comment by wes...@gmail.com on 6 Mar 2015 at 6:56

GoogleCodeExporter commented 9 years ago
Third, there's a hardwired assumption of the location of the WDT vector

Original comment by wes...@gmail.com on 6 Mar 2015 at 7:47

GoogleCodeExporter commented 9 years ago
4th, there's a hardwired constant for the start of the bootloader.

Original comment by wes...@gmail.com on 6 Mar 2015 at 8:19