2011-06-04 11:37 AM
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
2011-06-04 11:03 PM
Never mind - found it.
2011-06-07 09:41 AM
Hello,
USB host firmware is available for STM32F107 controller . Pls refer the below link.