esp-rs / espflash

Serial flasher utility for Espressif SoCs and modules based on esptool.py
Apache License 2.0
478 stars 117 forks source link

Prepare 3.0.0-rc.1 release #586

Closed SergioGasquez closed 7 months ago

SergioGasquez commented 7 months ago

Tests

I've successfully finished a round of testing, where I tested:

Flash/Monitoring

Used a basic esp-template for all targets and also an esp-idf-tempalte in C3 and S3

Erase/Read flash (On S3)

Save-image/write-bin (ESP32)

Configuration file (C3)

Local config file

[connection]

[[usb_device]] vid = "303a" pid = "1001"

And using `RUST_LOG=debug cargo r`, we can spot the following:

... [2024-02-16T12:28:04Z DEBUG] Config: Config { baudrate: Some( 460800, ), bootloader: Some( "/home/sergio/Documents/Espressif/tests/confgi6/bootloader.bin", ), connection: Connection { serial: None, }, partition_table: Some( "/home/sergio/Documents/Espressif/tests/confgi6/partition-table.bin", ), usb_device: [ UsbDevice { vid: 12346, pid: 4097, }, ], save_path: "/home/sergio/Documents/Espressif/tests/config/espflash.toml", } ... Bootloader: /home/sergio/Documents/Espressif/tests/confgi6/bootloader.bin Partition table: /home/sergio/Documents/Espressif/tests/confgi6/partition-table.bin App/part. siz ... [2024-02-16T12:28:05Z DEBUG] Change baud to: 460800 ...


#### Global config file
- Using the following `$HOME/.config/espflash/espflash.toml`:
```toml
baudrate = 921600
bootloader = "/home/sergio/Documents/Espressif/tests/templates/std/esp32c3/target/riscv32imc-esp-espidf/debug/bootloader.bin"
partition_table = "/home/sergio/Documents/Espressif/tests/templates/std/esp32c3/target/riscv32imc-esp-espidf/debug/partition-table.bin"
[[usb_device]]
vid = "303a"
pid = "1001"

And using RUST_LOG=debug cargo r, we can spot the following:

...
[2024-02-16T12:33:36Z DEBUG] Config: Config {
        baudrate: Some(
            921600,
        ),
        bootloader: Some(
            "/home/sergio/Documents/Espressif/tests/templates/std/esp32c3/target/riscv32imc-esp-espidf/debug/bootloader.bin",
        ),
        connection: Connection {
            serial: None,
        },
        partition_table: Some(
            "/home/sergio/Documents/Espressif/tests/templates/std/esp32c3/target/riscv32imc-esp-espidf/debug/partition-table.bin",
        ),
        usb_device: [
            UsbDevice {
                vid: 12346,
                pid: 4097,
            },
        ],
        save_path: "/home/sergio/.config/espflash/espflash.toml",
    }
...
Bootloader:        /home/sergio/Documents/Espressif/tests/templates/std/esp32c3/target/riscv32imc-esp-espidf/debug/bootloader.bin
Partition table:   /home/sergio/Documents/Espressif/tests/templates/std/esp32c3/target/riscv32imc-esp-espidf/debug/partition-table.bin 
...
[2024-02-16T12:33:36Z DEBUG] Change baud to: 921600
...