circuitpython/ports/stm32/boards
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
..
ADAFRUIT_F405_EXPRESS stm32/boards: Add new board ADAFRUIT_F405_EXPRESS. 2019-10-11 11:50:36 +11:00
B_L072Z_LRWAN1 stm32/boards: Disable pend_throw, uheapq, utimeq on small-flash boards. 2020-03-28 13:55:59 +11:00
B_L475E_IOT01A stm32/boards: Enable MICROPY_HW_RTC_USE_LSE on L4 boards. 2019-10-04 16:10:13 +10:00
CERB40 stm32/boards: Rework all stm32??xx_hal_conf.h files to use common code. 2019-06-25 14:18:24 +10:00
ESPRUINO_PICO stm32: Convert to use FROZEN_MANIFEST to specify frozen code. 2019-10-15 21:36:24 +11:00
HYDRABUS stm32/boards: Rework all stm32??xx_hal_conf.h files to use common code. 2019-06-25 14:18:24 +10:00
LIMIFROG stm32/boards: Enable MICROPY_HW_RTC_USE_LSE on L4 boards. 2019-10-04 16:10:13 +10:00
MIKROE_CLICKER2_STM32 stm32/mboot: Add support for littlefs. 2020-06-26 21:17:02 +10:00
NADHAT_PYBF405 stm32/boards: Add NADHAT_PYB405 board. 2019-10-18 11:41:22 +11:00
NETDUINO_PLUS_2 stm32/boards: Rework all stm32??xx_hal_conf.h files to use common code. 2019-06-25 14:18:24 +10:00
NUCLEO_F091RC extmod: Consolidate FAT FS config to MICROPY_VFS_FAT across all ports. 2019-11-11 11:37:38 +11:00
NUCLEO_F401RE stm32/boards: Rework all stm32??xx_hal_conf.h files to use common code. 2019-06-25 14:18:24 +10:00
NUCLEO_F411RE stm32/boards: Rework all stm32??xx_hal_conf.h files to use common code. 2019-06-25 14:18:24 +10:00
NUCLEO_F412ZG stm32/boards: Add board config for Nucleo-F412ZG development board. 2020-05-15 10:48:48 +10:00
NUCLEO_F413ZH stm32/boards/NUCLEO_F413ZH: Remove STARTUP_FILE, it's defined globally. 2019-07-09 11:32:12 +10:00
NUCLEO_F429ZI stm32/boards: Rework all stm32??xx_hal_conf.h files to use common code. 2019-06-25 14:18:24 +10:00
NUCLEO_F446RE stm32/boards/NUCLEO_F446RE: Enable DAC. 2019-07-08 16:08:40 +10:00
NUCLEO_F722ZE stm32/boards/NUCLEO_F722ZE: Add definition files for new board. 2019-07-25 16:31:36 +10:00
NUCLEO_F746ZG stm32/board/NUCLEO_F746ZG: Enable Ethernet periph, lwip and ussl. 2019-09-11 11:20:58 +10:00
NUCLEO_F767ZI stm32/boards/NUCLEO_F767ZI: Update pins, peripherals and total flash. 2019-12-19 11:43:19 +11:00
NUCLEO_H743ZI stm32/boards/NUCLEO_H743ZI: Add extra pins and peripheral definitions. 2019-12-19 16:54:33 +11:00
NUCLEO_L073RZ stm32/boards: Disable pend_throw, uheapq, utimeq on small-flash boards. 2020-03-28 13:55:59 +11:00
NUCLEO_L432KC stm32/boards: Disable pend_throw, uheapq, utimeq on small-flash boards. 2020-03-28 13:55:59 +11:00
NUCLEO_L452RE stm32/boards/NUCLEO_L452RE: Add definition files for new board. 2019-07-08 16:50:45 +10:00
NUCLEO_L476RG stm32/boards: Enable MICROPY_HW_RTC_USE_LSE on L4 boards. 2019-10-04 16:10:13 +10:00
NUCLEO_WB55 stm32/boards/NUCLEO_WB55/rfcore_firmware.py: Fix flash unlock. 2020-10-16 10:43:36 +11:00
OLIMEX_E407 stm32/boards: Rework all stm32??xx_hal_conf.h files to use common code. 2019-06-25 14:18:24 +10:00
PYBD_SF2 stm32/mboot: Add support for littlefs. 2020-06-26 21:17:02 +10:00
PYBD_SF3 stm32/boards: Enable LFS2 on PYBD_SF3 and PYBD_SF6. 2020-06-25 16:32:48 +10:00
PYBD_SF6 stm32/boards: Enable LFS2 on PYBD_SF3 and PYBD_SF6. 2020-06-25 16:32:48 +10:00
PYBLITEV10 stm32/boards: Rework all stm32??xx_hal_conf.h files to use common code. 2019-06-25 14:18:24 +10:00
PYBV3 stm32/boards: Rework all stm32??xx_hal_conf.h files to use common code. 2019-06-25 14:18:24 +10:00
PYBV4 stm32/boards: Rework all stm32??xx_hal_conf.h files to use common code. 2019-06-25 14:18:24 +10:00
PYBV10 stm32/boards: Enable LFS2 on PYBv1.x and PYBD boards. 2019-11-26 00:08:57 +11:00
PYBV11 stm32/boards: Enable LFS2 on PYBv1.x and PYBD boards. 2019-11-26 00:08:57 +11:00
STM32F4DISC all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
STM32F7DISC stm32/boards: Rework all stm32??xx_hal_conf.h files to use common code. 2019-06-25 14:18:24 +10:00
STM32F411DISC stm32/boards: Rework all stm32??xx_hal_conf.h files to use common code. 2019-06-25 14:18:24 +10:00
STM32F429DISC stm32/sdram: Expose the result of sdram startup test in stm32_main. 2020-02-04 18:18:41 +11:00
STM32F439 stm32/boards: Rework all stm32??xx_hal_conf.h files to use common code. 2019-06-25 14:18:24 +10:00
STM32F769DISC stm32/boards/STM32F769DISC: Use macro instead of const for flash size. 2020-06-12 10:28:26 +10:00
STM32L476DISC stm32/boards: Optimise flash and RAM allocation for L4 boards. 2019-07-01 16:57:20 +10:00
STM32L496GDISC stm32/boards: Enable MICROPY_HW_RTC_USE_LSE on L4 boards. 2019-10-04 16:10:13 +10:00
USBDONGLE_WB55 stm32/boards/USBDONGLE_WB55: Add USE_MBOOT support. 2020-09-08 23:53:12 +10:00
common_basic.ld stm32/boards: Add common_basic.ld for a board to have a single section. 2018-03-27 21:29:45 +11:00
common_bl.ld stm32/boards: Add common_bl.ld for boards that need a bootloader. 2018-03-27 21:30:45 +11:00
common_blifs.ld stm32/boards: Add configuration for putting mboot on PYBv1.x. 2018-12-04 23:48:18 +11:00
common_ifs.ld stm32/boards: Allow boards to have finer control over the linker script. 2018-03-27 21:17:48 +11:00
make-pins.py all: Update Python code to conform to latest black formatting. 2020-08-29 15:18:01 +10:00
manifest.py stm32: Enable and freeze uasyncio. 2020-03-26 01:25:45 +11:00
openocd_stm32f4.cfg stm32/boards: Allow OpenOCD stm_flash procedure to accept single FW img. 2018-12-13 13:43:10 +11:00
openocd_stm32f7.cfg stm32/boards: Allow OpenOCD stm_flash procedure to accept single FW img. 2018-12-13 13:43:10 +11:00
openocd_stm32l4.cfg stm32/boards: Allow OpenOCD stm_flash procedure to accept single FW img. 2018-12-13 13:43:10 +11:00
pllvalues.py all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
stm32f0xx_hal_conf_base.h stm32/boards: Add stm32??xx_hal_conf_base.h files with common settings. 2019-06-25 14:18:24 +10:00
stm32f4xx_hal_conf_base.h stm32/boards: Add stm32??xx_hal_conf_base.h files with common settings. 2019-06-25 14:18:24 +10:00
stm32f4xx_prefix.c stm32/pin: In pin AF object, remove union of periph ptr types. 2018-04-11 16:14:58 +10:00
stm32f7xx_hal_conf_base.h stm32/boards: Add stm32??xx_hal_conf_base.h files with common settings. 2019-06-25 14:18:24 +10:00
stm32f091_af.csv stm32/boards/stm32f091_af.csv: Split labels that are multiple funcs. 2018-06-18 13:05:24 +10:00
stm32f091xc.ld stm32: Enter bootloader via a system reset. 2019-06-25 14:15:49 +10:00
stm32f401_af.csv stm32/boards: Split combined alt-func labels and fix some other errors. 2018-05-29 21:37:49 +10:00
stm32f401xd.ld stm32: Enter bootloader via a system reset. 2019-06-25 14:15:49 +10:00
stm32f401xe.ld stm32: Enter bootloader via a system reset. 2019-06-25 14:15:49 +10:00
stm32f405_af.csv stm32/boards/stm32f405_af.csv: Fix typo in ETH_RMII_REF_CLK on PA1. 2019-11-11 12:02:14 +11:00
stm32f405.ld stm32: Enter bootloader via a system reset. 2019-06-25 14:15:49 +10:00
stm32f411_af.csv stm32/boards: Split combined alt-func labels and fix some other errors. 2018-05-29 21:37:49 +10:00
stm32f411.ld stm32: Enter bootloader via a system reset. 2019-06-25 14:15:49 +10:00
stm32f412_af.csv stm32: Add support for F412 MCUs. 2020-05-15 10:08:30 +10:00
stm32f412zx.ld stm32: Add support for F412 MCUs. 2020-05-15 10:08:30 +10:00
stm32f413_af.csv stm32: Add support for F413 MCUs. 2019-05-02 16:26:53 +10:00
stm32f413xg.ld stm32: Enter bootloader via a system reset. 2019-06-25 14:15:49 +10:00
stm32f413xh.ld stm32: Enter bootloader via a system reset. 2019-06-25 14:15:49 +10:00
stm32f429_af.csv stm32/boards/stm32f429_af.csv: Fix typos in UART defs Tx->TX and Rx->RX. 2019-01-31 01:02:42 +11:00
stm32f429.ld stm32: Enter bootloader via a system reset. 2019-06-25 14:15:49 +10:00
stm32f439_af.csv stm32: Enable UART7/8 on F4 series that have these peripherals. 2018-05-16 11:55:07 +10:00
stm32f439.ld stm32: Enter bootloader via a system reset. 2019-06-25 14:15:49 +10:00
stm32f722_af.csv stm32/boards: Add .ld and af.csv files for STM32F722. 2018-06-22 15:39:10 +10:00
stm32f722.ld stm32/boards/stm32f722.ld: Provide memory regions for internal FS. 2019-07-25 16:31:36 +10:00
stm32f746_af.csv stm32/boards/stm32f746_af.csv: Add ADC alt functions to correct pins. 2020-01-30 16:31:11 +11:00
stm32f746.ld stm32: Enter bootloader via a system reset. 2019-06-25 14:15:49 +10:00
stm32f767_af.csv stm32/boards/stm32f767_af.csv: Add ADC column to pin capability list. 2018-03-07 18:40:06 +11:00
stm32f767.ld stm32/boards/NUCLEO_F767ZI: Update pins, peripherals and total flash. 2019-12-19 11:43:19 +11:00
stm32f769.ld stm32: Enter bootloader via a system reset. 2019-06-25 14:15:49 +10:00
stm32h7xx_hal_conf_base.h stm32/boards/NUCLEO_H743ZI: Enable FDCAN on this board. 2019-09-23 17:00:54 +10:00
stm32h743_af.csv stm32/boards/stm32h743_af.csv: Add ADC entries to pin capability table. 2019-02-06 13:34:53 +11:00
stm32h743.ld stm32: Enter bootloader via a system reset. 2019-06-25 14:15:49 +10:00
stm32l0xx_hal_conf_base.h stm32/boards: Add MCU support files for STM32L072. 2019-07-05 17:26:03 +10:00
stm32l4xx_hal_conf_base.h stm32/adc: Add support to pyb.ADC for STM32WB MCUs. 2020-06-02 10:48:49 +10:00
stm32l072_af.csv stm32/boards: Add MCU support files for STM32L072. 2019-07-05 17:26:03 +10:00
stm32l072xz.ld stm32/boards: Add MCU support files for STM32L072. 2019-07-05 17:26:03 +10:00
stm32l432_af.csv stm32/boards: Add STM32L432KC chip configuration files. 2018-12-06 13:32:43 +11:00
stm32l432.ld stm32/boards: Optimise flash and RAM allocation for L4 boards. 2019-07-01 16:57:20 +10:00
stm32l452_af.csv stm32: Add support for STM32L452 MCUs. 2019-07-08 16:50:19 +10:00
stm32l452xe.ld stm32: Add support for STM32L452 MCUs. 2019-07-08 16:50:19 +10:00
stm32l476_af.csv stm32/boards: Split combined alt-func labels and fix some other errors. 2018-05-29 21:37:49 +10:00
stm32l476xe.ld stm32/boards: Optimise flash and RAM allocation for L4 boards. 2019-07-01 16:57:20 +10:00
stm32l476xg.ld stm32/boards: Optimise flash and RAM allocation for L4 boards. 2019-07-01 16:57:20 +10:00
stm32l496_af.csv stm32/boards: Split combined alt-func labels and fix some other errors. 2018-05-29 21:37:49 +10:00
stm32l496xg.ld stm32/boards: Optimise flash and RAM allocation for L4 boards. 2019-07-01 16:57:20 +10:00
stm32wb55_af.csv stm32/boards/stm32wb55_af.csv: Fix ADC pin-channel function mapping. 2019-09-06 17:56:34 +10:00
stm32wb55xg.ld stm32/rfcore: Update rfcore.c to match how ST examples work. 2020-09-08 23:53:02 +10:00
stm32wbxx_hal_conf_base.h stm32/boards: Add MCU support files for STM32WB55. 2019-07-17 16:50:42 +10:00