1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 07:21:18 +01:00
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
..
2019-11-23 22:39:07 +01:00
2020-04-17 16:43:16 +05:30
2017-09-01 15:12:20 +02:00
2020-09-29 14:42:15 +02:00
2020-02-27 08:46:40 +01:00
2019-11-23 22:39:07 +01:00
2020-02-12 07:34:22 +01:00
2020-03-12 08:52:10 +01:00
2019-11-23 22:39:07 +01:00
2020-05-04 18:18:00 +05:30
2019-11-22 10:27:01 +01:00
2020-01-09 17:08:05 +01:00
2019-11-23 22:39:07 +01:00
2019-11-23 22:39:40 +01:00
2019-11-23 22:39:07 +01:00
2019-03-14 14:32:28 +01:00
2017-09-01 15:12:20 +02:00
2019-11-23 22:39:40 +01:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2020-04-29 14:32:00 +05:30
2020-04-16 17:17:27 +05:30
2017-09-01 15:12:20 +02:00
2020-04-01 13:37:22 +02:00
2020-10-02 08:04:23 +02:00
2019-11-23 22:39:07 +01:00
2017-09-01 15:12:20 +02:00
2017-06-21 17:05:45 +02:00
2020-05-04 18:20:56 +05:30
2020-04-23 15:49:55 +05:30
2020-06-17 08:41:41 +02:00
2020-10-12 08:46:20 +02:00
2020-04-22 21:57:05 +05:30
2018-08-02 15:52:58 +02:00
2017-09-01 15:12:20 +02:00
2020-08-18 17:25:39 +02:00
2017-08-30 09:06:03 +02:00
2019-11-27 13:35:57 +01:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2020-04-27 13:59:37 +05:30
2020-07-17 15:05:32 +02:00
2019-11-23 22:39:39 +01:00
2020-10-02 08:06:16 +02:00
2020-04-25 22:33:34 +05:30
2017-09-01 15:12:20 +02:00
2020-05-22 15:52:03 +05:30
2020-03-12 08:42:59 +01:00
2019-11-23 22:39:39 +01:00
2019-11-23 22:39:40 +01:00
2017-09-01 15:12:20 +02:00
2018-06-27 08:58:00 +02:00
2019-11-23 22:39:39 +01:00
2019-12-16 15:29:04 +01:00
2019-11-23 22:39:40 +01:00
2020-04-29 09:42:59 +05:30
2020-08-25 16:20:18 +02:00
2018-07-25 12:01:38 +02:00
2020-08-20 13:41:32 +02:00
2018-06-11 19:10:40 +02:00
2020-05-20 19:09:48 +05:30
2019-11-23 22:39:40 +01:00
2020-09-04 15:01:16 +02:00
2020-04-09 13:34:51 +02:00