-->
Page 1 of 1

Bricked NodeMCU

PostPosted: Fri Aug 19, 2016 5:41 pm
by Phis
Hi,

Unfortunately I bricked my NodeMCU. I load an init.lua script with an busy waiting script. It sends an http requests and then waits for one second with tmr.delay(...). Now I don't know how I could unbrick it.

I tried to flash the firmware (1.5.4) again but this didn't overwrite the init.lua file. I used esptool and the windows nodemcu-flasher. Both without success. I also tried to load a firmware without the necessary modules so that the init.lua should throw an error. But this also didn't work.

I would very happy if anyone had an idea.

Re: Bricked NodeMCU

PostPosted: Sat Aug 20, 2016 9:43 am
by marcelstoer
Phis wrote:Unfortunately I bricked my NodeMCU


When you say "NodeMCU" you mean the NodeMCU devkit v2/1.0? I just assume so in the commands below...

Since you're on 1.5.4 I suggest to upgrade to 1.5.4.1 since you want to erase the flash anyway.

Code: Select allesptool.py --port <serial-port-of-ESP8266> erase_flash
esptool.py --port <serial-port-of-ESP8266> write_flash -fm dio -fs 32m 0x00000 <nodemcu-firmware>.bin 0x3fc000 esp_init_data_default.bin

Re: Bricked NodeMCU

PostPosted: Sat Aug 20, 2016 12:25 pm
by Phis
I have the NodeMCU V2.

Thanks. I have solved it. I erased the flash with esptool and flashed with it with a new firmware with nodemcu-flasher.