Function body has content of opposite function
Hallo,
I struggled already two days with the implementation of USB_OTG_FS on a STM32F401 board. The most prominent error concerns the Virtual Com Port on the Windows PC: whatever I try, there is always a message saying "USB device not recognized", with as addition "Device Descriptor request failed".
In a final attempt I stepped my debugger through the initialization process and encountered the function 'USB_DevConnect(...)', located in the file: "ProjectName>>Drivers>>STM32F4xx_HAL_Driver>>Src>>stm32f4xx_ll_usb.c", line 76. I considered the statements in that function a bit strange, until my eye fell on the function 'USB_DevDisconnect(...)' right below the former one. The body of both functions are exact copies of each other!
At first I thought I messed up this file myself, so I checked the "master" file in the Repository for STM32F4xx targets, with the same result. Still I couldn't believe this came from ST, so I downloaded the most recent version, the "STM32Cube_FW_F4_V1.28.0" repositry, unzipped the file and checked the content of "stm32f4xx_ll_usb.c". Also here the problem appeared present in 'USB_DevConnect(...)', so I have no way to correct......
I sincerely hope ST will read about this flaw and file it on their "to-do-list". I assume it will not cause an emergency update release, but it will be very helpfull when a "repaired version of the file 'stm32f4xx_ll_usb.c' will be available soon.
Thanks for your attention,
Fred Schimmel
