1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/serpente
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 Merge pull request #14007 from benpicco/cpu/sam0_common-pwm 2020-07-09 10:01:08 +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/serpente: add serpente board 2020-05-20 10:39:38 +02:00
Kconfig kconfigs: replace BOOTLOADER_% feature with HIGHLEVEL_STDIO 2020-10-13 10:30:22 +02:00
Makefile boards/serpente: add serpente board 2020-05-20 10:39:38 +02:00
Makefile.dep boards/serpente: add serpente board 2020-05-20 10:39:38 +02:00
Makefile.features boards: remove the bootloader_% pseudo-feature 2020-10-13 10:30:22 +02:00
Makefile.include boards/serpente: Deduplicate serial/programmer handling 2020-06-04 21:28:17 +02:00