[Solved] NodeMCU boot loop after fresh install
[Solved] NodeMCU boot loop after fresh install
Hi All,
I have a new NodeMCU which has a problem after flashing micropython 1.10 onto it.
The repl appears and responds for a short time (<1s) but then is unresponsive, i.e. nothing I type is echoed back to the terminal.
After about 8s then mcu is reset by the hardware wdt and the process begins again.
I've tried erasing the flash, and then verifiying the the flash_write went well.
I've also tried using various USB cables and power supplies but I get the same behaviour.
Thinking it was a bad unit I also tried another one from a previous batch but it behaves the same.
I've also tried using 1.9.4 (which I'm sure I used before on the older board) but still the same.
Any ideas?
I have a new NodeMCU which has a problem after flashing micropython 1.10 onto it.
The repl appears and responds for a short time (<1s) but then is unresponsive, i.e. nothing I type is echoed back to the terminal.
After about 8s then mcu is reset by the hardware wdt and the process begins again.
I've tried erasing the flash, and then verifiying the the flash_write went well.
I've also tried using various USB cables and power supplies but I get the same behaviour.
Thinking it was a bad unit I also tried another one from a previous batch but it behaves the same.
I've also tried using 1.9.4 (which I'm sure I used before on the older board) but still the same.
Any ideas?
Last edited by CraigUK on Sat Feb 16, 2019 8:27 am, edited 1 time in total.
Re: NodeMCU boot loop after fresh install
I hoped it was something simple or a known issue but I suppose not.
- philwilkinson40
- Posts: 63
- Joined: Tue Nov 14, 2017 3:11 am
- Location: Perth, Australia
Re: NodeMCU boot loop after fresh install
try
note the additional -fm dio option on esptool
this is mentioned in the getting started tutorial
I just tried this on my Node MCU and it flashed and started fine.
Code: Select all
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect -fm dio 0 esp8266-20190125-v1.10.bin
this is mentioned in the getting started tutorial
I just tried this on my Node MCU and it flashed and started fine.
Re: NodeMCU boot loop after fresh install
Thanks for the tip Phil.
I flashed with the -fm dio option, also with 115200 baud.
Am I right to assume that since the flash write is verified then the problem is not with the flashing?
I flashed with the -fm dio option, also with 115200 baud.
Am I right to assume that since the flash write is verified then the problem is not with the flashing?
- philwilkinson40
- Posts: 63
- Joined: Tue Nov 14, 2017 3:11 am
- Location: Perth, Australia
Re: NodeMCU boot loop after fresh install
Not sure, it appears it is the boot that will not work if the dual I/O option is not selected during flash.
Did it work in the end?
Did it work in the end?
Re: NodeMCU boot loop after fresh install
Hi Phil,
Here's my esptool command and output:
After that I connect to the COM port with putty and see this output:
Which looks good, but then a short while later there is a reset:
(For brevity I skipped the non-printable characters).
Which version of esptool and bin file are you using?
Here's my esptool command and output:
Code: Select all
C:\Users\craig>esptool.py -p COM3 -b 115200 write_flash -fm dio --verify --flash_size detect 0 "Downloads\esp8266-20190125-v1.10.bin"
esptool.py v2.6
Serial port COM3
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 60:01:94:27:ab:cd
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0240
Compressed 615388 bytes to 399928...
Wrote 615388 bytes (399928 compressed) at 0x00000000 in 37.5 seconds (effective131.2 kbit/s)...
Hash of data verified.
Leaving...
Verifying just-written flash...
(This option is deprecated, flash contents are now always read back after flashing.)
Flash params set to 0x0240
Verifying 0x963dc (615388) bytes @ 0x00000000 in flash against Downloads\esp8266-20190125-v1.10.bin...
-- verify OK (digest matched)
Hard resetting via RTS pin...
Code: Select all
MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>
Code: Select all
ets Jan 8 2013,rst cause:4, boot mode:(3,6)
wdt reset
load 0x40100000, len 31020, room 16
tail 12
chksum 0xd2
ho 0 tail 12 room 4
load 0x3ffe8000, len 1100, room 12
tail 0
chksum 0x9a
load 0x3ffe8450, len 824, room 8
tail 0
chksum 0xbd
csum 0xbd
OSError: [Errno 2] ENOENT
MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>
Which version of esptool and bin file are you using?
Re: NodeMCU boot loop after fresh install
This morning I tried another board from the same batch. It comes with lua installed so before flashing micropython onto it I tested it with lua: same behavior.
The board continuously resets out of the box.
So I've wasted rather a lot of time on a faulty batch of boards.
I really kicked myself when I realised this because I mistakenly tested a board from this batch thinking it was from a good batch and decided my process was at fault and not the batch.
In future I'll stick some labels on them!
Thanks for the suggestions all the same.
The board continuously resets out of the box.
So I've wasted rather a lot of time on a faulty batch of boards.
I really kicked myself when I realised this because I mistakenly tested a board from this batch thinking it was from a good batch and decided my process was at fault and not the batch.
In future I'll stick some labels on them!
Thanks for the suggestions all the same.
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: [Solved] NodeMCU boot loop after fresh install
I did see the same error messages on my boards under certain circumstances but can't remember when. When I do, I'll tell you.
As it is the same with lua it might be a faulty batch or some electrical problem.
As it is the same with lua it might be a faulty batch or some electrical problem.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Re: [Solved] NodeMCU boot loop after fresh install
Thanks, that would be useful information