[NUCLEO_H743ZI2] MSC not working; reboots when used
Posted: Fri Aug 06, 2021 12:03 am
I built the NUCLEO_H743ZI binary from the latest HEAD and loaded it using deploy-stlink (and later using DFU).
In both cases, I can interact with the VCP serial port just fine but the MSC disk doesn't work.
When I connect the board via USB, I get a notification (this is on a Mac but I get the same thing in a Linux VM):
When I use pyboard.py to copy a file to the board I get this (it ends with the board rebooting):
and the board reboots. Diskutil reports:
Interacting with the board, I see this:
The board rebooted after that last statvfs() call.
The same thing (reboot) happens upon a uos.mkdir() call.
Any suggestions as to how to diagnose this?
In both cases, I can interact with the VCP serial port just fine but the MSC disk doesn't work.
When I connect the board via USB, I get a notification (this is on a Mac but I get the same thing in a Linux VM):
Code: Select all
The disk you inserted was not readable by this computer.
Code: Select all
(py39) [ned@ned micropython (master)]$ tools/pyboard.py -d /dev/cu.usbmodem356E336331392 -f cp boot.py :/flash/boot.py
cp boot.py :/flash/boot.py
Traceback (most recent call last):
File "/usr/local/anaconda3/envs/py39/lib/python3.9/site-packages/serial/serialposix.py", line 575, in read
buf = os.read(self.fd, size - len(read))
OSError: [Errno 6] Device not configured
Code: Select all
/dev/disk10 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *262.1 KB disk10
1: DOS_FAT_12 131.1 KB disk10s1
Code: Select all
>>> import uos
>>> import pyb
>>> pyb.usb_mode()
'VCP+MSC'
>>> uos.statvfs('/')
(0, 0, 0, 0, 0, 0, 0, 0, 0, 128)
>>> uos.statvfs('/flash')
MicroPython v1.16-160-ga3675294a on 2021-08-05; NUCLEO_H743ZI with STM32H743
Type "help()" for more information.
The same thing (reboot) happens upon a uos.mkdir() call.
Any suggestions as to how to diagnose this?