Copyright ©

Mongoose OS Forum

ATTENTION! This forum has moved to:

Do not post any new messages.

Cannot flash Wemos D1 mini

The following error occurs flashing a wemos d1 mini:

$ mos build --platform esp8266
Connecting to, user test
Uploading sources (2914 bytes)
Firmware saved to /Users/stefan/Documents/GitHub/eureka/app1/app1/build/
Command completed.

$ mos flash
Loaded app1/esp8266 version 1.0 (20190108-151304)
Opening /dev/cu.usbserial-1440 @ 115200...
Connecting to ESP8266 ROM, attempt 1 of 10...
Connected, chip: ESP8266EX
Running flasher @ 0...
Flasher is running
Error: /Users/mos/tmp/mos_gopath/src/ failed to read chip id (0 is not a valid id)
/Users/mos/tmp/mos_gopath/src/ failed to get flash chip id
/Users/mos/tmp/mos_gopath/src/ flash size is not specified and could not be detected
/Users/mos/tmp/mos_gopath/src/ flash failed
exit status 1
Command completed.

The board is running fine under arduino firmware using platformio for flashing.


  • rodrmigurodrmigu Fairfax, Virginia


    I just tested with a couple fo wemos, and no issues. I often have this with esp32, I need to retry several times. Anyway, I would recommend try to lower the upload speed.


  • I bought a batch of WROOM ESP32 devices recently and they all exhibit this problem. My previous batch, bought a few months ago worked without problem.

    My workaround is to run `mos console' in the background, and then it seems to work. No idea why that should work though.


Sign In or Register to comment.