BTW @KurtE, mjs513, allcon: koromix posted fixed version of TyCommander to work on new TD1.54 USB Serial type change new release done: [URL="https://github.com/Koromix/tytools[/URL]
Big File write on PSRAM fails - more than doubles room for SLACK space and still failing with : -28, // No space left on device
[CODE]
28 dirs with 0 files of Size 0 Bytes
Total 0 files of Size 0 Bytes
Bytes Used: 18944, Bytes Total:16777216
[ 0.06 M]( 0.03 elap) Awaiting input 0123456789RdchkFqvplmuxBbZ+-? loops left 0 >
[ 0.06 M]( 0.00 elap) Awaiting input 0123456789RdchkFqvplmuxBbZ+-? loops left 0 >
Start Big write of 16655872 Bytes............................................. .....
Big write ERR# -28 0xFFFFFFE4
Big write took 20.33 Sec for 16236000 Bytes : file3.size()=2054847098
Big write KBytes per second 798.59 [/CODE]
For Flash about 40K from reported free space worked, now up to this and still fails : uint32_t xx, toWrite = (myfs.totalSize()) - myfs.usedSize() - 102400; // allow for slack space
>> And it takes a about 10 of the reported 20 seconds to report that after the DOTS stop.
This is with 16MB PSRAM - was getting same failure when it was sized 8MB.
Also ~doubled the 102400 to 202400 and it fails still on 8MB and 16MB of RAM.
QUESTION: Is there some alternate limit or problem with LARGE files on :: LittleFS_RAM myfs;
I cut the write size in half with :
Then both work for 4MB and 8MB on 8MB and 16MB PSRAM:
>> EXCEPT on BOTH look at the SAME bad reported :: [B][COLOR="#FF0000"]file3.size()=2054847098[/COLOR][/B]
Use 1 PSRAMs with 8MB
both PSRAMs with 16MBCode:Start Big write of 4083632 Bytes............ Big write took 1.35 Sec for 4080000 Bytes : file3.size()=2054847098 Big write KBytes per second 3027.19
SKETCH run as is with HALFCUT to see ERROR in file3.size(). RUn again after commenting to see the failed file create:Code:28 dirs with 0 files of Size 0 Bytes Total 0 files of Size 0 Bytes Bytes Used: 18944, Bytes Total:16777216 [ 0.06 M]( 0.03 elap) Awaiting input 0123456789RdchkFqvplmuxBbZ+-? loops left 0 > [ 0.06 M]( 0.00 elap) Awaiting input 0123456789RdchkFqvplmuxBbZ+-? loops left 0 > [ 0.06 M]( 0.00 elap) Awaiting input 0123456789RdchkFqvplmuxBbZ+-? loops left 0 > Start Big write of 8277936 Bytes......................... Big write took 3.45 Sec for 8276000 Bytes : file3.size()=2054847098 Big write KBytes per second 2400.48
See p#422 :: LittleFS-port-to-Teensy-SPIFlash
Output from those two runs as follows:
<< This is turning into an ADVENTURECode:T:\tCode\littleFS\RAM_BadBigFile\RAM_BadBigFile.ino Nov 24 2020 20:11:09 LittleFS Test : File Integrity Start Big write of 8287152 Bytes......................... Big write took 3.38 Sec for 8284000 Bytes : file3.size()=2054847098 Big write KBytes per second 2449.67 T:\tCode\littleFS\RAM_BadBigFile\RAM_BadBigFile.ino Nov 24 2020 20:11:36 LittleFS Test : File Integrity Start Big write of 16574304 Bytes.................................................. Big write ERR# -28 0xFFFFFFE4 Big write took 19.98 Sec for 16256000 Bytes : file3.size()=2054847098 Big write KBytes per second 813.52>>
<EDIT> See post following - in editing code to post ... #404?
For Proof I ran same sketch selected for QSPI - it is MUCH SLOWER - then the pared down sketch has not FORMAT - but gave the result for NOT HALFSIZE - showing ERROR in the file3.size.
So I ran the LFSintegrity sketch to do a quick format and the T_4.1 went OFFLINE ???
Apparently the FULL disk from running it twice without deleting the file left the MEDIA BROKEN on boot?
LFSintegrity had a FORMAT on boot commented out - but before or after BEGIN the T_4.1 BETA unit #38 won't run LittleFS, even with TWO 15s Restores.
SO the above on RAM will help investigate.
If changed to QSPI as written running TWICE has LittleFS bricked the T_4.1 ...
... gotta run ... too much adventure time used ...