EMMC Getting Started

The official PYBD running MicroPython, and its accessories.
Target audience: Users with a PYBD
Post Reply
User avatar
devnull
Posts: 473
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall
Contact:

EMMC Getting Started

Post by devnull » Mon Apr 01, 2019 1:09 pm

boot.py

Code: Select all

import os, pyb, sys
os.mount(pyb.MMCard(), '/mmc')
sys.path.append('/mmc')
pyb.usb_mode('VCP+MSC', msc=(pyb.MMCard(),))
REPL

Code: Select all

os.chdir('/mmc')
os.listdir()
Mount Filesystem
Hold USB button and press RESET briefly

Rename Volume.

See disk stats (osx):

Code: Select all

cd /Volumes/PYBMMC
df -h /Volumes/PYBMMC
Filesystem     Size   Used  Avail Capacity iused ifree %iused  Mounted on
/dev/disk2s1  3.6Gi  8.0Ki  3.6Gi     1%       0     0  100%   /Volumes/PYBMMC
Rshell

Code: Select all

ls /pyboard
flash/ mmc/ 

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: EMMC Getting Started

Post by pythoncoder » Thu Apr 04, 2019 5:09 am

Useful info.

I assume the same caveat applies as for other MicroPython block devices: if you present them as MMC storage devices, data corruption can occur. I think this is particularly likely if the Pyboard alters the data as the PC's OS assumes a dumb block device.
Peter Hinch
Index to my micropython libraries.

Post Reply