cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F7, Hard fault in USBH_MSC_GetLUNInfo()

Hosung
Associate II

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?

3 REPLIES 3
FBL
ST Employee

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 Accept as Solution on the reply which solved your issue or answered your question.


Hosung
Associate II

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?

 

 

 

 

FBL
ST Employee

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 Accept as Solution on the reply which solved your issue or answered your question.