-->
Page 1 of 2

ESP-201 not working after init.lua update

PostPosted: Tue Mar 24, 2015 6:49 pm
by Tomasz
Hello,

something went wrong during init.lua update on my module. Now the module is always rebooting:

Code: Select allNodeMCU 0.9.5 build 20150213  powered by Lua 5.1.4
??bL?19? 1?@HJ???
??

NodeMCU 0.9.5 build 20150213  powered by Lua 5.1.4
?U)????? 1?D?
??

NodeMCU 0.9.5 build 20150213  powered by Lua 5.1.4

I'm using nodemcu-flasher and have already reflash the firmware, but I still get the above problem. In which area the init.lua is saved. How to remove the init.lua or whatever makes the problem?

Thanks in advance!

Re: ESP-201 not working after init.lua update

PostPosted: Wed Mar 25, 2015 12:33 pm
by rkgarg20
I guess you need to reflash. Never wrote the code in init.lua. instead just write the wifi related info in init.lua and call another lua file from init.lua.

Re: ESP-201 not working after init.lua update

PostPosted: Wed Mar 25, 2015 5:29 pm
by Tomasz
ok, I could manage it now. module is back again. looks like "tmr.time()" made the problem in my init.lua

Re: ESP-201 not working after init.lua update

PostPosted: Wed Mar 25, 2015 5:53 pm
by timbos
I've had something similar happen on one of my modules recently. I used file.format() to clear out the filesystem (one of my scripts was corrupted somehow) rather than going to the trouble of refreshing the firmware.