AnsweredAssumed Answered

STM32F042 USB VCP not working

Question asked by anrijs on Dec 10, 2015
Latest reply on Jan 2, 2016 by anrijs
I have generated code with STM32CubeMX which should enable VCP support for STM32F042, but USB still doesn't work. Until USB device is initialized in code, windows shows device as "Unknown USB Device (Device Descriptor Request Failed)" and after calling USB Init function, device disappears.
I have repeated same procedure for F4 Discovery board and it works fine there.

 F4 Discovery and F042 source which is generated by CubeMX seems to be the same.
Where could the problem be? Am I missing something?