Reformat user filesystem
Reformat user filesystem
I'm having a few problems with the internal user filesystem on my Arduino Nano rp2040 connect - but can't find anywhere how to reformat it ... any advice would be appreciated ;o)
Re: Reformat user filesystem
Using the mkfs() method. Sample scripts from _boot.py:
For LFS:
For FAT:
For LFS:
Code: Select all
import os
import rp2
bdev = rp2.Flash()
os.VfsLfs2.mkfs(bdev, progsize=256)
vfs = os.VfsLfs2(bdev, progsize=256)
os.mount(vfs, "/")
Code: Select all
import os
import rp2
bdev = rp2.Flash()
os.VfsFat.mkfs(bdev)
vfs = os.VfsFat(bdev)
os.mount(vfs, "/")
Re: Reformat user filesystem
Thank you!
That seems to have done the trick.
That seems to have done the trick.