STM32 USBDevice porting help needed

Hi, I am trying to port USBDevice for STM32F400 to mbed project. As I can understand, smoothie project HAL drivers are quite different from official mbed ones (callback functions ect,) I am trying to use “standard” driver, but although my board gets recognised sa a composite usb device, no serial in/out is working. Furthermore, if I disconnect and reconnect USB cable the stack Isn’t inialized again……I need some hints/guidelines…thanks

Imported from wikidot