Skip to main content
Associate
Sep 10, 2026 1:04 AM UTC
Solved

STM32H563ZI can read/write SD Card, but USB MSC is not recognized by PC

I am currently developing a USB Mass Storage application using the STM32H563ZI with the following architecture:

PC ← USB ← NUCLEO-H563ZI ← SD Card

The SD Card and USB Device have both been tested separately, and each works correctly on its own.

However, after integrating the two, I would like to use USB MSC to expose the SD Card connected to the STM32H563ZI as a removable storage device on the PC. The PC is currently unable to recognize the SD Card properly.

I would like to ask if there is any example code or reference project for the STM32H563ZI that demonstrates USB MSC with an SD Card.

Thank.

YU-BenBest answer
Associate
Oct 22, 2026 3:20 AM UTC

@Gyessine 

Thank you for your concern, and I apologize for the delayed response.

The subsequent tests were successful. I believe the issue was caused by the SD module I’m using, which is connected via jumper wires. This may limit the read and write speeds, so the data transfer speed needs to be kept relatively low.

4 replies

Gyessine
ST Technical Moderator
Sep 11, 2026 8:11 AM UTC

Hello ​@YU-Ben 
The STM32H573-DK MSC application can be used as an example on which to base the project.
BR
Gyessine

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
YU-BenAuthor
Associate
Sep 14, 2026 7:31 AM UTC

Hello Gyessine,

Thank you for your reply and for providing the example.

I will test my project based on this example.

I’m wondering if the issue could be related to an access conflict between the MCU and the PC when both are accessing the SD card. This might be why the SD card is not recognized correctly by the PC.

BR,
YU-Ben

Gyessine
ST Technical Moderator
Sep 23, 2026 1:25 PM UTC

Hello ​@YU-Ben 
Any feedback?
BR
Gyessine

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.