diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2020-10-15 20:09:04 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-10-16 10:43:36 +1100 |
commit | 520bb88d70893287b2c2728259cd020ddc710eaf (patch) | |
tree | df659a3ca4248199d26d34b196746d1a2cf7a2ae /docs/reference | |
parent | b137d064e9e0bfebd2a59a9b312935031252e742 (diff) |
stm32/boards/NUCLEO_WB55/rfcore_firmware.py: Fix flash unlock.
The flash can sometimes be in an already-unlocked state, and attempting to
unlock it again will cause an immediate reset. So make _Flash.unlock()
check FLASH_CR_LOCK to get the current state.
Also fix some magic numbers for FLASH_CR_LOCK AND FLASH_CR_STRT.
The machine.reset() could be removed because it no longer crashes now that
the flash unlock is fixed.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'docs/reference')
0 files changed, 0 insertions, 0 deletions