cancel
Showing results for 
Search instead for 
Did you mean: 

USB EZ-PD Type-C

Flance_Fang
New Contributor II

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
New Contributor II

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

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
New Contributor II

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
ShifangZ_26
Moderator
Moderator

Hi Flance,

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

Best Regards,

Lisa

0 Likes