1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/nrf52840dk
Benjamin Valentin fde3026312 drivers/mtd_spi_nor: prevent data corruption on 'sector erase'
There is no difference between 4k erase and sector erase.
But sector erase would previously do `.block_erase` which would not
erase a sector (4k) but a whole block (64k).

Fortunately all boards declare `SPI_NOR_F_SECT_4K` and all file systems
don't try to erase anything smaller, so this was never triggered.

Add an `assert(0)` to crash instead of corrupting data.
2020-10-26 13:48:26 +01:00
..
include nrf52840dk: move SPI flash to SPIM2 peripheral 2020-05-28 11:55:08 +02:00
doc.txt boards/nrf52xx: use common flashing documentation 2019-02-26 11:03:06 +01:00
Kconfig cpu/nrf52: provide radio_nrf802154 at CPU level 2020-10-02 10:44:59 +02:00
Makefile boards/nrf52840dk: use common code 2017-11-30 15:50:57 +01:00
Makefile.dep nrf52840dk: Add MTD configuration 2020-05-11 10:26:29 +02:00
Makefile.features cpu/nrf52: provide radio_nrf802154 at CPU level 2020-10-02 10:44:59 +02:00
Makefile.include boards: move CPU/CPU_MODEL definition to Makefile.features 2019-08-20 16:11:50 +02:00
mtd.c drivers/mtd_spi_nor: prevent data corruption on 'sector erase' 2020-10-26 13:48:26 +01:00