fdcavalcanti commented on issue #18469:
URL: https://github.com/apache/nuttx/issues/18469#issuecomment-3986030472
Hi @engdavidiogo the default file system for this defconfig is
`ESP32S3_SPIFLASH_SPIFFS`.
To use LittleFS you must enable support for it. Did you do it?
`Board Selection → Board common logic → Mount SPI Flash MTD on bring-up`
Here is the output on master, which works fine with the default SPIFFS:
```
nsh> echo "Hi there" > /data/hello.txt
nsh> cat /data/hello.txt
Hi there
nsh>
nsh> mount
/data type spiffs
/proc type procfs
nsh> ls /
/:
data/
dev/
proc/
var/
nsh> ps
TID PID PPID CPU PRI POLICY TYPE NPX STATE EVENT SIGMASK
STACK COMMAND
0 0 0 0 0 FIFO Kthread - Assigned
0000000000000000 0003040 CPU0 IDLE
1 0 0 1 0 FIFO Kthread - Running
0000000000000000 0003032 CPU1 IDLE
2 0 0 --- 100 RR Kthread - Waiting Semaphore
0000000000000000 0001968 lpwork 0x3fca7020 0x3fca706c
3 3 0 0 100 RR Task - Running
0000000000000000 0003000 nsh_main
4 0 0 --- 255 RR Kthread - Waiting Semaphore
0000000000000000 0000688 spiflash_op 0x3fcadb5c
5 0 0 --- 255 RR Kthread - Waiting Semaphore
0000000000000000 0000688 spiflash_op 0x3fcadb5c
6 0 0 --- 223 RR Kthread - Waiting Semaphore
0000000000000000 0001984 rt_timer
7 0 0 --- 253 RR Kthread - Waiting MQ empty
0000000000000000 0006600 wifi
8 0 0 --- 100 RR Kthread - Waiting Semaphore
0000000000000000 0001968 netdev-wlan0 0x3fcb8028 0
nsh>
```
Output using littlefs:
```
nsh> mount
/data type littlefs
/proc type procfs
nsh> echo "Hello littlefs" > /data/hello.txt
nsh> cat /data/hello.txt
Hello littlefs
nsh>
nsh> ps
TID PID PPID CPU PRI POLICY TYPE NPX STATE EVENT SIGMASK
STACK COMMAND
0 0 0 0 0 FIFO Kthread - Assigned
0000000000000000 0003040 CPU0 IDLE
1 0 0 1 0 FIFO Kthread - Running
0000000000000000 0003032 CPU1 IDLE
2 0 0 --- 100 RR Kthread - Waiting Semaphore
0000000000000000 0001968 lpwork 0x3fca7130 0x3fca717c
3 3 0 0 100 RR Task - Running
0000000000000000 0003000 nsh_main
4 0 0 --- 255 RR Kthread - Waiting Semaphore
0000000000000000 0000688 spiflash_op 0x3fcadd9c
5 0 0 --- 255 RR Kthread - Waiting Semaphore
0000000000000000 0000688 spiflash_op 0x3fcadd9c
6 0 0 --- 223 RR Kthread - Waiting Semaphore
0000000000000000 0001984 rt_timer
7 0 0 --- 253 RR Kthread - Waiting MQ empty
0000000000000000 0006600 wifi
8 0 0 --- 100 RR Kthread - Waiting Semaphore
0000000000000000 0001968 netdev-wlan0 0x3fcb7c48 0
nsh>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]