Page 1 of 1

USB 'MSC' expose both Flash and SDCard ?

Posted: Thu Aug 20, 2020 2:16 am
by water
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 ?