Skip to main content
askari.nima
Associate III
May 13, 2014
Question

stm32cube problem with USB

  • May 13, 2014
  • 1 reply
  • 547 views
Posted on May 13, 2014 at 20:55

I make a project and USB device CDC .(stm32f4discovery)

compile and run.

when i connect usb , my computer knows Stm32 CDC . but not work,

exclamation in device manager on com16.

i install driver and test by stm32f103 example  and it was work.

    This topic has been closed for replies.

    1 reply

    arsalan_elec
    Associate II
    May 13, 2014
    Posted on May 13, 2014 at 22:21

    salam nima jan,

    If you made the project with cubemx and you are using  fullspeed interface, then you have to change the 

    USB_OTG_HS_MAX_PACKET_SIZE    from      512 to 64

    in this file:

    STM32f4xx_ll_usb.h