STMicroelectronics / STM32CubeL4

STM32Cube MCU Full Package for the STM32L4 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
262 stars 153 forks source link

Stalling at the DataOutStage in usbd_core.c leads to enumeration issues under Windows 10/7 #4

Closed fstap closed 3 years ago

fstap commented 4 years ago

Hi,

enumeration fails for a lot of users because of stalling of the endpoint during the usb configuration stage. The issue seems to occure with pretty much every STM32, I can confirm it for the STM32L4, STM32H7 and STM32F7 series. The effects can easily be seen by using a USB protocol analyzer like USBTrace. A quick fix is to remove the line USBD_LL_StallEP(pdev, 0U); completely which does not interfere with the USB functionality in any way. The folowing thread describes the bug in more detail where I also recently posted the solution: https://community.st.com/s/question/0D50X00009XkiIASAZ/stm32f405rg-vcp-error-this-device-cannot-startcode-10

Kind regards

fstap

ALABSTM commented 4 years ago

Hi Fstap,

Thank you again for your reporting. I have already introduced @bouattay into the loop of the issue you opened on STM32CubeH7 repository. Hopefully you get answers soon.

With regards,

ALABSTM commented 3 years ago

Hi @fstap,

Firmware package STM32CubeL4 v1.17.0, which has been published a couple of days ago, integrates v2.7.1 of the USB Device library. The issue you pointed out should be fixed now. Actually, it has been addressed since v2.6.0 of the library.

Thank you again for your contribution.

With regards,