Description
Description: I'm facing an issue with my STM32F103C8 custom board. After flashing the STM32duino DFU bootloader, the device is recognized as an "Unknown USB Device (Device Descriptor Request Failed)" on Windows.
Board Specifications:
MCU: STM32F103C8
External Oscillator: 16MHz
Custom Board Design: Yes
Steps Taken:
Bootloader Compilation and Flashing:
I downloaded the STM32duino DFU bootloader from this repository.
Modified the code to set the external oscillator to 16MHz in the hardware.h file.
Compiled the bootloader using make generic-pc13.
Successfully flashed the bootloader onto the board using an ST-Link V2 programmer.
After Flashing:
When I connect the board via USB, Windows does not recognize it correctly. It shows "Unknown USB Device (Device Descriptor Request Failed)" in Device Manager.
Troubleshooting Attempts:
Checked the USB wiring on my custom board.
Reflashed the bootloader to ensure no errors occurred during flashing.
Verified that the 16MHz oscillator is properly connected and providing a stable clock signal.
Attempted to compile with different configurations in case it was a build issue.
Relevant Code Modifications: In hardware.h, I ensured the following settings to match the 16MHz external oscillator:
System Information:
Host OS: Windows 10
USB Drivers: STM32 USB drivers for DFU gets detected when STM32 BluePill is flashed with relevant DFU bootloader.
Request for Assistance: Could you please advise if there are additional settings or configurations required to ensure USB recognition, or if there might be another cause for this issue? Any guidance on additional steps or troubleshooting would be greatly appreciated.
Thank you for your assistance.