defragster
Senior Member+
>> Look at post #152 for QSPI first for FILES then this one for DIRS
This reproduced in 3 loops - which is when the first deletes/removes start.
I'll upload a ZIP soon. Cleaned the QSPI FORMAT sketch of startup and other and added as 2nd INO and move the SPI FORMAT func to 3rd INO.
I find that the Beta PJRC T_4.1 with QSPI must be repowered after the Format - a Restart doesn't do it - as the chip ID won't read with the chip left in QSPI mode perhaps?
Looks like I need to error check the DIR creation for QSPI! That is done in setup() and it never created the 4th directory!
Caught this because I just added ERR check on file open:
Err doesn't seem to propagate from mkdir? { not sure if this means failure wasn't detected ? Or unknown error occurred in mkdir? } Enable of their prints failing
Also, On Restart the 3_dir is missing - though it shows as above before restart - this is as reported and easy to repro as the code it written in setup -
>> though as posted below hidden under #ifdef ROOTONLY once the files themselves are reliable.
Didn't post this before ... look as following post first for errors on root file write.
This reproduced in 3 loops - which is when the first deletes/removes start.
I'll upload a ZIP soon. Cleaned the QSPI FORMAT sketch of startup and other and added as 2nd INO and move the SPI FORMAT func to 3rd INO.
I find that the Beta PJRC T_4.1 with QSPI must be repowered after the Format - a Restart doesn't do it - as the chip ID won't read with the chip left in QSPI mode perhaps?
Looks like I need to error check the DIR creation for QSPI! That is done in setup() and it never created the 4th directory!
Caught this because I just added ERR check on file open:
Code:
printDirectory QSPI_DISK --Add---- ++ H
:: /3_dir/I_file.txt waited 102 us
waited 174 us
printDirectory QSPI_DISK --Add---- ++ I
[B][COLOR="#FF0000"]:: /4_dir/J_file.txt Fail File open [/COLOR][/B]
[ 0.26] Awaiting input 0123456789rdchkfvp? loops left 2
printDirectory QSPI_DISK
--------------DIR 0_dir /
DIR 1_dir /
DIR 2_dir /
DIR 3_dir /
[ 0.54] Awaiting input 0123456789rdchkfvp? loops left 2
Err doesn't seem to propagate from mkdir? { not sure if this means failure wasn't detected ? Or unknown error occurred in mkdir? } Enable of their prints failing
Also, On Restart the 3_dir is missing - though it shows as above before restart - this is as reported and easy to repro as the code it written in setup -
>> though as posted below hidden under #ifdef ROOTONLY once the files themselves are reliable.
Didn't post this before ... look as following post first for errors on root file write.
Last edited: