Skip to main content
caio
Visitor II
September 18, 2014
Question

STM32F042 USB VCP Example

  • September 18, 2014
  • 6 replies
  • 1524 views
Posted on September 18, 2014 at 17:21

Hello everyone,

I'm trying to use the USB STM32F042, used as a base example STM32F072 USB-discovery, but the windows me answer the following error: This device can not start (code 10).

I wonder if anyone has any examples of VCP for this chip working, or why he does not connect ...

Any idea?

Thanks ...
    This topic has been closed for replies.

    6 replies

    rohanne
    Associate
    January 13, 2015
    Posted on January 13, 2015 at 12:11

    I have the same problem. Have you anybody resolved this issue?

    erisson
    Associate II
    January 15, 2015
    Posted on January 15, 2015 at 14:00

    Try editing the file (.inf)

    replacing the names

    usbser -> Serenum

    And then add a new legacy driver

    with this file.

    rohanne
    Associate
    January 15, 2015
    Posted on January 15, 2015 at 17:54

    I don't understand what you mean by adding a new legacy driver with the *.inf file. I renamed all of 

    usbser

    to

    serenum

    , then

    I uninstalled the driver in Device Manager and re-pluged the usb connection -> then automatic driver instalation launched,

    but finally message

    ''Device driver software was not succesfully installed'' showed up. So I still think it's the code matter.

    The same issue solved here. Please, write there: 

    https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fSTM32F04

    2K6%20USB%20init%2e%20for%20VCP%20com&FolderCTID=0x01200200770978C69A1141439

    FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https%3A%2F%2F

    my%2Est%2Ecom%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2F

    AllItems%2Easpx&currentviews=17

    rohanne
    Associate
    January 21, 2015
    Posted on January 21, 2015 at 13:39

    I have already tried it - no effect. See the thread I posted above - I mention there everything I have tried.

    yanvasilij
    Associate
    January 28, 2016
    Posted on January 28, 2016 at 11:44

    Hello! Have you succed in creating usb project? Could you shere it? Regards