I am currently using STM32F4 disc board with micropython. I want to boot from SD card. So what steps I have to follow.
At present the following line of code are present in boot.py file.
Code: Select all
# boot.py -- run on boot-up
# can run arbitrary Python, but best to keep it minimal
import machine
import pyb
#pyb.main('main.py') # main script to run after this one
#pyb.usb_mode('VCP+MSC') # act as a serial and a storage device
#pyb.usb_mode('VCP+HID') # act as a serial device and a mouse
Do i need to uncomment anything ?
Or
I can directly copy boot.py and main.py file in my sd card, and it will automaticly boot from SD Card.