From: Stephan Baerwolf Date: Sun, 5 May 2013 18:47:19 +0000 (+0200) Subject: fix: "bootloader__do_spm is not located after interrupts" for ATmega2561 and ATmega1281 X-Git-Tag: v0.96.1~4 X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/commitdiff_plain/704e4fba0b174dd648369e9e8632090f95dba88b?ds=sidebyside;hp=704e4fba0b174dd648369e9e8632090f95dba88b fix: "bootloader__do_spm is not located after interrupts" for ATmega2561 and ATmega1281 Since the datasheet is the same as for ATmega1284 and ATmega2560 the depicted table of interrupt seems to be the same, too. But on the second impression there are small "*" at some interrupts not implemented in the affected devices. So adapt the bootloader__do_spm addresses - thank you oh you dear fail safe. Without following code added last time, I never would have found it before some critical fail! #if defined(_VECTORS_SIZE) #if (funcaddr___bootloader__do_spm != (BOOTLOADER_ADDRESS+_VECTORS_SIZE)) #error "bootloader__do_spm is not located after interrupts - sth. is very wrong here!" #endif #endif Signed-off-by: Stephan Baerwolf ---