I have app code and a bootloader.
I have merged the .hex files and created a combined .hex and then created a .elf which results in all the fuse and lock bits set correctly when programmed.
When I program the ATMEGA64 with the .elf the code does not run correctly.
However, in studio if I pull up the AVR programmer, and go to the fuses window and unselect the BOOTRST, hit program, then select BOOTRST, hit program again, it all starts working. What the heck? Anyone know what is going on here?
THe .elf sets the following fuses:
BODLEVEL: VCC 2.7v
BOOTSZ 512 words
LB None lock
BLB0: No lock
BLB1: SPM prohibited in Boot section