LittleFS on a ESP32-S3 board


#1

Trying to flash µLisp onto a ESP32.S3 board.
USB is working…I have a REPL (yeah!)

But LittleFS isn’t working. (save-image) results in:
E (48931) esp_littlefs: partition “spiffs” could not be found
E (48932) esp_littlefs: Failed to initialize LittleFS
Error: ‘save-image’ problem mounting LittleFS

The board has this specs:
2023-02-25_19-36

Used settings (Arduino IDE):

I also tried the other 16MB partition scheme with the same result.

How can I fix this and use the complete flash which available?


#2

Is there a Partition Scheme option that specifies SPIFFS? Try choosing that one.


#3

There are several such partition schemes…none supports 16MB flash.
Choosing “Flash Size: 8MB” with “8M with SPIFFS (3MB APP / 1.5MB SPIFFS)” results
in the same kind of error:
./components/esp_littlefs/src/littlefs/lfs.c:1229:error: Corrupted dir pair at {0x0, 0x1}
E (53819) esp_littlefs: mount failed, (-84)
E (53820) esp_littlefs: Failed to initialize LittleFS
23

Available are these:
2023-02-25_21-10

Is there a way to partition with 16MB and FATFS and apply a SPIFFS formatting with some kind of tool
afterwards…possibly with a short Arduino sketch of some kind?

This may be of interest also:
https://arduino-esp8266.readthedocs.io/en/latest/filesystem.html#spiffs-deprecation-warning


#4

Sorry, the only ESP32-S3 board I’ve experience with is this one:

ESP32-S3-DevKitM-1


#5

It seems this specific ESP S3 board is the only one, µLisp is compatible too.
The board itself does not utilize the full possibilities of the ESP32 S3 chip.


#6

I think you should be able to get your board working with uLisp. Have you tried the default Partition Scheme setting, Default 4MB with spiffs?


#7

I tried it. Gives me this error
./components/esp_littlefs/src/littlefs/lfs.c:1229:error: Corrupted dir pair at {0x0, 0x1}
E (55582) esp_littlefs: mount failed, (-84)
E (55583) esp_littlefs: Failed to initialize LittleFS
23


#8

Try it a second time (sometimes the first time it has to initialize the file system). See:

ESP32-S2, ESP-S3, and ESP-C3 boards


#9

Ok, this time I could successfull (save-image).
Another strange thing happens right after connecting the board:
picocom -b 92160 /dev/ttyACM0
picocom v3.1

port is        : /dev/ttyACM0
flowcontrol    : none
baudrate is    : 92160
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
hangup is      : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        :
omap is        :
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

Type [C-a] [C-h] to see available commands
Terminal ready
a

  Error: undefined: lisp
21999>
Error: undefined: 4.3a
21999>

Why is the Lisp interpreter identification already interpreted (“undefined” seems to indicate this).
The settings of the terminal program is printed in the beginning.

Would it be hard to include/port uLisp another grafix driver (the TFT of that board uses a ST7789) ?


#10

Why is the Lisp interpreter identification already interpreted (“undefined” seems to indicate this).
The settings of the terminal program is printed in the beginning.

Sorry, I don’t know anything about picocom.

Would it be hard to include/port uLisp another grafix driver (the TFT of that board uses a ST7789) ?

I have been experimenting with a version of ESP uLisp that supports an ST7789 display; I can message it to you if you’d like to try it.


#12

See: The latest version of ESP uLisp now supports TFT displays.