cancel
Showing results for 
Search instead for 
Did you mean: 

USB OTG HOST PA9 PIN

iozho
Associate II
Posted on June 04, 2011 at 20:37

Hi:

I am trying to use USB OTG as a host. I have to enable PA9 pin which is the VBUS. I tried everything but could not get 5V only 3.3V. What I am missing?

Code:

 GPIO_InitStructure.GPIO_Pin = HOST_POWERSW_VBUS;

  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;

  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;

  GPIO_Init(HOST_POWERSW_PORT, &GPIO_InitStructure);

  

  /* By Default, DISABLE is needed on output of the Power Switch */

  GPIO_SetBits(HOST_POWERSW_PORT, HOST_POWERSW_VBUS);

Thanks,

Konstantin

2 REPLIES 2
iozho
Associate II
Posted on June 05, 2011 at 08:03

Never mind - found it.

dtnaik26
Associate II
Posted on June 07, 2011 at 18:41

Hello,

USB host firmware is available for STM32F107 controller .

Pls refer the below link.

http://www.st.com/stonline/stappl/resourceSelector/app?page=resourceSelector&doctype=FIRMWARE&SubClassID=1169