Page 1 of 1

Custom esp32 board unable to communicate with flash chip

Posted: Wed Aug 23, 2023 7:58 am
by JosephN
So I've just received my custom ESP32 board (using ESP32-D0WD revision v1.0) but I realized that I've connected the SPI_WP and SPI_HD in the reversed order due to me carelessly read the flash's datasheet. Now I cannot upload any firmware to the board and I can only communicate with the chip via esptool serial port.

I've been looking at the esp's technical datasheet and playing around with esp32's registers to try remapping HD and WP (GPIO9 and GPIO10, respectively) using 2 commands :
esptool -p COM9 write_mem 0x3ff44558 0x00000003 (SPI_HD signal)
and
esptool -p COM9 write_mem 0x3ff44554 0x00000004 (SPI_WP signal)

However, the flash is still unable to be communicated with. I'm using https://www.lcsc.com/product-detail/NOR ... 43335.html

Any suggestions for debugging would be much appreciated!