-->
Page 1 of 1

SPI flash commands

PostPosted: Thu Sep 22, 2016 3:55 pm
by michaeltandy
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:

Code: Select allAPI 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

Re: SPI flash commands

PostPosted: Fri Sep 23, 2016 7:40 am
by martinayotte
Thanks for this well done description !