cancel
Showing results for 
Search instead for 
Did you mean: 

USB EZ-PD Type-C

New Contributor II

I have tried to find some available pins to map to a UART (or I2C) on the CY4532 EVK. Unless, I'm missing something, there don't seem to be any good candidates when using the EVK. One possibility that I did explore was using pins 5,6 (DP1, DM1)for tx/rx which worked as a UART but it created problems with USB C PD operation using the Power SDK. I am not using the USB A port so I tied into TP13 and TP14.

If anyone has done this successfully, please share what you did.

Thanks

0 Likes
Reply
1 Solution
Moderator
Moderator

Hi,

If you are not using the Type-A port, you can use DP1/DM1 for UART. But when you do this, please ensure you have disabled Type-A port in the firmware; additionally, if you do not need battery charging protocols, you can disable the corresponding macro as well

@file stack_params.h

#define CCG_TYPE_A_PORT_ENABLE                  (0u)

#define  BATTERY_CHARGING_ENABLE               (0u)

Regards,

Rajath

View solution in original post

0 Likes
Reply
2 Replies
Moderator
Moderator

Hi,

If you are not using the Type-A port, you can use DP1/DM1 for UART. But when you do this, please ensure you have disabled Type-A port in the firmware; additionally, if you do not need battery charging protocols, you can disable the corresponding macro as well

@file stack_params.h

#define CCG_TYPE_A_PORT_ENABLE                  (0u)

#define  BATTERY_CHARGING_ENABLE               (0u)

Regards,

Rajath

View solution in original post

0 Likes
Reply
New Contributor II

Thanks. One of the issues that I had was starving the main loop with serial communication which caused the malfunction. I did change the code per you recommendation to ensure that I don't have other issues.

0 Likes
Reply