Skip to content

error boot_fat.py #15707

Aug 24, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This is the contents of the "_boot_fat.py" file:

import vfs
import machine, rp2


# Try to mount the filesystem, and format the flash if it doesn't exist.
bdev = rp2.Flash()
try:
    fs = vfs.VfsFat(bdev)
except:
    vfs.VfsFat.mkfs(bdev)
    fs = vfs.VfsFat(bdev)
vfs.mount(fs, "/")

del vfs, bdev, fs

It seems that you may have a problem with your flash.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Arie1956
Comment options

Answer selected by Arie1956
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants