micropython/ports
Damien George b6ab9e420b stm32/flash: Change flash_erase to only erase a single sector at a time.
An erase sector sits in a given flash bank and some MCUs have two flash
banks.  If trying to erase a range of sectors and that range crosses from
one flash bank into the next, the original implementation of
`flash_erase()` would not handle this case and would do the wrong thing.

This commit changes `flash_erase()` to only erase a single sector, which
sidesteps the need to handle flash-bank-crossing.  Most callers of this
function only need to erase a single sector anyway.

Signed-off-by: Damien George <damien@micropython.org>
2024-01-08 12:33:34 +11:00
..
bare-arm
cc3200
embed embed: Fix alloca include for FreeBSD and NetBSD. 2024-01-05 01:03:25 -06:00
esp32 extmod/nimble: Do not set GAP device name after sync. 2023-12-22 16:07:02 +11:00
esp8266
mimxrt ports: Move MICROPY_PY_LWIP_ENTER/REENTER/EXIT defns to mphalport.h. 2024-01-05 15:40:06 +11:00
minimal
nrf
pic16bit
powerpc
qemu-arm
renesas-ra ports: Move MICROPY_PY_LWIP_ENTER/REENTER/EXIT defns to mphalport.h. 2024-01-05 15:40:06 +11:00
rp2 rp2: Provide direct memory access to PIO and SPI FIFOs via proxy arrays. 2024-01-07 18:27:01 +11:00
samd samd/mcu: Fix wrong EIC table entries in pin-af-table.csv. 2024-01-02 18:48:17 +11:00
stm32 stm32/flash: Change flash_erase to only erase a single sector at a time. 2024-01-08 12:33:34 +11:00
unix ports: Move MICROPY_INTERNAL_WFE definition to mphalport.h. 2024-01-05 15:49:42 +11:00
webassembly
windows windows/windows_mphal: Fix mp_hal_delay_ms() so it runs events. 2024-01-05 15:56:34 +11:00
zephyr