Reading SPI Flash memory
Posted: Fri Dec 16, 2016 3:59 am
I verified that I could read a Spansion S25FL127 128 Mbit NOR flash using either SPI port, the VSPI port on pins 18, 19, 23 (ss = 5) and the HSPI port on pins 12, 13, 14 (ss = 15). I am pretty sure any GPIO can be the chip select but I didn't try any others. I didn't see any timing differences between the two ports and the times to read/write a page (~4500 us), erase the chip (~43 sec) were about the same between the two ports. The erase time is also about the same when erasing the same flash with an STM32L4 but the page read/write times are about ten times longer with the ESP32. Not sure why. I put the sketch to test SPI flash in my github repository (https://github.com/kriswiner/ESP32).
Are there more than two SPI ports on the ESP32? Can I use any pins for SPI or only the V and H SPI pins called out in the pinmap here (https://github.com/espressif/arduino-esp32)?
Are there more than two SPI ports on the ESP32? Can I use any pins for SPI or only the V and H SPI pins called out in the pinmap here (https://github.com/espressif/arduino-esp32)?