From: Keith Packard Date: Sat, 12 Nov 2016 07:38:03 +0000 (-0800) Subject: altos/stmf0: Add a comment about the requirements for using ao_flash_stm X-Git-Tag: 1.7~169 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=affcf6ffc08313151541993ee543bfe390165e81 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 --- 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) {