Skip to main content
Associate II
Apr 29, 2025 3:58 AM UTC
Question

STM32F7, Hard fault in USBH_MSC_GetLUNInfo()

Hi,

I have a STM32F7 and I use USB MSC without RTOS.

When debugging with JTAG after connecting the USB memory, a hard fault occurs as follows.

Hosung_0-1745898495580.png

*Check Appli_state = APPLICATION_START in USBH_UserProcess() before f_mount()

HAL version(MCU package): 1.17.2 

FATFS version: R0.12C

What am I missing or could I do more of?

This topic has been closed for replies.

3 replies

ST Technical Moderator
Apr 30, 2025 9:47 AM UTC

Hi @Hosung 

 

 
Could you provide a minimal project setup to reproduce the issue on a reference board, such as the F767 Nucleo, for example?
 
To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
HosungAuthor
Associate II
May 8, 2025 5:01 AM UTC

Hi !
I'm attaching the pin configuration(.ioc) file.

While debugging, I saw the following:

Hosung_2-1746680284152.png

Is this due to poor STACK / HEAP Memory configuration?

 

 

 

 

ST Technical Moderator
May 8, 2025 2:50 PM UTC

Hi @Hosung 

Do you reproduce using only the USB HS peripheral ? Do you reproduce using a reference board?
Otherwise, if possible to attach USB trace.

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL