Skip to content

Copying FAT FS to a computer #5

@nzagorec

Description

@nzagorec

Hi,

I piped all ESP_LOGx to a file on ffat partition and I'd like to access it on my computer by dumping the whole FS to it and mounting it as an image.

I tried downloading FS onto my computer using esptools' read_flash command. The received file is indeed mountable and I can see the file/folder structure but contents of these files are not correct.

Here's how my partitions.csv file looks like:
ffat, data, fat, 0x2C0000, 1M,

write_flash command:
esptool.py --chip esp32 --port /dev/cu.usbserial-230 --baud 921600 --after no_reset write_flash -z 0x2C1000 filesystem.img

read_flash command:
esptool.py --chip esp32 --port /dev/cu.usbserial-230 --baud 230400 --after no_reset read_flash 0x2C0000 0x100000 filesystem_dump.img

*for some reason when I use faster baud rates than 230400 the read_flash command fails with "A fatal error occurred: Invalid head of packet (0x27): Possible serial noise or corruption."

Do you see something obvously wrong with my procedure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions