We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hello
i am working on a project with stm32f205 and keil uvision5.
i am using the cmsis rtos.
when i plug the usb to my board the usb tasks are created quickly.
the problem is when i unplug the usb , for removing the usb task i use this functions : Usb_Status = USBD_Disconnect(0); Usb_Status = USBD_Uninitialize(0);
but it takes too much time to remove the usb tasks (about 6 to 8 seconds).
i have verified and it seems that the program is bloking in this part :
while ((OTG->GINTSTS & OTG_FS_GINTSTS_GONAKEFF) == 0U);
this code is part of the file : USBD_FS_STM32F2xx.c (static int32_t USBD_EndpointUnconfigure (uint8_t ep_addr)).
thanks.
Hi Zakaria,
could you contact support and provide an example code that issue can be duplicated?
Best regards, Milorad