re-enumerate USB on STM32F103
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-11-20 3:31 AM
CDC function run normally. But if MCU reboot(For example, USB connect to PC and reboot MCU), USB will not recongnized. It will return to normal if I remove USB then insert it again.
So I want to add re-enumerate function to let device re-enumerate though USB always in PC.
- How to modify the code to realize re-enumerate function?
- I try to set PA12 low to high before USB init. Device cannot run. Maybe blocking
Solved! Go to Solution.
- Labels:
-
STM32F1 Series
-
USB
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-11-20 3:52 AM
If you want a work-around that is not standard compliant, switch PA12 to GPIO/Open Drain, set it low for about 10 ms, and than set up USB. This works for Bl*ckm*gic debug probes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-11-20 3:52 AM
If you want a work-around that is not standard compliant, switch PA12 to GPIO/Open Drain, set it low for about 10 ms, and than set up USB. This works for Bl*ckm*gic debug probes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-11-20 4:28 AM
I tried. But if I add low PA12 to my code(MX_GPIO_Init). Then my FW cannot run. I don't know why
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-12-04 2:49 AM
> Then my FW cannot run.
What does it mean? Debug. Find out, what does it exactly do.
JW
