Author Topic: ESP8266 NodeMCU flashing hangs at 10% problem (and fix)  (Read 3013 times)

0 Members and 1 Guest are viewing this topic.

Offline hamster_nzTopic starter

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
ESP8266 NodeMCU flashing hangs at 10% problem (and fix)
« on: July 23, 2016, 08:23:21 am »
This is being posted here many because I know it will get indexed, and others here  might be interested....

I was having problems with the first of 10 ESP8266 modules I've acquired from Deal Extreme - I couldn't flash new firmware (NodeMCU) as it would hang at 10%. Tried a whole lot of 'hints' found on the web (jumper this pin to that, hold mouth like so...) with no success.

Nor could I role back to stock firmware, as one of the four sections would fail to write (under both Linux and Windows). Tried different speeds and so on for a few hours...

Running an strace on the script showed it would just lock up after writing a whole lot of FF values - the ESP module would not reply.

So I then looked closer at the Usb/serial bridge (a cheap FT232RL based module). I wired it for loopback (TX jumpered to RX), and wrote the same data to the port - and the FT232RL locked up. Hummm...

I then got a trusted part (an FPGA dev board with a FTDI part on it) and tried the test program. It didn't lock up. So I pushed the RX and TX pins though the FPGA to a pin header, and tried flashing with the world's most expensive serial adapter... and bugger me, it worked.

I've got 10 fake serial adapters! :(

Just to prove it to myself I replaced the FT232RL with one I had on hand. It now flashes firmware perfectly.... Grrrrr

However, this means I now have a test that can detect these fakes - pretty much just send 10B of FF chars and see it it locks up!
Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 
The following users thanked this post: oPossum, kripton2035

Offline sporadic

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
    • forkineye.com
Re: ESP8266 NodeMCU flashing hangs at 10% problem (and fix)
« Reply #1 on: July 23, 2016, 10:19:26 am »
The ones based off the NodeMCU 1.0 design use the CP2102. I'd probably grab those for your next batch :) I try to stay away from anything FTDI now!

Sent from my XT1094 using Tapatalk

 
The following users thanked this post: ebclr

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: ESP8266 NodeMCU flashing hangs at 10% problem (and fix)
« Reply #2 on: July 24, 2016, 05:21:57 am »
It's very smart to avoid FTDI or you will be a semiconductor detective
 

Offline kripton2035

  • Super Contributor
  • ***
  • Posts: 2597
  • Country: fr
    • kripton2035 schematics repository
Re: ESP8266 NodeMCU flashing hangs at 10% problem (and fix)
« Reply #3 on: July 24, 2016, 05:53:51 am »
a fake FTDI chip coming from deal extreme is not surprising at all...
like ebclr and sporadic, since the FDTI gate, I try to have other chips than FDTI like CP2102 or CHG340 not to search aftter buy if the chip is real or fake !
 

Offline firepower

  • Regular Contributor
  • *
  • Posts: 81
  • Country: vn
Re: ESP8266 NodeMCU flashing hangs at 10% problem (and fix)
« Reply #4 on: July 26, 2016, 11:22:25 pm »
Can you post pic of problem ESP8266 board so we know to avoid purchasing same.
 

Offline hamster_nzTopic starter

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
Re: ESP8266 NodeMCU flashing hangs at 10% problem (and fix)
« Reply #5 on: July 26, 2016, 11:40:57 pm »
It wasn't the ESP module, it was the USB to serial adapter.

http://www.dx.com/p/ftdi-basic-program-downloader-usb-to-ttl-ft232rl-for-arduino-389456

(image attached).

However I am sure that the same design is available with genuine chips on it, so the image doesn't help much.
Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 


Offline Kilrah

  • Supporter
  • ****
  • Posts: 1852
  • Country: ch
Re: ESP8266 NodeMCU flashing hangs at 10% problem (and fix)
« Reply #7 on: July 27, 2016, 10:07:15 am »
However I am sure that the same design is available with genuine chips on it, so the image doesn't help much.

Confirmed, I've got 3 identical-looking ones and they work fine so they must have genuine chips.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf