Stuck in HOST_DEV_WAIT_FOR_ATTACHMENT while usb
- June 1, 2023
- 4 replies
- 2300 views
Hi.. I am working with stm32f429disco 1.. .I have generated with cube mx the fw init for usb host..
When I start my fw with the usb stick connected at least I am able to go inside the routine
USBH_Process
but when i run again the fw i am not able to stop in the same place..
What i mean is that with the usb stick connected just one time this variable is at value 1
phost->device.is_connected
The second time i try to stop the before variable is 0
Instead when I run the fw without the usb key conncted i never stop in the state
HOST_DEV_WAIT_FOR_ATTACHMENT
what could be wrong ?
It seems it is able to see the usb key just once and then something bad is happening
I think the setup from cube mx should be correct but i uploaded here ..
Can you please help me ?
VBus is enabled because the related led it is working..
Thanks
