From: Stephan Baerwolf Date: Sat, 25 Aug 2012 12:39:34 +0000 (+0200) Subject: add some information into spminterface regarding the do_spm X-Git-Tag: v0.4~2 X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/commitdiff_plain/46f882c01510143ab4d076831fafa8bec772f956?ds=sidebyside add some information into spminterface regarding the do_spm Signed-off-by: Stephan Baerwolf --- diff --git a/firmware/spminterface.h b/firmware/spminterface.h index 4fd6249..da46501 100644 --- a/firmware/spminterface.h +++ b/firmware/spminterface.h @@ -105,6 +105,11 @@ ret * Call the "bootloader__do_spm"-function, located within the BLS via comfortable C-interface * During operation code will block - disable or reset watchdog before call. * + * ATTANTION: Since the underlying "bootloader__do_spm" will automatically reenable the + * rww-section, only one way to program the flash will work. + * (First erase the page, then fill temp. buffer, finally program...) + * Since unblocking rww-section erases the temp. pagebuffer (which happens + * after a page-erase), first programming this buffer does not help !! * * REMEMBER: interrupts have to be disabled! (otherwise code may crash non-deterministic) *