opendata-stuttgart / airrohr-firmware-flasher

MIT License
90 stars 39 forks source link

chip_id is not supported for esp32 #63

Open dreinhardt opened 1 year ago

dreinhardt commented 1 year ago

I use the Chip Type: ESP32D0WDQ6 The ESP32 board is from Joy-IT https://joy-it.net/en/products/SBC-NodeMCU-ESP32

When trying to flash, I get the error: "chip_id is not supported for esp32"

with other ESP32 boards it works. Somebody can help?

thepapermen commented 1 year ago

@dreinhardt, @ricki-z I have created a fork with (supposedly) feature that you need, BUT it need's testing because I don't have ESP32 boards.

https://github.com/opendata-stuttgart/airrohr-firmware-flasher/compare/master...thepapermen:airrohr-firmware-flasher:esp32support

def get_chip_id(esp):
    """
    A shim to fix firmware flashing for ESP-32
    """
    try:
        return esp.chip_id()
    except NotSupportedError:
        return esp.read_mac()

Here you can download firmware executables for your OS: https://github.com/thepapermen/airrohr-firmware-flasher/actions/runs/6093268890