-
Notifications
You must be signed in to change notification settings - Fork 146
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
This is probably the same as #195, but I'm not 100% sure.
Writing large binaries to the flash fails when not using the stub.
Example invocation:
$> dd if=/dev/zero of=/tmp/zero.bin bs=8M count=1
1+0 records in
1+0 records out
8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.00464577 s, 1.8 GB/s
$> ~/.cargo/bin/espflash write-bin --port /dev/ttyUSB3 --baud 921600 --no-stub 0x10000 /tmp/zero.bin
[2023-07-26T15:23:12Z INFO ] Serial port: '/dev/ttyUSB3'
[2023-07-26T15:23:12Z INFO ] Connecting...
Chip type: esp32 (revision v1.0)
Crystal frequency: 40MHz
Flash size: 16MB
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC address: 9c:9c:1f:0b:45:68
Error: × The bootloader returned an error
├─▶ Error while running FlashDeflateBegin command
╰─▶ Other
I'm trying to flash without the stub, since I have flash encryption in development mode enabled (so I need the ROM bootloader to transparently encrypt while I'm flashing).
The ESP32 I'm using has 16MB of flash, but I can also reproduce the problem if I reduce the dd
size to 2M
.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done