VCONN_SUPPORT_ENABLE

Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Flance_Fang
Level 4
Level 4
Distributor - Weikeng(GC)
50 sign-ins 50 questions asked 25 sign-ins

Hi. cypress

in the SDK(C:\Program Files (x86)\Cypress\EZ-PD CCGx Power SDK\CCGx\Firmware\projects\CYPD3175-24LQXQ_pa_direct_fb) project, the verson is FW_MAJOR_VERSION (3),FW_MINOR_VERSION(4),FW_PATCH_VERSION(0).

when I enable VCONN_CC1 and VCONN_CC2 in .cysch and #define VCONN_SUPPORT_ENABLE      (1u) in stack_params.h to support >3A, then building the project. it is appears pa_vconn_enable errors as below in main.C, whether do you meet the same issue in version 3.4, how to solve it, but it is ok at former 3.2.

pastedImage_0.png

0 Likes
1 Solution
Flance_Fang
Level 4
Level 4
Distributor - Weikeng(GC)
50 sign-ins 50 questions asked 25 sign-ins

Hi. Lisa

thanks you very much,modify void pa_vconn_enable(uint8_t port, uint8_t channel) to  bool pa_vconn_enable(uint8_t port, uint8_t channel) and add return true; it may pass building.

bool pa_vconn_enable(uint8_t port, uint8_t channel)

{

    if (channel == CC_CHANNEL_1)

    {

        VCONN_CC1_Write(VCONN_SWITCH_ON_VALUE);

    }

    else

    {

        VCONN_CC2_Write(VCONN_SWITCH_ON_VALUE);

    }

    /* Reset RX Protocol for cable */

    dpm_prot_reset_rx(port, SOP_PRIME);

    dpm_prot_reset_rx(port, SOP_DPRIME);

     return true;

}

View solution in original post

0 Likes
3 Replies
ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

Hi Flance,

You need update the type of pa_vconn_enable to make sure them keep same type. For example,

bool pa_vconn_enable(uint8_t port, uint8_t channel)

Best Regards,

Lisa

0 Likes
Flance_Fang
Level 4
Level 4
Distributor - Weikeng(GC)
50 sign-ins 50 questions asked 25 sign-ins

Hi. Lisa

thanks you very much,modify void pa_vconn_enable(uint8_t port, uint8_t channel) to  bool pa_vconn_enable(uint8_t port, uint8_t channel) and add return true; it may pass building.

bool pa_vconn_enable(uint8_t port, uint8_t channel)

{

    if (channel == CC_CHANNEL_1)

    {

        VCONN_CC1_Write(VCONN_SWITCH_ON_VALUE);

    }

    else

    {

        VCONN_CC2_Write(VCONN_SWITCH_ON_VALUE);

    }

    /* Reset RX Protocol for cable */

    dpm_prot_reset_rx(port, SOP_PRIME);

    dpm_prot_reset_rx(port, SOP_DPRIME);

     return true;

}

0 Likes

Hi Flance,

You got the points. And the firmware will working well.

Best Regards,

Lisa

0 Likes