octal flash needs flashed in mode `dout` (#16436)

* octal flash needs flashed in mode `dout`

flash modes `qio, qout, dio` can all be flashed in mode `dio`
This commit is contained in:
Jason2866 2022-09-04 15:20:21 +02:00 committed by GitHub
parent 91ed1ea2c6
commit e6ded2bffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -136,9 +136,11 @@ def esp32_create_combined_bin(source, target, env):
flash_freq = str(flash_freq).replace("L", "")
flash_freq = str(int(int(flash_freq) / 1000000)) + "m"
flash_mode = env.BoardConfig().get("build.flash_mode", "dio")
if flash_mode == "qio":
memory_type = env.BoardConfig().get("build.arduino.memory_type", "qio_qspi")
if flash_mode == "qio" or flash_mode == "qout":
flash_mode = "dio"
elif flash_mode == "qout":
if memory_type == "opi_opi" or memory_type == "opi_qspi":
flash_mode = "dout"
cmd = [
"--chip",