Attachments are accessible only for community members.
May 28, 2020
11:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 28, 2020
11:28 PM
Hi All
CYPD3120-40LQXI change to DRP , How to modify FW ?
Attach HEX file : CYPD3120-40LQXI_dp_dongle.hex
Solved! Go to Solution.
Labels
1 Solution
May 29, 2020
01:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 29, 2020
01:22 AM
Hi,
You'll need to manually override the config table in the firmware.
Please check the following example code to change its power role to DRP and add source PDO:
dpm_update_port_config(0, 2, 0, 1, 2);
pd_do_t SRC_PDO[1];
SRC_PDO[0].val = 0x0001912C; //5V 3A (This value can check on xml file created by EZ-PD Configuration Utility)
dpm_update_src_cap(0, 1, SRC_PDO);
dpm_update_src_cap_mask (0, 0x01);
And you need to provide the corresponding power to the VBUS since it is a power source. External code is needed to control the power device like buck boost.
Regards,
Eddie
3 Replies