X-CUBE-USB-PD problem, doesn't recognize the cable detachment.
I am developing an X-CUBE-USB-PD system that works with the STM32G070CB and FUSB307B.
It is based on an example project for the FUSB307BGEVB, which behaves as a DRP.
The library I'm using for it is M0_PD3_FULL.
When the device behaves as a source, unplugging the cable after the state shifts to PE_STATE_READY_WAIT does not cause a detach event.
After this, the device will not respond to anything. However, it does not appear that a HardFault has occurred. The alert is left in place as it occurs.
However, if you put a breakpoint in the handler of the alert detection, it works fine.
That leads me to believe that the problem is related to something timing related.
What could be the possible cause of such a problem?



