← index #16510Issue #15967
Off-topic · high · value 1.753
QUERY · ISSUE

Cannot convert to littlefs2

openby benj5378opened 2025-01-01updated 2025-03-06
bug

Port, board and/or hardware

ESP32 S3 (Arduino Nano ESP32)

MicroPython version

MicroPython v1.24.1 on 2024-11-29; Arduino Nano ESP32 with ESP32S3

Reproduction

>>> import vfs
>>> vfs.umount('/')
>>> vfs.VfsLfs2.mkfs(bdev)
>>> vfs.mount(bdev, '/')

as according to https://docs.micropython.org/en/latest/reference/filesystem.html#littlefs

Expected behaviour

No errors, filesystem with littlefs2 made succesfully.

Observed behaviour

>>> import vfs
>>> vfs.umount('/')
>>> vfs.VfsLfs2.mkfs(bdev)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 22] EINVAL

:(

Additional Information

Works for fat32:

>>> import vfs
>>> vfs.umount('/')
>>> vfs.VfsFat.mkfs(bdev)
>>> vfs.mount(bdev, '/')

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

Access SDCARD with LVGL MicroPython 1.23.0

closedby spienzopened 2024-10-06updated 2025-03-03
bugproposed-close

Port, board and/or hardware

ESP32 ESP32-S3-WROOM-1-N4R8

MicroPython version

LVGL MicroPython 1.23.0 on 2024-10-06; Generic ESP32S3 module with Octal-SPIRAM with ESP32S3

https://www.elecrow.com/esp32-display-5-inch-hmi-display-rgb-tft-lcd-touch-screen-support-lvgl.html

Reproduction

import machine, os, vfs, network, time, wlan_connect

sd = machine.SDCard(slot=2, width=1, sck=12, miso=13, mosi=11, cs=10, freq=20000000)
vfs.mount(sd, '/sd') # mount

Expected behaviour

Mount sd sdard

Observed behaviour

Traceback (most recent call last):
File "main.py", line 7, in <module>
TypeError: extra keyword arguments given

Additional Information

with old sdcard access version and old micropython version it was working
cs = machine.Pin(10, machine.Pin.OUT)

Intialize SPI peripheral (start with 1 MHz)

spi = machine.SPI(2,
baudrate=100000,
polarity=0,
phase=0,
bits=8,
firstbit=machine.SPI.MSB,
sck=machine.Pin(12),
mosi=machine.Pin(11),
miso=machine.Pin(13))

Initialize SD card

sd = sdcard.SDCard(spi, cs)

Code of Conduct

Yes, I agree

Any idea ?

THX

REAGARDS

Sebastian

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied