Skip to main content
Visitor II
August 14, 2025
Question

Stuck at USB Core Soft Reset

  • August 14, 2025
  • 2 replies
  • 465 views

I am trying to get USB High Speed running on my board, In the USB Core Soft Reset function, my code keeps on getting stuck in the do while loop that I have shown below. I have went through all the forum posts related to this and there has been no solution that has resolved this issue. The microcontroller series on this board is STM32U5A5RJT6. I would appreciate any guidance. Thank you!

 

 /* Core Soft Reset */
 USBx->GRSTCTL |= USB_OTG_GRSTCTL_CSRST;

 do
 {
 count++;

 if (count > HAL_USB_TIMEOUT)
 {
 return HAL_TIMEOUT;
 }
 } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_CSRST) == USB_OTG_GRSTCTL_CSRST);

 return HAL_OK;
}

 

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    August 15, 2025
    smartinezAuthor
    Visitor II
    August 15, 2025

    Hello, 

    Thank you for your response. Yes, we have taken a look at that article and have tried all of the solutions mentioned, but we will try again. Is there anything else that could be causing the issue?

     

    Thank you so much!

    Technical Moderator
    August 18, 2025

    Hi @smartinez 

    I suggest you start with this example.

    Technical Moderator
    August 21, 2025

    Hi @smartinez 

    Based on your firmware, it seems you have multiple changes in your hardware setup you need to consider before.