Using USB Flash with the USB High Speed Interfaces on the STM32H7-EVAL Print

 

This application note assumes that USB Flash is connected to the MicroUSB CN14 USB OTG1 HS connector (near the power jack) using the appropriate cable on the

The following steps are performed for verification USB Flash support:

  1. Boot the STM32H753I-EVAL board up to the Linux shell.
  2. Connect USB Flash device to the cable. Observe it is detected and configured:
  3. [ 1305.099208] usb-storage 1-1:1.0: USB Mass Storage device detected
    [ 1305.106050] scsi host1: usb-storage 1-1:1.0
    [ 1306.183873] scsi 1:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4
    [ 1306.194757] sd 1:0:0:0: [sdb] 15237120 512-byte logical blocks: (7.80 GB/7.27 GiB)
    [ 1306.204417] sd 1:0:0:0: [sdb] Write Protect is off
    [ 1306.207840] sd 1:0:0:0: [sdb] Mode Sense: 23 00 00 00
    [ 1306.214371] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [ 1306.231798] sdb: sdb1
    [ 1306.234687] sd 1:0:0:0: [sdb] Attached SCSI removable disk

  4. Mount the vfat partition on the USB Flash and try to copy a file:
  5. / # mount /dev/sda1 /mnt/usbflash/
    / # ls -la /mnt/usbflash/
    drwxr-xr-x 3 root root 4096 Jan 1 00:00 .
    drwxrwxrwx 8 root root 0 Aug 9 2023 ..
    drwxr-xr-x 2 root root 4096 Apr 22 2019 System Volume Information
    / # cp /bin/busybox /mnt/usbflash/
    / # ls -la /mnt/usbflash/
    drwxr-xr-x 3 root root 4096 Jan 1 00:00 .
    drwxrwxrwx 8 root root 0 Aug 9 2023 ..
    drwxr-xr-x 2 root root 4096 Apr 22 2019 System Volume Information
    -rwxr-xr-x 1 root root 253736 Jan 1 1980 busybox
    / # md5sum /bin/busybox /mnt/usbflash/busybox
    9a3e5d64b9d16c00662f475674c27960 /bin/busybox
    9a3e5d64b9d16c00662f475674c27960 /mnt/usbflash/busybox