cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F303 USB HID DEMO Unknown Device

14546397
Associate
Posted on October 09, 2016 at 06:30

BOARD for STM32F303RET6?I use project in STM32F3-Discovery_FW_V1.1.0->Peripheral_Examples->USB_Example compile and Download?The PC can regnize HID Device Joy_Stick?but the project in STM32Cube_FW_F3_V1.6.0->STM32F303RE-Nucleo->HID_Standalone demo(STM32Cube\Repository\STM32Cube_FW_F3_V1.6.0\Projects\STM32F303RE-Nucleo\Applications\USB_Device\HID_Standalone) compile and download ,the PC can not regnize the usb device and shows unknow device?HSE 8M?HCLK 72M?and PA11?PA12. The project produced by CubeMX,configed as usb hid is also unknown device?cubemx 4.16.1?lib STM32Cube_FW_F3?How can USB device for STM32F3 be regnized by PC after configed by CUBEMX?

#stm32f3-usb-cubemx
1 REPLY 1
14546397
Associate
Posted on October 09, 2016 at 06:33

 debug info for pprintf with uart

HAL_PCD_EP_Open,ep_addr=0 

HAL_PCD_EP_Open,ep_addr=128 

HAL_PCD_SetAddress, address=0 

PCD_ReadPMA wNBytes:0

PCD_EP_ISR_Handler,(wEPVal & USB_EP_SETUP) != 0,ep->xfer_count=0 

HAL_PCD_SetupStageCallback,USBD_LL_SetupStage 

pdev->request.bmRequest:0 

USBD_StdDevReq,req->bmRequest=0 

USBD_StdDevReq,req->bRequest=0 

USBD_GetStatus,pdev->dev_state=1 

USBD_CtlError 

HAL_PCD_EP_SetStall,ep_addr=128 

HAL_PCD_EP_SetStall,ep_addr=0