Skip to main content
morpeh89
Associate III
March 16, 2010
Question

USB usage - getting started

  • March 16, 2010
  • 6 replies
  • 1075 views
Posted on March 16, 2010 at 13:52

USB usage - getting started

    This topic has been closed for replies.

    6 replies

    tkjmail2
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:43

    1) The two USB pins on the STM32 can be used either as USB, USART1, CAN, TIM1 or GPIO. If you want to use it as USB, you have to connect them to the D+ and D- pins on the USB connector.

    2) The two other pins on the USB connector is +5V and Ground - you could check this schematic which also shows the USB connection:

    http://www.tkjweb.dk/STM32F103ZET6_Board_Rev2.png

    3) The USB function on the STM32 is a USB 2.0 full-speed device - so it should be able to handle 480Mbps

    4) You should check USB Device library:

    http://www.st.com/stonline/products/support/micro/files/um0424.zip

        And the documentation about it:

    http://www.st.com/stonline/products/literature/um/13465.pdf

    Best Regards

    Thomas Jespersen

    May 17, 2011
    Posted on May 17, 2011 at 13:43

    I thought that only high-speed devices can handle 480Mbps...

    morpeh89
    morpeh89Author
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:43

    Thanks!

    tkjmail2
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:43

    Oh, I really didn't know that...

    As the USB FS Manual says it is USB Full Speed capable, but not how fast that is?

    Best Regards

    Thomas Jespersen

    htp
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 13:43

    STM32 with full-speed = 

    12 Mbit/s (1,5 MB/s)

    Tomas DRESLER
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:43

    The name clearly expresses the speed:

    Low Speed = 1.5 Mbit/s

    Full Speed = 12 Mbit/s

    High Speed = 480 Mbit/s

    Whatever Xtra Speed = 5 Gbit/s

    STM32F102, 103 is only Full Speed device (must connect to Host or OTG), the F105, 107 is a Full Speed device and FS/LS host (or OTG)

    Hw to start? Download the USB developer kit from

    http://www.st.com/mcu

    , Support files for STM32, and try to get into the source codes of some of the examples.