mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
scripts/libraries: Update boot script.
This commit is contained in:
parent
1b980234ae
commit
cefcfcf447
@ -64,6 +64,7 @@ if bdev is None:
|
|||||||
|
|
||||||
bdev = pyb.Flash(start=0)
|
bdev = pyb.Flash(start=0)
|
||||||
sdcard = pyb.SDCard()
|
sdcard = pyb.SDCard()
|
||||||
|
del pyb
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -74,6 +75,7 @@ if bdev is None:
|
|||||||
|
|
||||||
bdev = mimxrt.Flash()
|
bdev = mimxrt.Flash()
|
||||||
sdcard = machine.SDCard(1)
|
sdcard = machine.SDCard(1)
|
||||||
|
del mimxrt, machine
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -82,6 +84,7 @@ if bdev is None:
|
|||||||
import rp2
|
import rp2
|
||||||
|
|
||||||
bdev = rp2.Flash()
|
bdev = rp2.Flash()
|
||||||
|
del rp2
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -127,4 +130,4 @@ try:
|
|||||||
except Exception:
|
except Exception:
|
||||||
create_file(".openmv_disk")
|
create_file(".openmv_disk")
|
||||||
|
|
||||||
del fat, bdev, sdcard
|
del os, sys, vfs, fat, bdev, sdcard
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user