Skip to content

2.1.1 - Error 2 on flashing the firmware (Wemos D1) #153

Closed
@owah

Description

@owah

Hello,

I have an issue similar to #149, namely that I can't upload firmware to a Wemos D1 mini anymore, after upgrading.

Checking size .pioenvs/d1_mini/firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [==== ] 35.9% (used 29436 bytes from 81920 bytes)
PROGRAM: [==== ] 38.4% (used 401576 bytes from 1044464 bytes)
Creating BIN file ".pioenvs/d1_mini/firmware.bin" using ".pioenvs/d1_mini/firmware.elf"
Configuring upload protocol...
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: /dev/cu.usbserial-1460
Uploading .pioenvs/d1_mini/firmware.bin
esptool.py v2.6
Serial port /dev/cu.usbserial-1460
Connecting....
Chip is ESP8266EX
Features: WiFi
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...

A fatal error occurred: Invalid head of packet (0xE0)
*** [upload] Error 2

If I manually change the upload_speed in platformio.ini to: upload_speed = 115200 then I get a successful upload:

Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 405728 bytes to 294493...
Wrote 405728 bytes (294493 compressed) at 0x00000000 in 28.6 seconds (effective 113.4 kbit/s)...
Hash of data verified.

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

My toolchain is the current toolchain (2.1.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions