Programming EZ-PD™CCG2, EZ-PD™ CCG3 and EZ-PD™ CCG4 Using PSoC® Programmer and MiniProg3 - KBA96477 | Cypress Semiconductor
Support & Community
Programming EZ-PD™CCG2, EZ-PD™ CCG3 and EZ-PD™ CCG4 Using PSoC® Programmer and MiniProg3 - KBA96477
How do I program EZ-PD CCG2, EZ-PD CCG3 or EZ-PD CCG4 device?
There are two ways of programming the EZ-PD CCG2 (CCG2), EZ-PD CCG3 (CCG3) or EZ-PD CCG4 (CCG4) device:
- Using the PSoC® Programmer and MiniProg3, as explained in this knowledge base article.
- Using the Cypress-provided utility, cc_flash.exe, over CC line. This method is explained in KBA96466 for CCG2 only.
Using PSoC Programmer and MiniProg3
You can upgrade the firmware in a CCG2/3/4 device using the Serial Wire Debug (SWD) interface in the device. This approach uses a PC running the PSoC Programmer software and a MiniProg3 programmer to program the CCG2/3/4 device as shown in Figure 1.This simple method of programming, typically during product development, can be used on a board equipped with 5-pin or 10-pin SWD header. The MiniProg3 programmer acts as the host programmer and the CCG2/3/4 device as the target. Note that, VDDD of the CCG3/4 device should be set to 5 V for programming over SWD whereas VDDD of CCG2 device can be set to either 3.3 V or 5 V.
Figure 1: Programming CCG2/3/4 device using MiniProg3
- Start PSoC Programmer from Start > All Programs > Cypress > PSoC Programmer.
- Connect one end of the USB cable to the MiniProg3 programmer; connect the other end to a PC.
- Connect the MiniProg3 programmer to the SWD header on the board.
- Select the MiniProg3 programmer from the Port Selection window, as shown in Figure 2.
Figure 2. PSoC Programmer Window
- Ensure that the settings on PSoC Programmer are as highlighted in Figure 2. Connector radio button should be set to10p for CCG2 and 5p for CCG3/4.
- Click the File Load button, and select the appropriate hex file. Contact Cypress for the CCG2/3/4 firmware images. The status message at the bottom right of the PSoC Programmer window will indicate if the board is powered.
- If the board is not powered yet, click the Power button and verify the status message as in step 7.
- Click the Program button to program the hex file onto the chip. When the file is successfully programmed, the “Programming Succeeded” message appears on the Actions window.