Skip to main content
Visitor II
April 29, 2025
Question

STM32F7, Hard fault in USBH_MSC_GetLUNInfo()

  • April 29, 2025
  • 3 replies
  • 448 views

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

    Technical Moderator
    April 30, 2025

    Hi @Hosung 

     

     
    Could you provide a minimal project setup to reproduce the issue on a reference board, such as the F767 Nucleo, for example?
     
    HosungAuthor
    Visitor II
    May 8, 2025

    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?

     

     

     

     

    Technical Moderator
    May 8, 2025

    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.