cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 USB HID + VCP not working but DFU is

dave_mcc
Associate

I am using the STM32L433 MCU and both the HID and VCP interfaces are not working even though the DFU is.

I am simply using the STM32CubeMX software to generate a standard default USB Setup but I keep getting the same Windows USB Error "USB Device Not Recognised" which is the "Device Descriptor request failed".

My hardware is a custom design and believe that I have the correct differential impedance or the DFU would not have worked.

 

VBUS is at 3.3V (<4V)

D+/D- traces > 2 inches but differential impedance has been matched to 90 Ohms using Altium.

I have a 12MHZ Crystal, the MCU can run Crystal-less.

USB is 48MHz but runs from RC, also used PLLSA1 from HSE.

STM32CubeIDE v2.1.1

MX_USB_DEVICE_Init() called.

 

If the DFU is working then why not the other USB Interfaces?

3 REPLIES 3
FBL
ST Employee

Hi @dave_mcc 

Did you refer to example firmware provided ? Did you follow this article to configure your PMA?

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.




Best regards,
FBL
dave_mcc
Associate

I have followed that tutorial and all appears well.

The initialisation functions in USB_Device_Init() throw up no errors but does not continue to enumerate the device and send the descriptors.

 

Andrew Neil
Super User

@dave_mcc wrote:

My hardware is a custom design 


So please show the schematic.

How to write your question to maximize your chances to find a solution

 


@dave_mcc wrote:

If the DFU is working then why not the other USB Interfaces?


By "DFU", do you mean the USB System Bootloader ?

If so that  suggests that your hardware is OK - so the problem must be in your software.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.