erase entire flash memory array may take several seconds depending on size, but is non blocking so you may wait for this to complete using busy() or continue doing other things and later check if the chip is done with busy() note that any command will first wait for chip to become available using busy() so no need to do that twice
| 261 | /// note that any command will first wait for chip to become available using busy() |
| 262 | /// so no need to do that twice |
| 263 | void SPIFlash::chipErase() { |
| 264 | command(SPIFLASH_CHIPERASE, true); |
| 265 | unselect(); |
| 266 | } |
| 267 | |
| 268 | /// erase a 4Kbyte block |
| 269 | void SPIFlash::blockErase4K(uint32_t addr) { |
nothing calls this directly
no outgoing calls
no test coverage detected