AnsweredAssumed Answered

STM32F042 usb device fails

Question asked by Laurence Blaxter on Oct 20, 2017
Latest reply on Oct 23, 2017 by Laurence Blaxter

Hi, I'm attempting to make a usb audio device using an stm32f042. I have managed to prototype the same basic concept using an F4 discovery, but the same code (with some changes and new CubeMX autogenerated parts) fails on F042.

 

The failure occurs soon after the device is connected to PC, during enumeration. The PC tries to set configuration 1, and the device replies with error.

 

I have attached a screenshot from a usb analyser. Can anyone advise where to look?

Outcomes