From 46f882c01510143ab4d076831fafa8bec772f956 Mon Sep 17 00:00:00 2001 From: Stephan Baerwolf Date: Sat, 25 Aug 2012 14:39:34 +0200 Subject: [PATCH] add some information into spminterface regarding the do_spm Signed-off-by: Stephan Baerwolf --- firmware/spminterface.h | 5 +++++ 1 file changed, 5 insertions(+) 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) * -- 2.11.0