Cannot programming CY4521

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
WiCh_3149431
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

I brought a CY4521 kit from Cypress store, and got it today. The Order number is 1383701. I try to test my FW which modify from CYPD2122-24LQXI_notebook project, I programming my FW by EZ-PD Configuration Utility several times without problem, but the last time the programming was fail and interrupted, I don't know the reason why, there are not any hardware issue like USB cable unpluged or loss power when programming FW. After that, the EZ-PD Configuration Utility can not find CY4521 anyway that I cannot program CY4521. I try press reset button and re-power to CY4521, but the EZ-PD Configuration Utility still can not find CY4521, this CY4521 might be malfunction, please help me fix this problem, or this CY4521 need to RMA? This is very serious and urgent, I can not develop my FW without CY4521, please Cypress help me fix this problem.

Firmware Update.jpg

0 Likes
1 Solution

Hi ,

1. Please kindly continue to use PSoC Creator 3.3 for the firmware I was shared to you to avoid software IDE configuration issue. Since the firmware I was made is based on PSoC Creator 3.3.

2. The CY4521 should be re-work hardware and firmware to enable higher than 5V PDO. Only add the PDO into the configure table is not enough. Below is the guide for this.

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

Hardware setup based on CY4521 board Rev.03 default setting.

OPEN J11 1-2; (GPIO for LED blink)

SHORT TP17 and TP20; (Equal to load R22); (VSEL1 for DC/DC feedback control)

SHORT TP18 and TP21; (Equal to load R23); (VSEL2 for DC/DC feedback control)

Firmware changes as below:

1) Add additional source PDOs 9V/5A, 15V/5A, and 20V/3A with Ez-PD configuration Utility. And then update config table in CYPD2122 firmware config.c file.

  

2) Update bootloader hex file in bootloadable components.

3) Open TopDesign.cysch, disable LED_PIN and I2C_CONFIG (Please notice only disble I2C config on application not on the I2C bootloader.). Add new output pins and named VSEL1 and VSEL2.

4) Open notebook.cydwr. add pin assignment of VSEL1 to P1[1] and VSEL2 to P1[2].

 

4) Comments out below lines to enable VSEL1 and VSEL2 function and voltage macro define (based on SDK v3.0.2).

  1. a. @psource.h

- (line 86, col 1): // #ifdef PD_APP_POWER_ADAPTER_INC

- (line 95, col 1): // #endif /* PD_APP_POWER_ADAPTER_INC */

  1. b. @psource.c

- (line 140, col 1): // #ifdef PD_APP_POWER_ADAPTER_INC

- (line 256, col 1): // #endif /*PD_APP_POWER_ADAPTER_INC*/

- (line 478, col 1): // #ifdef PD_APP_POWER_ADAPTER_INC   

- (line 481, col 1): // #endif /* PD_APP_POWER_ADAPTER_INC */   

- (line 505, col 1): // #ifdef PD_APP_POWER_ADAPTER_INC

- (line 509, col 1): // #endif /* PD_APP_POWER_ADAPTER_INC */

5) Rebuild firmware to generate hex file for CY4521.

Best Regards,

Lisa

View solution in original post

0 Likes
12 Replies