Interrupt NodeMCU init.lua
It can be sometimes challenging to regain control of the NodeMCU running on a ESP8266 when init.lua has a tight loop in it. To do so, first, download esptool.py from GitHub. Execute the following command
python esptool.py --port /dev/ttyUSB0 --baud <baud-rate> erase_flash
where
python esptool.py --port /dev/ttyUSB0 --baud <baud-rate>
write_flash 0x00000 <nodemcu-path>
where
Copyright 2012–2026, Claude "Tryphon" Théroux