set used flash mode in factory.bin

This commit is contained in:
Jason2866 2022-07-12 13:27:17 +02:00 committed by GitHub
parent 7434459659
commit f9e0431b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -132,12 +132,18 @@ def esp32_create_combined_bin(source, target, env):
else:
esp32_fetch_safeboot_bin(tasmota_platform)
flash_size = env.BoardConfig().get("upload.flash_size", "4MB")
flash_freq = "keep"
flash_mode = env.BoardConfig().get("build.flash_mode", "dout")
cmd = [
"--chip",
chip,
"merge_bin",
"-o",
new_file_name,
"--flash_mode",
flash_mode,
"--flash_freq",
flash_freq,
"--flash_size",
flash_size,
]