Izbornik Zatvoriti

Resolving problem flashing ESPHome into Amica NodeMCU with CP2102

I got myself ESP8266 Wireless module NodeMCU development board with CP2102 serial chip . It was advertised as original and with least problems of all NodeMCU versions.

Amico NodeMCU ESP8266 Development Board
Amico NodeMCU ESP8266 Development Board

I had nothing but problems trying to flash it with ESPHome Flashing Wizard (trying Tasmota was no better). Actually, issues were linked to CP2102 serial chip. One PC could not even recognize it when connected to USB. Other two did, but only after manual persuasion. And even than, flashing did not go through.

I finally managed to flash firmware by avoid using CP2102 at all and accessing ESP8266 chip directly. As I had other serial adapter, based on FT232RL FDTI232 USB to serial adapter I use for flashing ESPHome firmware to Sonoff devices, I build new adapter cable to connect it to ESP8266 bypassing serial interface on NodeMCU board. It worked!

Four pins 3V3, GND, TX and RX allow direct access to ESP8266 chip for flashing

On NodeMCU board there are four needed pins, all each next to other, so it was just matter of reassembling four wire cable within DuPont connector. Pins used are 3V3, GND, TX and RX. On other side of cable I had another connector with pins assembled according to FT232 serial board pin header. 3V3 and GND match each other, but it is important that RX on NodeMCU should be connected to TX on serial board and vice-versa.

It is vital to pay attention that while this interconnection among two board is done, NodeMCU board must not be connected to USB. Having USB power may cause damage to boards, and CP2102 chip surely should not be active while doing all this. Needed 3V3 power comes from FD232 board and that is substantial for procedure of programming.

Even whit this bypass I was unable to program ESP8266 using web flashing method. I could not manage to start flashing and restart NodeMCU board in flashing mode. I am not sure if reason is I had no third hand to press Flash button on the board in proper moment or it does not work at all.

However I did manage to start flashing. I had to go to ESPHome, configure device, then go to Install but selecting Manual download. Then I selected legacy format. It compiled firmware and offered to me to download it, which I did.

Then, I started ESPHome flasher . It is simple application. I selected proper COM port assigned to FTDI232 interface, then selected freshly saved firmware bin file and run flush. It worked fine. Device accepted firmware but then it seemed stuck.

ESPHome Flasher

I remembered that I bypassed development board stuff so it needed me to reset board manually and it then went on and connected to ESPHome system. Nice! Once it is connected all further updates would go through OTA, so no worries. USB port may used just for powering board up.

New note in my book: avoid Amico NodeMCU boards with CP2102 serial chip.

Ostavite odgovor

Vaša adresa e-pošte neće biti objavljena. Neophodna polja su označena *

Popunite izraz tako da bude tačan: *

This site uses Akismet to reduce spam. Learn how your comment data is processed.