Skip to content

mpflash fails to get info on boards with a slow boot.py #9

@Josverl

Description

@Josverl

board: esp32 TTGO1.8 with boot.by to mount SD

possible timing issue
start mpremote + Max Boot delay to Repl >>> must be < 2 second

  • def get_mcu_info(self, timeout: int = 2):

repo boot.py

import time

for u in range(10):
    print("Booting up... " + str(u))
    time.sleep_ms(170)
esp32 with slow SDCard mount

mpflash -VV list                                                                                                    
00:48:56 | 🐞 version: 1.0.3
00:48:56 | ✏️ Setting quiet mode to False
00:48:56 | ✏️ Setting interactive mode to True
00:48:56 | ✏️ include=['*'], ignore=[], bluetooth=False
00:48:56 | ✏️ comports: ['COM13', 'COM12', 'COM5']
00:48:56 | ✏️ no Bluetooth: ['COM5']
00:48:56 | 🐞 filtered_comports: ['COM5']
00:48:56 | 🐞 D:\mypython\mpremote_test\.venv\Scripts\python.exe -m mpremote connect COM5 resume run
D:\mypython\mpremote_test\.venv\Lib\site-packages\mpflash\mpremoteboard\mpy_fw_info.py
⠹ Scanning COM5 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0:00:0200:48:59 | 🐞 D:\mypython\mpremote_test\.venv\Scripts\python.exe -m mpremote connect COM5 resume run
D:\mypython\mpremote_test\.venv\Lib\site-packages\mpflash\mpremoteboard\mpy_fw_info.py
⠋ Scanning COM5 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0:00:0500:49:02 | 🐞 D:\mypython\mpremote_test\.venv\Scripts\python.exe -m mpremote connect COM5 resume run
D:\mypython\mpremote_test\.venv\Lib\site-packages\mpflash\mpremoteboard\mpy_fw_info.py
Error: Failed to get mcu_info for COM5

           Connected boards
┏━━━━━━┳━━━━━━━┳━━━━┳━━━━━┳━━━┳━━━━━━━┓
┃Serial┃Family ┃Port┃Board┃CPU┃Version┃
┡━━━━━━╇━━━━━━━╇━━━━╇━━━━━╇━━━╇━━━━━━━┩
│COM5  │unknown│    │     │   │       │
└──────┴───────┴────┴─────┴───┴───────┘
PS D:\mypython\mpremote_test\tests> mpremote connect COM5 resume run D:\mypython\mpremote_test\.venv\Lib\site-packages\mpflash\mpremoteboard\mpy_fw_info.py
{'port': 'esp32', 'build': '', 'arch': 'xtensawin', 'family': 'micropython', 'board': 'Generic ESP32 module with SPIRAM with ESP32', 'cpu': 'ESP32', 'version': '1.22.0', 'mpy': 'v6.2', 'ver': 'v1.22.0'}
PS D:\mypython\mpremote_test\tests> D:\mypython\mpremote_test\.venv\Scripts\python.exe -m mpremote connect COM5 resume run D:\mypython\mpremote_test\.venv\Lib\site-packages\mpflash\mpremoteboard\mpy_fw_info.py
{'port': 'esp32', 'build': '', 'arch': 'xtensawin', 'family': 'micropython', 'board': 'Generic ESP32 module with SPIRAM with ESP32', 'cpu': 'ESP32', 'version': '1.22.0', 'mpy': 'v6.2', 'ver': 'v1.22.0'}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions