From: Stephan Baerwolf Date: Sun, 31 Mar 2013 14:26:21 +0000 (+0200) Subject: add additional "funcaddr___bootloader__do_spm"-checking into spminterface X-Git-Tag: v0.96~11 X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/commitdiff_plain/3279ab2c539e72b6487240222600c61f2f800f6c add additional "funcaddr___bootloader__do_spm"-checking into spminterface Signed-off-by: Stephan Baerwolf --- diff --git a/firmware/spminterface.h b/firmware/spminterface.h index 8026aca..66fcd39 100644 --- a/firmware/spminterface.h +++ b/firmware/spminterface.h @@ -133,6 +133,13 @@ ret #else #error "unknown MCU - where is bootloader__do_spm located?" #endif + + #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 + #endif #endif