Skip to main content
Associate
December 12, 2025
Question

USB mass storage error on STM32H7 core M4

  • December 12, 2025
  • 2 replies
  • 589 views

Dear all, i have a problem with my custom board based on STM32H745.

I need to use core M4 with USB_HS host with mass storage class (a pen drive) at 12Mbit full speed (internal Phy transceiver).

I have configured the processor as per attached file (core M4, FatFS, USB host, 48MHz RC clock for USB).

The problem is that the FATFS Applistate variable is always in "application start" and never became "application ready". So that USB pen drive can not be mounted.

Previously, I succeded in use the FATFS pack with the same functions configured with core M7, but I want to use core M4 because I need it in my project architecture.

Consider that with the same FATFS pack I'm able to use SD card on the M4 core.

I can't figure why I'm not able to migrate the USB HS host from M7 to M4.

See also attached the function where the USB Host should be recognized and configured to receive data (in my project microSD card store datas and I want to download it to pen drive)

2 replies

ST Technical Moderator
December 15, 2025

hello @stefanoma76 
As a start, can you see what happen if you overwrite the applistate and change it manually to application ready and see if it works
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.
Associate
December 15, 2025

Hello @Gyessine,

We tryied this test but again the program stopped without writing on USB host