STM32G0 USB (device) not working with default settings, but works with DFU bootloader
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-06-01 5:40 AM
I have a custom board here using the STM32G0B1CBT6 MCU. After generating a project with CubeMX (6.8.1) the USB device mode isn't recognized by the OS. Neither CDC nor HID. But as soon as I have it jump to the bootloader the DFU USB device shows up just fine (no reboot, just deconfig & jump). The clock is set to use HSI48 so that can't be it?
Labels:
- Labels:
-
Bootloader
-
STM32G0 Series
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-06-01 6:08 AM
Okay, just stubled upon the solution, posting it hoping this will be fixed in CubeMX at some point:
- In 'RCC' set 'CRS SYNC' to 'CRS SYNC Source USB'
- In 'NVIC' enable the global interrupt for USB
Source:
