1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/weact-f411ce
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 boards/*: add explicit include of timex.h 2020-10-21 21:42:47 +02:00
board.c drivers/mtd_spi_nor: prevent data corruption on 'sector erase' 2020-10-26 13:48:26 +01:00
doc.txt boards/weact-f411ce: enable automatic reset to bootloader 2020-06-11 16:37:30 +02:00
Kconfig boards/weact-f411ce: adapt CPU model 2020-10-09 12:39:22 +02:00
Makefile boards: add WeAct-f411ce board 2020-06-04 12:39:14 +02:00
Makefile.dep boards/weact-f411ce: enable automatic reset to bootloader 2020-06-11 16:37:30 +02:00
Makefile.features boards/weact-f411ce: adapt CPU model 2020-10-09 12:39:22 +02:00
Makefile.include boards/weact-f411ce: enable automatic reset to bootloader 2020-06-11 16:37:30 +02:00