Skip to content

Commit 17e29df

Browse files
committed
fix: flash mode exception on Nuttx
Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
1 parent 057781b commit 17e29df

File tree

1 file changed

+6
-0
lines changed
  • pytest-embedded-nuttx/pytest_embedded_nuttx

1 file changed

+6
-0
lines changed

pytest-embedded-nuttx/pytest_embedded_nuttx/serial.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ def get_key_from_value(dictionary, val):
7676
# Flash Mode
7777
self.flash_mode = get_key_from_value(FLASH_MODES, image.flash_mode)
7878

79+
# From esp-idf/components/esptool_py:
80+
# We use esptool.py to flash bootloader in dio mode for QIO/QOUT, bootloader then
81+
# upgrades itself to quad mode during initialization.
82+
if self.flash_mode in ("qio", "qout"):
83+
self.flash_mode = "dio"
84+
7985
@EspSerial.use_esptool()
8086
def flash(self) -> None:
8187
"""Flash the binary files to the board."""

0 commit comments

Comments
 (0)