cancel
Showing results for 
Search instead for 
Did you mean: 

stm32F205 and usb

micha3
Associate
Posted on September 19, 2011 at 13:27

Hi everyone,

I want to use usb in stm32f205

In documentation http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00237391.pdf on page 12 it is written that this microcontroler has only OTG_HS/OTG_FS , but on page http://www.st.com/internet/mcu/product/250189.jsp its written that it has:

  • USB 2.0 full-speed device/host/OTG controller with on-chip PHY
  • USB 2.0 high-speed/full-speed device/host/OTG controller with dedicated DMA, on-chip full-speed PHY and ULPI
If there is only OTG_HS/OTG_FS  than  which pin should I use to for OTG_FS:

PA12 and PA11

or

PB13 PB14?

#stm32f205-usb
9 REPLIES 9
stforum2
Associate II
Posted on September 21, 2011 at 11:58

Hi

The STM32F207 has both an OTG_FS and an OTG_HS.  (The OTG_FS seems to be the same as the one on the STM32F107.)

It looks like the OTG_FS has been omitted from the STM32F205 and that it is only has an OTG_HS.  The OTG_HS can operate at full speed and so presumably that is why in some places it is referred to as OTG_HS/FS.

DP and DM for the OTG_FS of our STM32F217 evaluation board are on pins PA11 and PA12 (AF10).  Since the STM32F205 does not have an OTG_FS then these are NOT the pins you should use.

The OTG_HS of our STM32F217 evaluation board uses a ULPI interface so it does not use PB14 and PB15 as DP and DM.  We presume that PB14 and PB15 (AF12) should be configured as DP and DM when using the on-chip full-speed PHY of the OTG_HS.

Hope this helps.

Best regards

Crossware

http://www.crossware.com

root
Associate II
Posted on September 22, 2011 at 16:36

Hum ...

Are you sure about that, nothin in the datasheets / reference manuals says the USB FS module is not present in the STM32F205 ...

And I hope it is, I'll have my new boards wired to PA11/PA12 arriving in 2 weeks !

Thomas.
root
Associate II
Posted on September 22, 2011 at 17:08

This is a nightmare ....

Why the f**king hell is it written everywhere there is 2 USB units ... even in MicroXPlorer, everywhere !

Now I'm loosing one month of dev and 1.5k€+ in prototypes because of that ... really that sucks, put the right specifications on the product page !

Thomas.
root
Associate II
Posted on September 23, 2011 at 09:07

Had to redesign the board to use the FS/HS USB unit ... 

Please make it more clear in the datasheet that 205 series doesn't have the FS only USB unit.

Thomas.
jackson
Associate II
Posted on January 12, 2012 at 07:22

Hi,

  Can anyone confirm that PB14 and PB15 should be used for DP and DM when using the on-chip full-speed PHY for the STM32F205?

The documentation is very unclear about this and I'm concerned that the boards I've just ordered may be incorrect.

In the reference manual (RM0033), section 30.5 (in the OTG_HS chapter) has a link to Figure 350 (in the OTG_FS chapter!) showing the connection to PA11/12 but I'm sure this is wrong for the STM32F205.

Is anyone using the OTG_HS in FS mode (embedded PHY) on the STM32F205 who can confirm which pins should be used?

Stephan Scherer
Associate II
Posted on January 12, 2012 at 09:57

Hi,

I use the USB OTG FS on STM32F205 on the pins PA11 and PA12 and it works fine as VCP.

If you want to use it in HS you need an external phy. if i understand it correct.

jackson
Associate II
Posted on January 13, 2012 at 03:26

Are you using F205 or F207?

The F205 doesn't have the USB OTG FS controller, only the USB OTG HS controller.

I'm fairly certain I should be using PB14/15 on the F205, but it would be nice to have some confirmation that it works.

Stephan Scherer
Associate II
Posted on January 13, 2012 at 07:58

I'm using the STM32F205VB on PA11 and 12 in FS mode.

See

http://www.st.com/internet/mcu/product/250193.jsp

  • USB 2.0 full-speed device/host/OTG controller with on-chip PHY
  • USB 2.0 high-speed/full-speed device/host/OTG controller with dedicated DMA, on-chip full-speed PHY and ULPI

  • USB 2.0 full-speed device/host/OTG controller with on-chip PHY
  • USB 2.0 high-speed/full-speed device/host/OTG controller with dedicated DMA, on-chip full-speed PHY and ULPI

jackson
Associate II
Posted on January 13, 2012 at 12:37

Weird. Now I'm really confused.

The data sheet

http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00237391.pdf

says that the STM32F205VB has only the OTG HS Controller (see table 2 on page 12).

Appendix A (page 151) explicitly says that the OTG FS is ''Not available on STM32F2x5xx.''

The selection table for STM32F2

http://www.st.com/internet/mcu/subclass/1520.jsp

also lists the F205 devices as only having ''1xUSB OTG FS/HS''.

But as you say, the ''Key features'' page for each F205 lists two USB controllers.

Can anyone from ST comment on this?

It almost feels as if the OTG FS functionality was there in the F205 but has now been removed from documentation for some reason.

I would just use the F207 to avoid this confusion except that I need the 64pin package.