-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File size Limitation SDK1.4.0 / 1.5.0 #898
Comments
Thanks @lorenz24 for bringing this this up in the ESP8266 forums. In the meantime I tried to upload also on a recent 1.5.0 build with same result: 26857 appears to be a magical border. The firmware seems to restart during the upload but I wasn't able to nail down the issue any further. |
Have you tried creating a file on the ESP itself just using a |
Yes I tried it just to double confirm. I wrote 200 x 192 byte to file name "testfile".
NodeMCU custom build by frightanic.com I got a reset of the module. testfile : 26857 bytes I tested it on a ESP-03 with a 1Mbyte flash and on a ESP-12e with 4Mbyte flash One more information. If I reopen the file and try to add some more data to the file a get |
@lorenz24, thanks. In this case, this supports it being a firmware issue, rather than an Explorer one. However, I've got other priority issues that I am working on, so perhaps one of the other committers or contributors can look at this one? |
I ran into this issue also. Anyone making progress on this? Thanks. |
I've checked this case with #923 applied and it still crashes with the same symptoms:
Interestingly, I get
According to the mapfile,
and
No clue yet what's going wrong... |
That "9" is the exception cause, which is We should probably try to upgrade to the latest SPIFFS and then retest both this and the multiple-write bug scenario. And if any issues remain, chuck them upstream. |
Ok, we'll see then. I've isolated ESPlorer's routine to a simple testcase and added error handling, just in case. Though there are no errors reported until the exception is thrown. b = " "
for i = 1, 8 do
b = b..b
end
file.remove("test.bin")
for i = 1, 128 do
if file.open("test.bin",'a+') then
if file.write(b) then
file.close()
else
print("write failed in iteration "..i)
break
end
else
print("open failed in iteration "..i)
break
end
tmr.wdclr()
end |
The new version of spiffs fixes this problem. It will be resolved by a PR soon. |
Fixes #1164 and thus also #1150, #1149, #1147 and #898. * Move to latest version of SPIFFS * Add SPIFFS porting layer for NodeMCU * Add option to delete output if it doesn't fit * Change FLASHSIZE to be in bits by default: default 4mb 32mb * Add SPIFFS_MAX_FILESYSTEM_SIZE override * Add notes on SPIFFS_FIXED_LOCATION * Add 1M boundary * Include the current version of the LICENSE
Fixed by #1226. |
File size limitation on LUA based on SDK1.4.0
Any file upload bigger than 26857 bytes will stop with a error message
The remaining bytes on the flash are identical with the uploaded data but incomplete.
->When I test it on SDK0.9.6 there is no problem.
The flash size on the ESP-03 module is 1 Mbyte.
I can download many files to the chip, the limitation is only for the file size.
The original file size is: 33,5 KB (34.368 Bytes) file name "
Upload on SDK1.4.0
Upload on SDK0.9.6
Regards
Lorenz
The text was updated successfully, but these errors were encountered: