Hi rsimpsonbusa,
As far as I know this flash chip model has not been tested with ESP32, so impossible to say for sure. All SPI NOR flash chips are similar but not identical, there is no universal standard for their behaviour. Using DIO or DOUT mode is the most likely to work on a new flash chip model.
rsimpsonbusa wrote: ↑Tue May 26, 2020 3:36 pm
The above chip is a 133mhz and esp32 only allows for 80mhz setup in menuconfig.
That's fine, the speed in this case is a maximum rating.
Note that routing a SPI bus to run at 80MHz (or even 40MHz or sometimes 20MHz) is not a 100% straightforward task for someone who hasn't done high speed digital PCB design before. It's easy to create a PCB layout that works at low speeds, or works most of the time, but occasionally triggers a bit error due to some signal integrity or noise issue. In the case of the ESP32's main flash chip, this will manifest as random crashes.
rsimpsonbusa wrote: ↑Tue May 26, 2020 3:36 pm
The console output is
Code: Select all
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1260
load:0x40078000,len:13372
ho 0 tail 12 room 4
load:0x40080400,len:4240
entry 0x40080644
This boot log indicates that the ESP-IDF bootloader has been loaded from flash offset 0x1000 OK, with (seemingly) no errors. But the ESP-IDF bootloader isn't printing anything after this.
Are you actually using Arduino? If you are then I think the default IDF bootloader log level for Arduino is set very low, so it's possible you're not seeing some error messages that would otherwise be helpful. If you build a default ESP-IDF project then the default bootloader log level is higher, you may see something more informative logged.
rsimpsonbusa wrote: ↑Tue May 26, 2020 3:36 pm
when booting it goes into a reset with the message error code 13 and saying something about spi-flash.
Do you mean the output posted already, or are you seeing some other message?
If you mean "boot:0x13 (SPI_FAST_FLASH_BOOT)" then this indicates the boot mode set for the chip, specifically that it's going to try and boot from the SPI flash chip. It looks like it tries this, then something fails or times out and it software resets and tries again.
You can read more about how to decipher the boot log here:
https://github.com/espressif/esptool/wi ... de-message