I am new to forum posting and I don't really know how to start ....
It's been a while since I wanted to give the HAL drivers a chance and every time ... I get disappointed. My guess is that they use their interns to code the drivers and no one review them before releasing a package.
Enough said, let's get to the point. I generated a template with STM32 CubeMx on my discovery STM32F072 and wanted to have the USB CDC interface. While looking for a mysterious bug that hangs the micro and bring it to a hard fault, I have found some interesting thing in the file : usbd_code.h
Once again, I don't know where else to go to report this bug, so. Let's take, for example