I plug in my CubeMX generated USB CDC class implementation into a PC host and CDC_Init_FS gets called as expected
When I unplug, I expect that CDC_DeInit_FS be called so I can take the link down but it doesn't.
When I plug in for a second time, CDC_DeInit_FS DOES get called and the CDC device fails to enumerate on the host. Again, when I unplug, no Init or DeInit calls.
All other aspects (transmit and receive of data) operate correctly, its just that my device needs to know if its connected and at present I can't get that information.
I'm using CubeMX 4.21.0 and HAL STM32Cube FW_F3 V1.8.0