ESP32 - External flash memory - Quad SPI access question

wwwenrico
Posts: 22
Joined: Thu Apr 26, 2018 9:29 am
Location: Italy

ESP32 - External flash memory - Quad SPI access question

Postby wwwenrico » Thu Apr 26, 2018 9:39 am

Hi folks,

Can we finally access the external SPI flash memory in quad read/write mode?

Thanks,
Enrico Migliore

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 - External flash memory - Quad SPI access question

Postby ESP_Sprite » Fri Apr 27, 2018 2:32 am

Erm - you mean the SPI flash your ESP32 program is running from? That's always been able to run in quad mode.

wwwenrico
Posts: 22
Joined: Thu Apr 26, 2018 9:29 am
Location: Italy

Re: ESP32 - External flash memory - Quad SPI access question

Postby wwwenrico » Thu May 03, 2018 3:31 am

Hi,

>> you mean the SPI flash your ESP32 program is running from?
Yes. I mean that.


We built a custom board with:

1. ESP32 chip
2. ISSI IS25LP128-JBLE 128 Mbit flash memory chip

We flashed a simple "Hello World" C program into the flash.

The program works fine.

At boot, we receive a debug message that says that the ESP32 chip is accessing the flash memory in DIO mode (dual) and not in QIO mode (quad).

Thanks,
Enrico Migliore

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 - External flash memory - Quad SPI access question

Postby ESP_Sprite » Thu May 03, 2018 4:10 am

Okay, I don't really understand your 'finally' then - accessing the program SPI in quad mode has always been possible from what I know. Just make sure to enable it in make menuconfig: Serial flasher config -> Flash SPI mode.

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: ESP32 - External flash memory - Quad SPI access question

Postby ESP_igrr » Thu May 03, 2018 8:25 am

The message printed by ROM bootloader will indicate that DIO mode is used. This is correct — 2nd stage bootloader is being loaded in DIO mode, and then it performs the switch to QIO mode, if you have enabled QIO in menuconfig. Loading 2nd stage bootloader itself in QIO mode offers very little improvement to boot time (as most of the time is used for app image verification), so we don't offer such an option.

wwwenrico
Posts: 22
Joined: Thu Apr 26, 2018 9:29 am
Location: Italy

Re: ESP32 - External flash memory - Quad SPI access question

Postby wwwenrico » Thu May 03, 2018 1:34 pm

Hi,

if we enable the option "QIO" in the make menuconfig the ESP32 chip hangs and doesn't start.

If we enable the option "DIO" in the make menuconfig the ESP32 chip starts and all works just fine.

The VDD_SDIO pin is 3.3 Volts measured by an oscilloscope.
The flash memory is the ISSI IS25LP128-JBLE and the bus runs at 120 MHz maximum. It supports the QIO mode.
In production, we will most likely use the Gigadevice GD25Q32.

Thanks,
Enrico Migliore

Who is online

Users browsing this forum: No registered users and 97 guests