circuitpython/ports/stm32/boards/NUCLEO_WB55
Jim Mussared 520bb88d70 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>
2020-10-16 10:43:36 +11:00
..
mpconfigboard.h stm32/boards/xxx_WB55: Enable pyb.ADC and hardware SPI on WB55 boards. 2020-06-02 10:48:49 +10:00
mpconfigboard.mk stm32/boards: Add build-time option for NUCLEO_WB55 to use mboot. 2020-06-22 14:18:15 +10:00
pins.csv stm32/boards/NUCLEO_WB55: Add more CPU pins and aliases to SW1/2/3. 2020-06-18 10:48:24 +10:00
rfcore_debug.py stm32/boards/NUCLEO_WB55: Add standalone WB55 FUS/WS firmware updater. 2020-10-08 17:39:15 +11:00
rfcore_firmware.py stm32/boards/NUCLEO_WB55/rfcore_firmware.py: Fix flash unlock. 2020-10-16 10:43:36 +11:00
rfcore_makefirmware.py stm32/boards/NUCLEO_WB55: Add standalone WB55 FUS/WS firmware updater. 2020-10-08 17:39:15 +11:00
stm32wbxx_hal_conf.h stm32/boards/NUCLEO_WB55: Add definition files for new board. 2019-07-17 17:00:34 +10:00