1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/mtd_spi_nor
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
..
Makefile mtd_spi_nor: MTD interface driver for SPI NOR flash memory 2017-03-29 16:52:07 +02:00
Makefile.dep drivers: configure per driver dependency resolution 2020-07-20 14:32:16 +02:00
mtd_spi_nor_configs.c drivers/mtd_spi_nor: prevent data corruption on 'sector erase' 2020-10-26 13:48:26 +01:00
mtd_spi_nor.c drivers/mtd_spi_nor: prevent data corruption on 'sector erase' 2020-10-26 13:48:26 +01:00