MCPcopy Create free account
hub / github.com/LowPowerLab/SPIFlash / chipErase

Method chipErase

SPIFlash.cpp:263–266  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

261/// note that any command will first wait for chip to become available using busy()
262/// so no need to do that twice
263void SPIFlash::chipErase() {
264 command(SPIFLASH_CHIPERASE, true);
265 unselect();
266}
267
268/// erase a 4Kbyte block
269void SPIFlash::blockErase4K(uint32_t addr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected