I'm in a situation where I'm using a custom PCB with an ESP32 PICO D4 on in. The code that have been written for it was made for the ESP32 WROOM module, and after a few paramter changes to fit the PICO D4, I flashed the firmware, and now I cannot connect to the ESP32 correctly anymore. Opening a terminal, I can see the following error
Code: Select all
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
I have tried to make a "hello world" sketch and flashed on another PICO D4 board, and it works without issue, so it is not the strapping pins / flash pins.
Right now I cannot flash new firmware to the "corrupt" ESP32 - Is there a way I can "reset" the bootloader so that I can flash new firmware? I have tried flashing with EN and BOOT pins.
My plan is right now to first try to unbrick my ESP, and then try to fix the firmware from WROOM firmware to PICO D4.
Since it is complaining about the SPI flash, I was looking at the schematic of the PICO D4 and the WROOM - And I can see there is a different pinout of the flash. In the PICO, the flash uses CMD, CLK, SD0, SD1 and GPIO 16 + 17, where the WROOM only uses the SD0-SD3,CLK and CMD pins - Could it be here there is an issue with the firmware?
I'm using MS VS code with platformIO as IDE
Thank you for helping!