Error in booting from hybrid filesystem (FAT,Littlefs2)
Posted: Tue Jun 01, 2021 5:56 am
I have been working with micropython for awhile. my project now is to run the main without user can see the source code when mounting the pyb over USB. so I decide to use littlefs2 using this code:
Im using pyb v1.1 with firmware MicroPython v1.14.
Is there any error in my steps or my understanding of littlefs was wrong?
any help?
and I mount the VfsLfs:Code: Select all
import os, pyb os.umount('/flash') p1 = pyb.Flash(start=0, len=32*1024) p2 = pyb.Flash(start=32*1024) os.VfsFat.mkfs(p1) os.VfsLfs2.mkfs(p2) os.mount(p1, '/flash') os.mount(p2, '/data') os.chdir('/flash')
then I transfer to the partition of littlefs the main.py and boot.py files. But did't boot from it!:([/code]
import os, pyb
p2 = pyb.Flash(start=32*1024)
os.mount(p2, '/data')
[/code]
Im using pyb v1.1 with firmware MicroPython v1.14.
Is there any error in my steps or my understanding of littlefs was wrong?
any help?