You are reading a single comment by @Sdellava and its replies. Click here to read the full conversation.
  • I would omit (delete) --flash_mode "dio" --flash_freq "40m" from flashing command and lower the baud rate to 115200

  • I've followed your suggestion, but I get the same result:

    C:\esptool\espruino_2v05.15_esp32> espruino_2v05.15_esp32>esptool.py --chip esp32 --port COM4 erase_flash
    esptool.py v2.8
    Serial port COM4
    Connecting........__
    Chip is ESP32D0WDQ6 (revision 1)
    Features: WiFi, BT, Dual Core, 160MHz, VRef calibration in efuse, Coding Scheme None
    Crystal is 40MHz
    MAC: 84:0d:8e:11:2f:94
    Uploading stub...
    Running stub...
    Stub running...
    Erasing flash (this may take a while)...
    Chip erase completed successfully in 6.8s
    Hard resetting via RTS pin...

    C:\esptool\espruino_2v05.15_esp32>esptoo­l.py --port COM4 --baud 921600 write_flash -z 0x1000 bootloader.bin 0x10000 espruino_esp32.bin 0x8000 partitions_espruino.bin
    esptool.py v2.8
    Serial port COM4
    Connecting........__
    Detecting chip type... ESP32
    Chip is ESP32D0WDQ6 (revision 1)
    Features: WiFi, BT, Dual Core, 160MHz, VRef calibration in efuse, Coding Scheme None
    Crystal is 40MHz
    MAC: 84:0d:8e:11:2f:94
    Uploading stub...
    Running stub...
    Stub running...
    Changing baud rate to 921600
    Changed.
    Configuring flash size...
    Auto-detected Flash size: 4MB
    Compressed 15392 bytes to 10130...
    Wrote 15392 bytes (10130 compressed) at 0x00001000 in 0.1 seconds (effective 954.7 kbit/s)...
    Hash of data verified.
    Compressed 1377824 bytes to 891085...
    Wrote 1377824 bytes (891085 compressed) at 0x00010000 in 11.8 seconds (effective 938.0 kbit/s)...
    Hash of data verified.
    Compressed 3072 bytes to 166...
    Wrote 3072 bytes (166 compressed) at 0x00008000 in 0.0 seconds (effective 1893.8 kbit/s)...
    Hash of data verified.

    Leaving...
    Hard resetting via RTS pin...

    C:\esptool\espruino_2v05.15_esp32>

    IDE output is identical to the previously uploaded.

    The fact that flashing with the Arduino IDE and then replacing the bin, the Espruino code boot and work for some seconds before to crash, make me think that the bootloader provided in the Espruino kit is bugged.

    I've tried some old version with no luck. Can someone share the working kit version?
    Thanks.

About

Avatar for Sdellava @Sdellava started