You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Tim Hardisty <Ti...@JTi.uk.com.INVALID> on 2021/08/26 18:30:38 UTC
Naffs - format?
Today's dumb question!
Having got a mounted nxffs spi flash "drive", I had a quick try earlier today to store some data.
If I did:
nsh> ls > /mnt/flash/file1.txt
there was a major crash.
If I enabled the startup scan it sat there for 20+ minutes before I gave up and halted it (it was still doing stuff via SPI to the memory, and info debug enabled showed lots going on)...but then the same nsh command worked and the file was created.
This suggests to me the file system may need to be formatted or "created" maybe but...guess what...I can't find anything in any guides to suggest this is needed. SmartFS seems to need it - "nsh> mksmartfs /dev/smart0" for example - but not had time to play more with that yet).
Or is it because the flash device is full of duff stuff from all my messing around and just needs to be erased and I start again (not thought of that until now).
Be gentle... :)
Re: Naffs - format?
Posted by Tim Hardisty <Ti...@JTi.uk.com.INVALID>.
(no insult intended…naffs was a typo!)
From: Tim Hardisty <Ti...@JTi.uk.com.INVALID>
Today's dumb question!
Having got a mounted nxffs spi flash "drive", I had a quick try earlier today to store some data.
If I did:
nsh> ls > /mnt/flash/file1.txt
there was a major crash.
If I enabled the startup scan it sat there for 20+ minutes before I gave up and halted it (it was still doing stuff via SPI to the memory, and info debug enabled showed lots going on)...but then the same nsh command worked and the file was created.
This suggests to me the file system may need to be formatted or "created" maybe but...guess what...I can't find anything in any guides to suggest this is needed. SmartFS seems to need it - "nsh> mksmartfs /dev/smart0" for example - but not had time to play more with that yet).
Or is it because the flash device is full of duff stuff from all my messing around and just needs to be erased and I start again (not thought of that until now).
Be gentle... :)