Getting Started with EZ-
PD™ CCG3PA
www.cypress.com
Document No. 002-18179 Rev. **
9
Figure 5. CCG3PA Firmware Architecture Diagram
CC
Application Layer
CCG3PA Hardware
Hardware Abstraction Layer
Flash
SCB
GPIO
Timer
Type-C &
PD
Port Management
Alternate Modes
Low Power (Sleep)
Solution Management Layer
Embedded Controller
(EC)
Type-C
Connector
CCG3PA Bootloader
I
2
C
External HW Control
(FET, Mux, etc)
Solution Specific Tasks
Firmware
Hardware
Type-C & USB-PD Stack
3.2
Flash Memory Organization
Figure 6. CCG3 Firmware Organization
CCG3PA Flash Map
Bootloader
– CC
Configuration Table
CCG Firmware
FW Metadata
The CCG3 device has 64 KB of flash that is divided into four sections as shown in
. The CC bootloader is
used to upgrade the CCG3PA application firmware. It is allocated in a fixed area. The bootloader memory area can
only be written using the SWD interface. The configuration table holds the PD configuration for the CCG3PA
application, and is located at the beginning of the firmware binary. Many configuration parameters can be updated by
modifying this table using the
EZ-PD Configuration Utility
. An overview of this utility is provided in the
section. The CCG firmware area is used for the CCG3PA firmware application. The metadata
area holds the metadata about the firmware binary. The firmware metadata follows the definition provided by the
PSoC Creator Bootloader Component, and includes the firmware checksum, firmware size, and the start address.
3.3
Firmware Build Environment
In cases where just modifying the configuration parameters is not sufficient customization for the intended application,
the tool used for CCG3PA firmware development is PSoC Creator, which is a free, Windows-based Integrated Design
Environment (IDE).
PSoC Creator 4.1 or later
and the
CCGx SDK
are required to edit, compile, download, and debug
the firmware for the CCG3PA Notebook application, as shown in
. The PSoC Creator compiler tool chain is
ARM GCC (build 493, provided along with the PSoC Creator build). Refer to the Help file in PSoC
®
Creator™ for
more details on the PSoC Creator build environment.