cancel
Showing results for 
Search instead for 
Did you mean: 

USB host problem

jimmjimmshen
Associate III
Posted on November 06, 2014 at 09:21

i'm using f407zg and try to use USB HS host with internal PHY but found the program never entry interrupt function

my program is modify form host_device_libV2.10-USB_host_example which i tried on eval board successfully

i already defined USE_EMBEDDED_PHY marco and there are init code:

 USBH_Init(&USB_OTG_Host,

USB_OTG_HS_CORE_ID, 

&USB_Host, 

&USBH_MSC_cb,

&USR_Callbacks);

void USB_OTG_BSP_Init(USB_OTG_CORE_HANDLE *pdev)

{

  GPIO_InitTypeDef GPIO_InitStructure;   

  RCC_AHB1PeriphClockCmd( RCC_AHB1Periph_GPIOB , ENABLE);  

  GPIO_InitStructure.GPIO_Pin = GPIO_Pin_15 | 

                                GPIO_Pin_14;

  

  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;

  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;

  GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;

  GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL ;

  GPIO_Init(GPIOB, &GPIO_InitStructure);  

  

  GPIO_PinAFConfig(GPIOB,GPIO_PinSource15,GPIO_AF_OTG2_FS) ; 

  GPIO_PinAFConfig(GPIOB,GPIO_PinSource14,GPIO_AF_OTG2_FS) ;

 

  RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);

  RCC_AHB1PeriphClockCmd( RCC_AHB1Periph_OTG_HS, ENABLE) ;

}

so any advice?
3 REPLIES 3
Posted on November 06, 2014 at 12:59

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/USB%20host%20problem%202194&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=6]Duplicate Thread

Regards,

Heisenberg.

jimmjimmshen
Associate III
Posted on November 10, 2014 at 06:53

Sorry, how to delete that thread?

and...any help?

jimmjimmshen
Associate III
Posted on November 12, 2014 at 04:29

anyone anyhelp?