Skip to content

Commit 645d5ce

Browse files
committed
Fix upload flash parameters
1 parent a25e4d5 commit 645d5ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: platform.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,15 @@ debug.server.openocd.script=debug.cfg
221221
tools.esptool_py.upload.protocol=serial
222222
tools.esptool_py.upload.params.verbose=
223223
tools.esptool_py.upload.params.quiet=
224-
tools.esptool_py.upload.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset write_flash {upload.erase_cmd} -z --flash_mode {build.flash_mode} --flash_freq {build.img_freq} --flash_size {build.flash_size} {build.bootloader_addr} "{build.path}/{build.project_name}.bootloader.bin" 0x8000 "{build.path}/{build.project_name}.partitions.bin" 0xe000 "{runtime.platform.path}/tools/partitions/boot_app0.bin" 0x10000 "{build.path}/{build.project_name}.bin" {upload.extra_flags}
224+
tools.esptool_py.upload.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset write_flash {upload.erase_cmd} -z --flash_mode keep --flash_freq keep --flash_size keep {build.bootloader_addr} "{build.path}/{build.project_name}.bootloader.bin" 0x8000 "{build.path}/{build.project_name}.partitions.bin" 0xe000 "{runtime.platform.path}/tools/partitions/boot_app0.bin" 0x10000 "{build.path}/{build.project_name}.bin" {upload.extra_flags}
225225
tools.esptool_py.upload.pattern="{path}/{cmd}" {upload.pattern_args}
226226
tools.esptool_py.upload.pattern.linux=python3 "{path}/{cmd}" {upload.pattern_args}
227227

228228
## Program Application
229229
## -------------------
230230
tools.esptool_py.program.params.verbose=
231231
tools.esptool_py.program.params.quiet=
232-
tools.esptool_py.program.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset write_flash -z --flash_mode {build.flash_mode} --flash_freq {build.img_freq} --flash_size {build.flash_size} 0x10000 "{build.path}/{build.project_name}.bin"
232+
tools.esptool_py.program.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset write_flash -z --flash_mode keep --flash_freq keep --flash_size keep 0x10000 "{build.path}/{build.project_name}.bin"
233233
tools.esptool_py.program.pattern="{path}/{cmd}" {program.pattern_args}
234234
tools.esptool_py.program.pattern.linux=python3 "{path}/{cmd}" {program.pattern_args}
235235

0 commit comments

Comments
 (0)