ESPBMS/bin/flash
2024-04-29 09:09:52 +01:00

18 lines
315 B
Bash
Executable File

#!/bin/sh
BASENAME=${1%.bin};
esptool.py \
-b 921600 \
--chip esp32 \
--before default_reset \
--after hard_reset \
write_flash \
-z \
--flash_mode dio \
--flash_freq 80m \
--flash_size detect \
0x10000 $BASENAME.bin \
0x8000 $BASENAME.partitions.bin \
0xe000 bin/boot_app0.bin \
0x1000 bin/bootloader_qio_80m.bin