STM32U5Ax USB issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-06-27 3:24 AM
I have a problem with USB initialization on those specific MCUs. Initialization function generated automatically by CubeMX hangs on USB_CoreReset function. Specifically on USB_OTG_GRSTCTL_CSRST bit which doesn't want to set after the reset. The Cube examples (which are working) use USBPD library only which source is not given so I can't see how initialization is done there.
With older USB32U5 where USB_FS phy is embedded everything works fine. Any ideas what should I change to make it working? My goal is to use it with tinyusb library since I don't want to use Azure RTOS or any RTOS in my project
Solved! Go to Solution.
- Labels:
-
STM32U5 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-06-27 8:57 AM
Ok I solved that. It seems the problem is in SMPS my boards had included. If I switch it off everything works smooth. My guess is that HAL examples need more time to init the azure rtos and this small delay helps to solve this issue. Anyway USB works fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-06-27 8:57 AM
Ok I solved that. It seems the problem is in SMPS my boards had included. If I switch it off everything works smooth. My guess is that HAL examples need more time to init the azure rtos and this small delay helps to solve this issue. Anyway USB works fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-06-27 9:27 AM
Thanks for coming back with the solution. Please click on "Accept as solution" in your post so that the thread is marked as solved.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-12-10 8:32 AM
I have also encountered the same problem, how to solve it!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-12-10 8:33 AM
I have also encountered the same problem, how to solve it!thank you very much for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-01-20 3:04 PM
Where you put the delay?
