STM32H755 + SDMMC + USB MSC
- July 17, 2026
- 0 replies
- 8 views
Hi everyone,
I have developed a custom pcb board and I want to use the usb and a uSD card. I am not really familiar with pcb designing.
My guidance was some youtube videos in general, like the Phil’s Lab for the USB + SD MSC (The link, so there is some understanding on the code I have added to the usb app).
The USB works. The SD only worked once somehow, while I was stepping the code in the debugging process. I could not do it again. I have tried every possible configuration.
The only thing I get is the following from the terminal:
[28067.786253] usb 3-4: new full-speed USB device number 86 using xhci_hcd
[28067.913272] usb 3-4: New USB device found, idVendor=0483, idProduct=572a, bcdDevice= 2.00
[28067.913281] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[28067.913283] usb 3-4: Product: STM32 Mass Storage
[28067.913286] usb 3-4: Manufacturer: STMicroelectronics
[28067.913288] usb 3-4: SerialNumber: 395834673434
[28067.916167] usb-storage 3-4:1.0: USB Mass Storage device detected
[28067.916903] scsi host1: usb-storage 3-4:1.0
[28068.979800] scsi 1:0:0:0: Direct-Access STM Product 0.01 PQ: 0 ANSI: 2
[28068.980445] sd 1:0:0:0: Attached scsi generic sg1 type 0
[28068.982327] sd 1:0:0:0: [sdb] 30965759 512-byte logical blocks: (15.9 GB/14.8 GiB)
[28068.982530] sd 1:0:0:0: [sdb] Write Protect is off
[28068.982535] sd 1:0:0:0: [sdb] Mode Sense: 03 00 00 00
[28068.982700] sd 1:0:0:0: [sdb] No Caching mode page found
[28068.982703] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[28068.997679] sd 1:0:0:0: [sdb] Attached SCSI removable disk
while the computer Identifies the sd card through the USB, I can not open the SD card to read or write. The clock frequency so the sd card gets identified is from 10MHz to 20MHz in either 1 or 4 bit mode. The sd card was already formatted with the default FAT32. I have validated with my oscilloscope that the ESD protection allows the signals for the protocol.
Can someone please check the design and the configuration file and help me out understand what’s wrong?
I have attached the design and the .ioc file.
Thanks in advance!
