Page 1 of 1

Flash write speed

Posted: Mon Apr 09, 2018 7:46 pm
by kostyan5
Hello,

We recently switched the SPI flash chip on our product. We went from Winbond (W25Q32JV) to Macronix (MX25R3235F). For some reason flash write speeds decreased by a factor of 3. This includes both flashing and formatting SPIFFS speeds. With winbond we were able to flash fw or format spiffs in roughly 8 seconds each. After moving to Macronix, flashing and formatting takes roughly 25 seconds each.

No paramers or fw has changed. I see these timing differences when simply swapping the two versions of our device and programming using the same command. Command from programming and specs for both flash chips are below:

Code: Select all

python2 esptool.py --chip esp32 --port /dev/tty.usbserial-DN02PNCC --baud 1500000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader.bin 0x10000 firmware.bin 0x8000 partitions.bin
Winbond: http://www.winbond.com/resource-files/w ... 112017.pdf
Macronix: http://www.macronix.com/Lists/Datasheet ... 20v1.5.pdf

Aside from baud rate, flash freq, and dio/qio setting (which are identical in both cases), what else could effect the write speed of flash?

Thanks,

Konstantin

Re: Flash write speed

Posted: Mon Apr 09, 2018 9:11 pm
by kostyan5
After further digging, it turns out that that particular Macronix part defaults to Ultra Low Power mode which reduces speeds. This almost certainly explains what I'm experiencing.