Search found 211 matches: littlefs

Searched query: littlefs

by KJM
Sun Jan 16, 2022 12:03 am
Forum: ESP32 boards
Topic: WDT on Lolin D32
Replies: 7
Views: 8107

Re: WDT on Lolin D32

... but I'm worried it will be only a matter of time before the file system falls over again. Is there a way to tell if release='1.17.0' uses FAT or littleFS? Is there a stable upython out there that uses littleFS by default?
by bc-109
Sun Nov 28, 2021 8:01 pm
Forum: Other Boards
Topic: [NUCLEO-L432KC] MPY: can't mount flash
Replies: 2
Views: 11117

Re: [NUCLEO-L432KC] MPY: can't mount flash

... filesystems : https://docs.micropython.org/en/latest/reference/filesystem.html Anyway, it seems the only filesystem available on STM32L432 is LittleFS v1 (probably due to memory constraints on that tiny board). Then, here's how I solved the problem : import os, pyb os.VfsLfs1.mkfs(pyb.Flash(start=0)) ...
by pythoncoder
Sun Oct 31, 2021 6:01 pm
Forum: Drivers for External Components
Topic: PSRAM driver
Replies: 0
Views: 7603

PSRAM driver

... Multiple devices may share an SPI bus to form a single logical RAM. It is possible to use the RAM as a (huge) bytearray or to implement a littlefs or FAT filesystem on it. This may be mounted and used like flash or SD card devices. If used as an array, supports slice operations. The driver ...
by 2e0byo
Sat Oct 09, 2021 6:02 pm
Forum: General Discussion and Questions
Topic: littlefs - advantages & disadvantages
Replies: 33
Views: 29728

Re: littlefs - advantages & disadvantages

This is an old thread and thus things have changed: to check for littlefs on recent micropython builds this works: def check_for_littlefs(): from flashbdev import bdev buf = bytearray(16) bdev.readblocks(0, buf) return buf[8:16] == b"littlefs" check_for_littlefs() ...
by JumpZero
Tue Aug 31, 2021 11:52 am
Forum: Raspberry Pi microcontroller boards
Topic: Can you access the RP2 files system from Windows 10 as a USB Flash Drive?
Replies: 5
Views: 4774

Re: Can you access the RP2 files system from Windows 10 as a USB Flash Drive?

Thank you very much @mattyt for taking the time to provide these details. It is indeed very interesting to understand the pros and cons of LittleFS vs Fat. And also TinyUSB (I didn' know it) is a great project. What would we do without everyone from the Open Source who works for us! And as ...
by mattyt
Tue Aug 31, 2021 7:16 am
Forum: Raspberry Pi microcontroller boards
Topic: Can you access the RP2 files system from Windows 10 as a USB Flash Drive?
Replies: 5
Views: 4774

Re: Can you access the RP2 files system from Windows 10 as a USB Flash Drive?

... USB mass storage for example. MicroPython supports the concept of a virtual filesystem of which there are currently two implementations: FatFS and LittleFS. FatFS is the venerable Microsoft filesystem - it's not particularly robust but it is required for USB mass storage. LittleFS was designed ...
by pythoncoder
Mon Aug 23, 2021 11:14 am
Forum: General Discussion and Questions
Topic: working with file systems
Replies: 10
Views: 4739

Re: working with file systems

... store files on it. The question about minimum sizes only makes sense in the context of specific filesystems. FAT requires 512 byte sectors (IIRC). Littlefs can go down to 128 bytes, but I have only tested 512 bytes. In practice the number of sectors is set by the hardware device. As for your mention ...
by jimmo
Tue Jul 20, 2021 1:09 am
Forum: Raspberry Pi microcontroller boards
Topic: Storing data into RP2040 flash
Replies: 15
Views: 14636

Re: Storing data into RP2040 flash

... (which is 2MiB). - In ports/rp2/rp2_flash.c we define the rp2.Flash object using those two macros. - In ports/rp2/modules/_boot.py we construct a LittleFS filesystem using the entire rp2.Flash object. The flash object (a block device) provides an ioctl that returns the size, and the filesystem ...
by jimmo
Mon Jul 19, 2021 2:08 am
Forum: Raspberry Pi microcontroller boards
Topic: Storing data into RP2040 flash
Replies: 15
Views: 14636

Re: Storing data into RP2040 flash

... so even though these two different approaches feel different, they're really the same thing. ALso worth noting that on RP2040, MicroPython uses LittleFS which does automatic wear-levelling etc. Others have commented about using json, which I think is a good idea, but the other approach I've ...
by davef
Mon Jul 05, 2021 6:56 pm
Forum: ESP32 boards
Topic: How can I tell what caused an ESP32 board to restart?
Replies: 13
Views: 9679

Re: How can I tell what caused an ESP32 board to restart?

... ESP32 access that filesystem to write a small file that can persist between reboots? I'm still learning, so a simple example would be helpful. A littlefs filesystem is automatically mounted when you load in the images on the download page. What I ended up doing, so I wouldn't lose import datalogging ...