SPI flash commands
Posted: Thu Sep 22, 2016 3:55 pm
I was wondering what commands the ESP8266 uses when my code writes to the SPI flash. So I checked with an oscilloscope - it was a bit fiddly, but here are the results:
I figured I'd report them here in case anyone else is looking for an answer to the same question
For some graphs and other details, see this blog post
Code: Select all
API Call SPI Command Note
spi_flash_erase_sector 0x20 Repeated status reads (command 0x05) until erase completes
spi_flash_read 0xBB Dual SPI
spi_flash_write 0x02 Single status read, test completed immediately
I figured I'd report them here in case anyone else is looking for an answer to the same question
For some graphs and other details, see this blog post