USB 'MSC' expose both Flash and SDCard ?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
water
Posts: 75
Joined: Sun Sep 24, 2017 9:16 am

USB 'MSC' expose both Flash and SDCard ?

Post by water » Thu Aug 20, 2020 2:16 am

Refer http://docs.micropython.org/en/latest/library/pyb.html:
If enabling MSC mode, the msc parameter can be used to specify a list of SCSI LUNs to expose on the mass storage interface. For example msc=(pyb.Flash(), pyb.SDCard()).

I config with

Code: Select all

pyb.usb_mode('VCP+MSC', msc = (pyb.Flash(), pyb.SDCard()))
in boot.py, it should be appear internal Flash and SD Card both when plug in the board, but actually internal Flash (pybflash) not appear on PC side file browser, just SD Card show up only.
I check the file system using

Code: Select all

uos.listdir('/')
in REPL, the internal Flash and SD Card mounted correctly each '/flash' and '/sd' .

Someone success do that ?

Post Reply