USB initialization issue on STM32H7 controller
In latest USB CDC library code in file usbd_cdc.c, USBD_CDC_RegisterInterface() function pdev->pClassData is not getting initialize and due to which we are facing hardfault during port connection.
In earlier version of library code pdev->pClassData was getting initialized in the function USBD_CDC_RegisterInterface().
Attached USBD_CDC_RegisterInterface() function with pdev->pClassData initialized. After this change we are not facing any hardfault issue and USB comunication works smoothly.
please let us know is this initialization is correct or any other modification is needed?
