Skip to content

Commit 3c85c5f

Browse files
authored
Merge pull request #353 from fdcavalcanti/bugfix/flash-mode-exception-nuttx
fix: flash mode exception on Nuttx (RDT-1276)
2 parents 057781b + 890ed19 commit 3c85c5f

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)