Unable to flash QOUT mode

For some reason my production boards don’t boot if not flashed in QOUT mode.

I have tried just about everything but no matter what flashing in Platformio uses DIO mode,

This is the platformio file

[env:esp32dev2]

platform = espressif32

board = esp32dev

framework = arduino

monitor_speed = 115200

upload_speed=921600

board_build.flash_mode = qout

board_build.f_flash = 80000000L

build_flags = -DCORE_DEBUG_LEVEL=5

Any ideas?

Yes, there is an override. See

How can i get around this ?

Well comments in Fix flash mode for `opi` by Jason2866 · Pull Request #904 · platformio/platform-espressif32 · GitHub claim the override is correct though…

If you want to test what happens without it, just add a

extra_script = disable_override.py

to your environment with the file’s content being

Import("env")
def get_board_flash_mode(env):
   return env.subst("$BOARD_FLASH_MODE")

env.Replace(
    __get_board_flash_mode=get_board_flash_mode
)

Thanks.

So strange that it can’t boot on the newest versions but on @1.0.6 it works perfectly.

this is the error

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0xff001cff,len:267327
1150 mmu set 00010000, pos 00010000
1150 mmu set 00020000, pos 00020000
1150 mmu set 00030000, pos 00030000
1150 mmu set 00040000, pos 00040000
ho 0 tail 11 room 5