Closed intercreate closed 3 years ago
There doesn't seem to be any notification to the user that an attach event timed out. I would expect one from USBPD_DPM_Notification()
maybe?
Also, as a reminder, USBPD_VbusEnable()
library callback is called before this conditional statement, hence there is a race condition.
Hi InterCreate,
Thank you for this one new aspect you pointed out. I let @bouattay check what you described and provide answers.
With regards,
Hi InterCreate,
Our development teams said your issue is valid and that it is already known. It has been fixed internally and shall be made available in the frame of a future firmware package release. Unfortunately, we cannot share a date for the moment. We will be back to you as soon as this is done.
With regards,
ST Internal Reference: 59814
Overview Possible issue in the Middleware USB-PD G0 Device section
Describe the set-up
BSP_PWR_VBUSGetVoltage()
senses TypeC voltage.arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
Describe the bug Possible issue in USB PD Middleware Device for G0. At attach sensing time, the library should check for VBUS to stabilize to Vsafe5V before moving forward. However, I believe there's an incorrect conditional for this check.
How To Reproduce
CAD_TPDDEBOUCE_THRESHOLD
)Additional context This patch gets me past this issue.