So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Pacofer
#90634 Hi,

Total noob here. I just ordered a couple of wemos D1 mini, for a little project of home automation.
I have also ordered a USB FTDI stick.
I plugge it in the computer and everything is installed fine, now the problems being.

I have tried to flash de D1, using ESP easy, esptool, NodeMCU Pyflasher, and the all fail

The reason for all of them seems to be that they cannot connect/open to the board.
The odd thing is that if I just open putty and type something, I do get response from the D1

For example if I press the reset button on the D1 I get this output in the putty window
>
> 0▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒

NodeMCU custom build by frightanic.com
branch: master
commit: c8037568571edb5c568c2f8231e4f8ce0683b883
SSL: false
modules: cjson,file,gpio,net,node,pwm,tmr,uart,wifi
build built on: 2016-03-14 02:10
powered by Lua 5.1.4 on SDK 1.4.0
lua: cannot open init.lua


But the logs on the ESP Easy show the following

######2021-02-25######
#######0.04.007#######
######FLASH INFO######
BIN file: ESP_Easy_mega_20210223_normal_ESP8285_1M.bin
COM port: (COM3) FTDI USB Serial Port (Port_#0001.Hub_#0003)
Baud rate: 115200
######POST FLASH######
No post flash information entered...
######FLASH LOG######
[esptool.exe -vv -cd nodemcu -cb 115200 -cp COM3 -ca 0x00000 -cf "F:\ESPEasy_ESP82xx_mega-20210223\bin\ESP_Easy_mega_20210223_normal_ESP8285_1M.bin"]
[25/02/2021 22:39:09] esptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
[25/02/2021 22:39:09] setting board to nodemcu
[25/02/2021 22:39:09] setting baudrate from 115200 to 115200
[25/02/2021 22:39:09] setting port from COM1 to COM3
[25/02/2021 22:39:09] setting address from 0x00000000 to 0x00000000
[25/02/2021 22:39:09] espcomm_upload_file
[25/02/2021 22:39:09] espcomm_upload_mem
[25/02/2021 22:39:09] setting serial port timeouts to 1000 ms
[25/02/2021 22:39:09] opening bootloader
[25/02/2021 22:39:09] resetting board
[25/02/2021 22:39:09] trying to connect
[25/02/2021 22:39:09] flush start
[25/02/2021 22:39:09] setting serial port timeouts to 1 ms
[25/02/2021 22:39:09] setting serial port timeouts to 1000 ms
[25/02/2021 22:39:09] flush complete
[25/02/2021 22:39:09] espcomm_send_command: sending command header
[25/02/2021 22:39:09] espcomm_send_command: sending command payload
[25/02/2021 22:39:09] serialport_receive_C0: 00 instead of C0

Any ideas? I have tried changing the USB port in the computer, using a different computer, different USB cable, different cables connecting the FTDI adapter and the board, but the result is always the same

Thanks for you help
User avatar
By QuickFix
#90638 I always thought all Wemos D1 mini's had USB on them, what do you need a FTDI for? :?

If you're using an external USB -> UART convertor, you have to set an ESP in flash mode manually:
  • Press and hold the [FLSH]- (or "Flash") button
  • Press the [RST]- (or "Reset") button
  • Release the [FLSH]-button
  • Let the flasher program do its thing and when it's done:
  • Press the [RST] button to start the ESP in boot mode
Above steps also work when a flasher program (like older py-flashers) doesn't support automatic flashing or when the on-board USB->UART convertor is not functioning (correctly).

Please note that, for an ESP to work correctly, you need a power supply that can deliver ample current (say a minimum of 500-750mA, but preferably more).
User avatar
By Pacofer
#90642 :shock: Exactly for what I said, completely noob :?:

I did follow a tutorial, but they were using the original wemos, which I think did not come with USB port and integrated USB to serial :facepalm:

I just used a direct usb cable and the flash went smoothly.

Thank you very much for saving me from spending several hours trying to find that on my own.