USB CDC Port Not Shown In Device Manager(MCU STM32F!103RET6)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-06 11:00 PM - edited ‎2023-11-07 12:18 AM
Hello Everyone,
Right now i am facing the issue on detection USB.I am attaching snap shots of the my USB configuration.
USB port not shown after powering up the board. i am doing some basic thing like on receiving via USB in RX interrupt function of USB i set one flag that will used in main function for further process.
Help Me if anyone knows the issue, i stuck here since 2 days.
STMCubeIDE Version:- 1.13.2
MCU:- STM32F103RET6
Debugger:- Jlink(4000Khz)
USB DP:- PA12
USB DM :-PA11
Internal Power Supply used which is given to MCU and other board peripheral.
Solved! Go to Solution.
- Labels:
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-09 12:39 AM
As you told me before to increase the size so is that same?(increasing RX and TX buffer size)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-09 12:42 AM
as per schematic no pull up on DP pin, It is mandatory to detect USB?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-09 12:58 AM - edited ‎2023-11-09 1:00 AM
yes.
ie. R6 1k5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-09 3:33 AM
Yes, with F103 the pull-up resistor is mandatory.
If there is a software problem with the USB stack, you should increase the STACK and HEAP size, not the buffer size. As I already wrote, only 64 bytes of RX buffer are used, regardless of its size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-09 3:49 AM
Thanks, gbm i increased stack and heap size to 600 but after powering up mcu if i connect usb then it shows that stm32 bootloader mode, then after i pull down the boot pin and checks again but this time shows usb not recognized.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-09 3:51 AM
Thanks,AScha.3 i will try this and let you know the result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-09 3:54 AM
if MCU would be L073RB8 then pull up required or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-09 3:58 AM
If there is a need to increase stack and heap size, make them at least 1024 bytes or more. Pullup resistor is required only with F1 series. The built-in USB bootloader is not present in F103, so some of the information you provide is false or at least incomplete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-09 4:14 AM
Thanks gbm,
Okay will increase the size and let you know but information is right when we found that in F1 series USB detection problem is common then we changed the F1 to L073RB8 to test the usb but no result on both at least pop up msg will come in L0 series but in F1 nothing happens we try on both mcu we have boards of both mcus.if you have some info then share with me more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-09 4:30 AM
despite of increasing stack and heap size still getting device descriptor request failed.
