Bootloader and Application use both USB as serial port: how to deinit?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-10-16 5:17 AM
Posted on October 16, 2015 at 14:17
Hello,
I have a bootloader communicating over USB and the application which is loaded and started uses the same USB port. When I use the bootloader and start the application the USB port isn't working inside the application. When I use the application without the bootloader flashed with SWD the USB is working. I have no special de-init function for the USB port. How do I have to de-init it, before starting the application that it can use the same port? Regards, Chris #stm32 #bootloader #usb #cdc
Labels:
- Labels:
-
Bootloader
-
USB
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-10-21 8:43 AM
Posted on October 21, 2015 at 17:43
Hi Chris_31543,
You did not mention which package you are using. However, you can refer to USB examples provided within ST firmware packages.-Shahrzad-Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-10-22 2:47 AM
Posted on October 22, 2015 at 11:47
Hello,
I use the CubeMX with its middleware drivers, there are some deinit functions but they doesn't change the fact that I have to replug the USB cable after jumping from bootloader to the main application or vice versa Regards, ChrisOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-10-22 7:39 AM
Posted on October 22, 2015 at 16:39
Hi Chris_31543,
Maybe section 3 of may guide you to the real causes of the problem.-Shahrzad-