nodemcu / nodemcu-firmware

Lua based interactive firmware for ESP8266, ESP8285 and ESP32

Home Page:https://nodemcu.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lua error: stdin:1: system restarting

vidalouiswang opened this issue · comments

Expected behavior

"lfs.img" loaded successfully.

Actual behavior

error

Test code

Following with the example at https://nodemcu.readthedocs.io/en/release/getting-started/#minimal-lfs-example
Only one line in the "hello_world.lua": print("Hello ESP8266 world!")
"_init.lua" and "dummy_strings.lua" have been included in the "lfs.img".

Here are debug info from serial:

node.LFS.reload("lfs.img");
node.LFS.reload("lfs.img");
Lua error: stdin:1: system restarting
stack traceback:
[C]: in field 'reload'
stdin:1: in main chunk
[C]: in ?
[C]: in ?

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 28596, room 16
tail 4
chksum 0x20
load 0x3ffe8000, len 2608, room 4
tail 12
chksum 0xae
ho 0 tail 12 room 4
load 0x3ffe8a30, len 8, room 12
tail 8
chksum 0xca
csum 0xca
��r���nl�l��l��n�b��b��nr�n��n�b $l � $� �nn��nn������~��� �nn������~��b �nn������������n��r��n|� l�l��b��� b�r��l�nb�n� l���r�l�l�� l���r�l�l�� l���r�l $�� ll�rl$�rl��bb njb�bpr ���br�� l�b��n'�nn�� �l�b�l��� ll ll� �� l$���n��2bb ll $�� b ���2bb l �b�rlr�
Erasing LFS from flash addr 0x0ae000..... to 0x0edfff
LFS image loaded

NodeMCU 3.0.0.0
branch: release
commit: d4ae3c3
release: 3.0.0-release_20210201 +1
release DTS: 202105102018
SSL: false
build type: float
LFS: 0x40000 bytes total capacity
modules: adc,coap,crypto,encoder,file,gpio,http,i2c,mdns,net,node,pwm,rtcfifo,rtcmem,rtctime,sjson,sntp,spi,tmr,uart,websocket,wifi
build 2021-06-01 00:56 powered by Lua 5.3.5 on SDK 3.0.1-dev(fce080e)

NodeMCU startup banner

NodeMCU 3.0.0.0
branch: release
commit: d4ae3c3
release: 3.0.0-release_20210201 +1
release DTS: 202105102018
SSL: false
build type: float
LFS: 0x40000 bytes total capacity
modules: adc,coap,crypto,encoder,file,gpio,http,i2c,mdns,net,node,pwm,rtcfifo,rtcmem,rtctime,sjson,sntp,spi,tmr,uart,websocket,wifi
build 2021-06-01 00:56 powered by Lua 5.3.5 on SDK 3.0.1-dev(fce080e)

Hardware

NodeMCU ESP8266 4MB.

Sorry using wrong compiler.

Although "lfs.img" could be loaded successfully, but there still an error after "node.LFS.reload("lfs.img")".