From affcf6ffc08313151541993ee543bfe390165e81 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 11 Nov 2016 23:38:03 -0800 Subject: [PATCH] altos/stmf0: Add a comment about the requirements for using ao_flash_stm Need HSI clock and the flashing functions loaded in ram. Signed-off-by: Keith Packard --- src/stmf0/ao_flash_stm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/stmf0/ao_flash_stm.c b/src/stmf0/ao_flash_stm.c index ef2e2619..2d57eea7 100644 --- a/src/stmf0/ao_flash_stm.c +++ b/src/stmf0/ao_flash_stm.c @@ -19,6 +19,12 @@ #include #include +/* Note that the HSI clock must be running for this code to work. + * Also, special care must be taken with the linker to ensure that the + * functions marked 'ramtext' land in ram and not rom. An example of that + * can be found in altos-loader.ld + */ + static uint8_t ao_flash_is_locked(void) { -- 2.30.2