I do not know how to compile the firmware, so made a test nodemcu-firmvare 0.9.4 nodemcu_512k_latest.bin.
THE RESULT:
Now there is no spontaneous reboot the module while filling the available flash memory area. Probably, there is no destruction of the firmware. However, problems still exist ...
To write files used the following script:
for j=1,50 do
print("20K"..j)
file.open("20K"..j..".txt", "w")
for i=1,1280 do
file.writeline('0123456789ABCDE')
end
file.close()
end
In a terminal window:
20K1
20K2
20K3
20K4
20K5
20K6
20K7
20K8
20K9
stdin:5: open a file first
Starting with the file "20K5", there is a significant slowdown in the recording process.
List of recorded files:
20K8.txt size: 768
20K6.txt size: 256
20K7.txt size: 1024
20K1.txt size: 20480
20K5.txt size: 19456
20K3.txt size: 20480
20K2.txt size: 20480
20K4.txt size: 20480
In contrast to the previous firmware (0.9.2), these files can be deleted. However, if you try again to write files, we have the following:
20K1
20K2
20K3
20K4
stdin:6: open a file first
20K3.txt size: 11776
20K2.txt size: 20480
20K1.txt size: 20480
Now not possible to delete these files.