745b4319a2
This is required since the Teensy Halfkay loader attempts to erase all of the flash but fails to do so, at least in my tests. Formatting brings it back to a known state.
12 lines
181 B
Python
12 lines
181 B
Python
# format.py
|
|
# Re-create the file system
|
|
|
|
import os
|
|
import mimxrt
|
|
|
|
bdev = mimxrt.Flash()
|
|
|
|
os.VfsLfs2.mkfs(bdev, progsize=256)
|
|
vfs = os.VfsLfs2(bdev, progsize=256)
|
|
os.mount(vfs, "/")
|