]> granicus.if.org Git - esp-idf/commit
spi_flash_erase_range: Allow for 32KB blocks not 64KB blocks
authorAngus Gratton <angus@espressif.com>
Thu, 24 Nov 2016 05:58:36 +0000 (16:58 +1100)
committerAngus Gratton <angus@espressif.com>
Thu, 24 Nov 2016 07:05:06 +0000 (18:05 +1100)
commitbe53a6950c64151d98aae421008df28c15a66753
tree391b376d7e4713230fb3f5ff8ed68cd817cb9754
parent7e433ae3f434ef75663887ba10b4fdcc17609d93
spi_flash_erase_range: Allow for 32KB blocks not 64KB blocks

SPI flash hardware sends 52h command, which is a 32KB erase.

There is a matching bug in the ROM SPIEraseArea code, unless
flashchip->block_size is modified first.
components/esp32/include/rom/spi_flash.h
components/spi_flash/flash_ops.c