- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Flance,
You got the points. And the firmware will working well.
Best Regards,
Lisa