Skip to content

Flashing a data partition crashes the flash process #43

Description

@le-krogoth

Hi

I am using espflasher on a Linux system. I am trying to flash a data partition to an ESP32-S3. The binary I want to flash contains a disc image which is mounted as a file system from within my firmware. This image is compiled during the compilation process as documented by Espressif. Everything works as expected when flashed with the Espressif toolchain.

While flashing the firmware, bootloader and partition table works with espflasher, flashing a compressed disc image crashes with the following error (where usbdrive.bin is the disc image and the offset is correct per the already flashed partition table):

> .espflasher -port /dev/ttyACM0 -chip esp32s3 -app-offset 0x5c0000 -app usbdrive.bin
Connecting to /dev/ttyACM0...
Connected.
Detected chip: ESP32-S3
Loading stub loader...
Stub running.
Chip: ESP32-S3
App: usbdrive.bin (655360 bytes) at 0x005C0000
Attaching SPI flash...
Attaching SPI flash...
Configuring flash size...
Auto-detected flash size: 8MB
Switching to 460800 baud...
Running at 460800 baud.
Writing 655360 bytes at 0x005C0000...
Compressed 655360 bytes to 301480 (46%)
Flash begin: 301480 bytes at 0x005C0000 (19 compressed blocks)
<snipped date/time> Flash failed: flash at 0x005C0000: begin compressed flash download: timeout waiting for response to SLIP read

I am aware, that using the option -app for this is somewhat a stretch. But is there a difference when flashing an app partition to when flashing a data partition?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions