How to HPI interface 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
TaAi_1278401
Level 1
Level 1
25 sign-ins 10 sign-ins 5 replies posted

Hi

I want to create CYPD3125 used dp dongle project.

My procedure is based on the CY3120DP dongle in the SDK and I'm trying to replace it with CY3125.

I also want  to add the HPI component to use EZ-PD Configuration Utility.

but, Showed build error "Build error: undefined reference to `hpi_pd_event_handler'" and more at notes list.

Is my method wrong?

1. copy HPI component from CYPD3125 notebook SDK.

2.add hpi.h in Header Files

3.HPI enable in config.h

#define CCG_HPI_ENABLE (1u)

#define CCG_HPI_PD_ENABLE (1u)

Best Regard.

0 Likes
1 Solution
ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

Hello ,

The concerned Marco define is:

/* Enable USB-I2C master bridge mode support. */
//#define APP_I2CM_BRIDGE_ENABLE (0u) 

/* Enabling flashing of the device via USB interface. */
#define FLASHING_MODE_USB_ENABLE (0u) 

Best Regards,

Lisa

View solution in original post

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

Hello ,

 

Not only enabling HPI in the firmware, but also needs cut off USB to I2C bridge from Billboard and disable Billboard firmware flash upgrade function. 

Best Regards,

Lisa

  

0 Likes
TaAi_1278401
Level 1
Level 1
25 sign-ins 10 sign-ins 5 replies posted

Hello Lisa

thanks for your reply.

Is it possible by changing config.h the following code?

------------------------------------------------------------------------------------

#define FLASHING_MODE_USB_ENABLE (0u)

#define FLASH_ENABLE_NB_MODE (0u)

----------------------------------------------------------------------------------

I have used hardware CY4531.

Best Regards,

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

Hello ,

The concerned Marco define is:

/* Enable USB-I2C master bridge mode support. */
//#define APP_I2CM_BRIDGE_ENABLE (0u) 

/* Enabling flashing of the device via USB interface. */
#define FLASHING_MODE_USB_ENABLE (0u) 

Best Regards,

Lisa

0 Likes