Solved
There is a problem that USBPD_CAD_Task stops
- March 7, 2024
- 4 replies
- 2983 views
Hello,
I am developing a USB Type C charger
The development environment is as follows
Hardware
NUCLEO-G071RB (tested on rev C)
X-NUCLEO-DRP1M1 shield
Software
x-cube-tcpp
DRP1M1_DRP
When this board is connected to a Windows tablet, the CAD task(USBPD_CAD_Task) stops working.
UCPD monitor updates will also stop
When connected to an Android tablet, the CAD task does not stop working.
UCPD monitors will not stop updating
I also attach a screenshot.
Below is the log when the USB cable is plugged in.
Best Regards
-----------------------------------------------------------------
DEBUG312660-- BSP_USBPD_PWR_SetRole : SRC --454
DEBUG313100-- BSP_USBPD_PWR_SetRole : SNK --455
DEBUG313500-- BSP_USBPD_PWR_SetRole : SRC --456
DEBUG313940-- BSP_USBPD_PWR_SetRole : SNK --457
DEBUG314340-- BSP_USBPD_PWR_SetRole : SRC --458
DEBUG314780-- BSP_USBPD_PWR_SetRole : SNK --459
DEBUG314810-- BSP_USBPD_PWR_VBUSInit --460
DEBUG314810-- BSP_USBPD_PWR_SetPowerMode --461
DEBUG314810-- Normal --462
CAD314810USBPD_CAD_STATE_ATTACHED_WAIT463
CAD316030USBPD_CAD_STATE_ATTACHED464
NOTIF316030USBSTACK_START465
EVENT316030EVENT_ATTACHED466
PE316030PE_SNK_STARTUP467
PE316030PE_SNK_WAIT_FOR_CAPABILITIES468
IN317110SOP PD3s:018 H:0x41A1 (id:0, DR:DFP, PR:SRC) SRC_CAPABILITIESDATA: 2C91110A2CD112002CB11400E1401600
Option: DRDEPW
[1] Fixed : 5V - 3A
[2] Fixed : 9V - 3A
[3] Fixed : 15V - 3A
[4] Fixed : 20V - 2.25A
469
OUT317110SOPs:002 H:0x0041 (id:0, DR:UFP, PR:SNK) GOODCRC470
PE317110PE_SNK_EVALUATE_CAPABILITY471
PE317130PE_SNK_SEND_REQUEST472
OUT 31713 0 SOP PD3 REQUEST s:006 H:0x1082 (id:0, DR:UFP, PR:SNK) DATA: 96580211
ObjectPosition:1
GiveBack:0
CapabilityMismatch:0
USBCommunicationCapable:0
NoUSBSuspend:1
UnchunkedExtendedMessagesSupported:0473
IN317140SOPs:002 H:0x01A1 (id:0, DR:DFP, PR:SRC) GOODCRC474
PE317140PE_SNK_SELECT_CAPABILITY475
IN317180SOP PD3ACCEPTs:002 H:0x03A3 (id:1, DR:DFP, PR:SRC) 476
OUT317180SOPs:002 H:0x0241 (id:1, DR:UFP, PR:SNK) GOODCRC477
NOTIF317180POWER_STATE_CHANGE478
NOTIF317180REQUEST_ACCEPTED479
PE317180PE_SNK_TRANSITION_SNK480
IN318280SOP PD3PS_RDYs:002 H:0x05A6 (id:2, DR:DFP, PR:SRC) 481
OUT318280SOPs:002 H:0x0441 (id:2, DR:UFP, PR:SNK) GOODCRC482
NOTIF318280POWER_STATE_CHANGE483
NOTIF318290POWER_EXPLICIT_CONTRACT484
PE318290PE_STATE_READY485
NOTIF318290STATE_SNK_READY486
PE318290PE_STATE_READY_WAIT487
IN318900SOPs:006 PD3 H:0x17AF (id:3, DR:DFP, PR:SRC) VENDOR_DEFINED
VDM:SVDM_DISCOVER_SVIDS INIT DATA:02A000FF
488
OUT318900SOPs:002 H:0x0641 (id:3, DR:UFP, PR:SNK) GOODCRC489
PE318900PE_SEND_NOTSUPPORTED490
OUT318920SOP PD3NOT_SUPPORTEDs:002 H:0x0290 (id:1, DR:UFP, PR:SNK) 491
IN318930SOPs:002 H:0x03A1 (id:1, DR:DFP, PR:SRC) GOODCRC492
PE318930PE_STATE_READY493
NOTIF318950STATE_SNK_READY494
PE318950PE_STATE_READY_WAIT495
