Chat freely about anything...

User avatar
By tangzyzy
#55198 Hello guys! I have a question about NodeMCU V2 board. So after I have uploaded all the Lua scripts needed and the chip become a small system, is there a way that I can set the NodeMCU to read-only so nobody can upload or download the scripts from it unless re-flash the firmware? Anybody any idea? Thanks!
User avatar
By tangzyzy
#55236
jankop wrote:Give to first line init.lua this command:
Code: Select allgpio.mode(9, gpio.INPUT, gpio.PULLUP)

Thanks it works! But now weird thing happpens. Even after I re-flashed the nodemcu firmware with ESP8266Flasher, the init file still not being wiped. Now when the chip is reset, it starting doing the init file, now I can do nothing to the chip...help!
User avatar
By jankop
#55250 File system SPIFFS remains. You have to erase flash memory. I do not know the exact location SPIFFS. For esp8266-01 just upload blank512kB.bin from address 0x0000 and reflash firmware.
For the esp8266-12 I created a file blank1024kB.bin. The one I uploaded 4x from address 0x00000, 0x100000, 0x200000 and 0x300000. Then reflash firmware.