Skip to content

[Bug] Cannot flash EV3 on Windows #2391

@drewnkrause

Description

@drewnkrause

Describe the bug
I can't seem to flash my EV3 on Windows. I've tried on both my desktop and my laptop and both give this output:

2025-10-11 17:26:23,892: DEBUG: asyncio: Using proactor: IocpProactor
Creating firmware...
Traceback (most recent call last):
  File "C:\Users\idkrk\scoop\apps\python310\current\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\idkrk\scoop\apps\python310\current\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "c:\users\idkrk\.local\bin\pybricksdev.exe\__main__.py", line 6, in <module>
  File "C:\Users\idkrk\pipx\venvs\pybricksdev\lib\site-packages\pybricksdev\cli\__init__.py", line 559, in main
    asyncio.run(subparsers.choices[args.tool].tool.run(args))
  File "C:\Users\idkrk\scoop\apps\python310\current\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\idkrk\scoop\apps\python310\current\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "C:\Users\idkrk\pipx\venvs\pybricksdev\lib\site-packages\pybricksdev\cli\flash.py", line 444, in flash_firmware
    await flash_ev3(firmware)
  File "C:\Users\idkrk\pipx\venvs\pybricksdev\lib\site-packages\pybricksdev\cli\flash.py", line 381, in flash_ev3
    fw, hw = await bootloader.get_version()
  File "C:\Users\idkrk\pipx\venvs\pybricksdev\lib\site-packages\pybricksdev\connections\ev3.py", line 267, in get_version
    return await asyncio.get_running_loop().run_in_executor(
  File "C:\Users\idkrk\scoop\apps\python310\current\lib\concurrent\futures\thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "C:\Users\idkrk\pipx\venvs\pybricksdev\lib\site-packages\pybricksdev\connections\ev3.py", line 257, in get_version_sync
    payload = self._receive_reply(Command.GET_VERSION, num, force_length=13)
  File "C:\Users\idkrk\pipx\venvs\pybricksdev\lib\site-packages\pybricksdev\connections\ev3.py", line 128, in _receive_reply
    raise RuntimeError(
RuntimeError: message sequence number mismatch: {reply_number} != {message_number}

After fixing the seemingly missing f in the RuntimeError message, I get RuntimeError: message sequence number mismatch: 256 != 0

I tried booting into a live Linux environment and that seemed to work to flash it. However, I couldn't run anything after booting back into Windows, but that may be a separate issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: EV3Issues related to LEGO MINDSTORMS EV3software: pybricksdevIssues related to the pybrickdev Python packagetopic: flashing firmwareIssues related to fhe firmware flashing process

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions