cancel
Showing results for 
Search instead for 
Did you mean: 

USB HOST stopped detecting the PT1 (stm32f411ce) over the USB bus

mikemendel
Associate
Posted on June 19, 2016 at 10:38

Hello

Regarding STM32Cube USB device library .

I am using the stm32f411ce micro with the PT1 device.

I have noticed that after downloading the elf file via stlink the to the PT1 device the USB host stopped to detect him over the the USB bus.

After some debugging I am getting at the HAL_PCD_IRQHandler() function at the stm32f4xx_hal_pcd.c file .

first I entered to __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_MMIS); 

meaning incorrect mode , what's that means , what is wrong here.

second the USB HOST trying to do 

HAL_PCD_SuspendCallback(hpcd);

MEANING the PT1 is in SUSPEND MODE.

and than __HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_ENUMDNE)

meaning Handle Enumeration done Interrupt.

How could I debug it.

Regards,

  Mike M.
1 REPLY 1
slimen
Senior
Posted on June 23, 2016 at 15:12

Hi mendel.mike,

May be you can find under the

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef4.html

package a set of applications about USB device which can help you as an implementation example:

STM32Cube_FW_F4_V1.12.0\Projects\STM32446E_EVAL\Applications\USB_Device

You can compare your own project with an example to identify what is going wrong.

Regards