1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 16:01:18 +01:00
RIOT/drivers
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
..
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-09-09 19:38:40 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2018-06-11 19:10:40 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-10-23 01:26:09 +02:00
2020-05-22 15:52:03 +05:30