Change usb configuration on the fly in STM32F103
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-11-09 03:14 PM
Posted on November 10, 2011 at 00:14
I am working updating and existing project that has 2 modes of running the usb in our product. One is a serial port mode that is working as expected, and an emulated msd cdrom that is also working as expect.
What I am trying to add is a way to dynamically switch between these two configurations on the device. I have attempted to perform a reset similar to those in the example projects for usb serial and msd, but the host computer does not see a device change. Is it possible to change the configuration on the fly without electrically disconnecting from the host and reenumerating? #stm32f103-usb
Labels:
- Labels:
-
STM32F1 Series
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-11-10 04:32 AM
Posted on November 10, 2011 at 13:32
Transistor that enables, disables the usb speed selection pull-up?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-11-10 09:25 AM
Posted on November 10, 2011 at 18:25
Domen,
That would the the preferred way for sure, but unfortunately this is an existing product that has D+ hard pulled up to our primary vreg... so if the powers on, then the usb is pulled up. I was wondering if there is a way to reconfigure it without reenumerating? Les