diff options
author | Damien George <damien@micropython.org> | 2022-11-23 21:41:48 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-11-30 17:19:36 +1100 |
commit | 771c16f3d9d10f596b77c85bc12d49b027a37130 (patch) | |
tree | 3c0bce06519d684fd914328b6e9913b8b5cc44e3 /py/modmicropython.c | |
parent | 1b774b373eb7fafebaa43adf9e086a690461201d (diff) |
stm32/mboot: Make all mboot sectors erase/write protected.
Prior to this commit, only sector 0 was erase/write protected, which may
not be enough to protect all of mboot (especially if mboot lives at a
higher address than the start of flash).
This commit makes sure all internal flash sectors that mboot lives in are
protected from erasing and writing. The linker script must define
_mboot_writable_flash_start for this to work.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/modmicropython.c')
0 files changed, 0 insertions, 0 deletions