Skip to content

Relatively slow flashing of 64MB flash (ESP32-P4 rev 1.3) (ESPTOOL-1339) #1170

Description

@Daniel-Abdi

Operating System

Ubuntu 22.04

Esptool Version

v5.3.0

Python Version

Python 3.10 .12

Chip Description

ESP32-P4 V1.3

Device Description

Hello,

I have a 64MB flash chip (W25Q512NWEIM) attached to a custom ESP32-P4-based board. I'm flashing via USB-JTAG, using esptool v5.3.0 (with the new flasher stub). My ~10MB firmware file takes around 75 seconds to fully flash. Is this a normal and expected flashing time for this size of chip and firmware binary? How can I speed this up, as it's quite slow when flashing at the factory. For reference, the traces from the P4 to the flash chip are approximately 13mm long. Any ideas would be greatly appreciated.

Hardware Configuration

USB JTAG to P4, and QSPI to the flash chip. There are UARTs and I2Cs connected on the board but nothing that would affect the flashing speed in my opinion.

How is Esptool Run

Terminal (Linux)

Full Esptool Command Line that Was Run

esptool --chip esp32p4 -p /dev/ttyACM0 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode qio --flash_freq 80m --flash_size detect 0x2000 bootloader/bootloader.bin 0xa0000 app.bin 0xe000 partition_table/partition-table.bin 0x9e000 ota_data_initial.bin

Esptool Output

More Information

No response

Other Steps to Reproduce

No response

I Have Read the Troubleshooting Guide

  • I confirm I have read the troubleshooting guide.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions