[1]Progress
We changed the resistor value regarding ADCIN1(R1,R2) for BP_ECWait_Internal.And we can verify MODE is PTCH when start-up.
MODE=PTCH(Start-up)
MODE=APP(Patch Download Completed)
But the status of PTCq output data(byte13)
is still 0x08(Application Configuration Patch Error)
(*)BEFORE ADCIN1 modification
[I][USB]MODE = APP
[I][USB]BootFlags(0x2D)
[DUMP][RCV]30 03 00 00 a2 06 00 00 30 00 00 00
[I][USB]IntEvent1(0x14)
[DUMP][RCV]00 00 00 00 00 00 00 00 00 00 02
[I][USB]ReadyForPatch 1
[I][USB]MODE = APP
[I][USB]READ PTCs
[DUMP][RCV]00 00 00 00
[I][USB]WRITE PTCs
[DUMP][SND]03
[I][USB]READ PTCs
[DUMP][RCV]00 00 00 00
[I][USB]MODE = APP
[I][USB]PTCd Send 11584 Byte
[I][EXC]extcharger_check
[I][USB]MODE = APP
[I][USB]READ PTCc
[DUMP][RCV]00 00 00 00
[I][USB]Patch Download Complete
[I][USB]MODE = APP
[I][USB]READ PTCq
[DUMP][RCV]00 00 0a 00 40 2d c0 24 40 02 03 03 08 03
^^<-Application Configuration Patch Error
====================================================
[I][USB]MODE = APP
[I][USB]WRITE PTCr
[DUMP][SND]03 00 be ef
[I][USB]READ PTCq
[DUMP][RCV]88 00 00 00 00 00 00 00 00 00 03 03 00 00
[I][USB]MODE = APP
[I][USB]usb_pd_i2c_patch END
(*)AFTER ADCIN1 modification
[I][USB]MODE = PTCH
[I][USB]BootFlags(0x2D)
[DUMP][RCV]30 03 00 00 a2 06 00 00 30 00 00 00
[I][USB]IntEvent1(0x14)
[DUMP][RCV]00 00 00 00 00 00 00 00 00 00 00
[E][USB] ReadyForPatch not 1
[I][USB]MODE = PTCH
[I][USB]READ PTCs
[DUMP][RCV]00 00 00 00
[I][USB]WRITE PTCs
[DUMP][SND]03
[I][USB]READ PTCs
[DUMP][RCV]00 00 00 00
[I][USB]MODE = PTCH
[I][USB]PTCd Send 11584 Byte
[I][USB]MODE = PTCH
[I][USB]READ PTCc
[DUMP][RCV]00 00 00 00
[I][USB]Patch Download Complete
[I][USB]MODE = APP
[I][USB]READ PTCq
[DUMP][RCV]00 00 0a 00 40 2d c0 24 40 02 03 03 08 03
^^<-Application Configuration Patch Error still remain.
====================================================
[I][USB]MODE = APP
[I][USB]WRITE PTCr
[DUMP][SND]03 00 be ef
[I][USB]READ PTCq
[DUMP][RCV]88 00 00 00 00 00 00 00 00 00 03 03 00 00
[I][USB]MODE = APP
[I][USB]usb_pd_i2c_patch END
[2]Further investigations
For ignoring Application Configuration Patch related error, we tried to eliminate AppConfig itself by modifing INPUT data for PTCs command from 0x03 to 0x02 as well as modifying PTCr command INPUT data from 0x03 0x00 0xBE 0xEF to 0x02 0x00 0xBE 0x00.
Then, we could eventually see CC1/CC2 waveform begin to work. (it means something getting better..)
However VBUS output is 0V,this issue still remains.
We consider PATCH data effectively reflected and firmware is working baecuse we could see CC1/CC2 waveform changed when we applied different configurations as follows;
(1)Upstream Facing Port(UFP)Only
(2)Downstream Facing Port(DFP)Only
(3)Dual Role Port(DRP),prefers power source
However, we couldn't see any VBUS output from PD controler yet.
Please let us know what is the reason and how we can successfully output 5V to VBUS. Is there any miss configuration? or still need to resolve Application Configuration Patch Error issue regarding PTC?
We need your advice to figure out correct implementation.
I attached Project file(DRP mode),for your review.
Thank you and best regards,
Yagi