Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpflash: does not identify 'ESP32 module with ESP32' v1.13 #558

Closed
Josverl opened this issue May 5, 2024 · 1 comment
Closed

mpflash: does not identify 'ESP32 module with ESP32' v1.13 #558

Josverl opened this issue May 5, 2024 · 1 comment
Labels
mpflash Flashing tool for Micropython

Comments

@Josverl
Copy link
Owner

Josverl commented May 5, 2024

I have no idea what image is on that board - might be loaded by the vendor. In Thonny it says
MicroPython v1.13 on 2020-09-02; ESP32 module with ESP32

-=-
After flashing :

┏━━━━━━┳━━━━━━━━━━━┳━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━┳━━━━━━━┓
┃Serial┃Family     ┃Port ┃Board                  ┃CPU  ┃Version┃
┡━━━━━━╇━━━━━━━━━━━╇━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━╇━━━━━━━┩
│COM20 │micropython│esp32│UNKNOWN_BOARD          │ESP32│v1.13  │
│      │           │     │ESP32 module with ESP32│     │       │
└──────┴───────────┴─────┴───────────────────────┴─────┴───────┘
[
    {
        "serialport": "COM20",
        "firmware": {},
        "connected": true,
        "path": null,
        "family": "micropython",
        "description": "ESP32 module with ESP32",
        "version": "1.13",
        "port": "esp32",
        "board": "UNKNOWN_BOARD",
        "cpu": "ESP32",
        "arch": "xtensawin",
        "mpy": "v5.2",
        "build": ""
    }
]

Originally posted by @wovo in micropython/micropython#14395 (reply in thread)

@Josverl
Copy link
Owner Author

Josverl commented May 5, 2024

the bug was was caused by a combination of two things :

  • The naming of the ESPxx and rp2 boards changed from v1.20.x - v1.21.0
  • The version was not passed to find_board_id_by_description and defaulted to stable

Due to this the ESPxx and rp2 boards older than 1.20.x could not be identified

Fixed by passing the version and adding tests

> mpflash list

                        Connected boards
┏━━━━━━┳━━━━━━━━━━━┳━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━┳━━━━━━━┓
┃Serial┃Family     ┃Port ┃Board                  ┃CPU  ┃Version┃
┡━━━━━━╇━━━━━━━━━━━╇━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━╇━━━━━━━┩
│COM20 │micropython│esp32│GENERIC                │ESP32│v1.13  │
│      │           │     │ESP32 module with ESP32│     │       │
└──────┴───────────┴─────┴───────────────────────┴─────┴───────┘

> mpflash list --json

[
    {
        "serialport": "COM20",
        "firmware": {},
        "connected": true,
        "path": null,
        "family": "micropython",
        "description": "ESP32 module with ESP32",
        "version": "1.13",
        "port": "esp32",
        "board": "GENERIC",
        "cpu": "ESP32",
        "arch": "xtensawin",
        "mpy": "v5.2",
        "build": ""
    }
]

@Josverl Josverl added the mpflash Flashing tool for Micropython label May 6, 2024
@Josverl Josverl closed this as completed in 04c91ec May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mpflash Flashing tool for Micropython
Projects
None yet
Development

No branches or pull requests

1 participant