Flash Memory Consumption of Various Features Available in CCG3PA Based Power Bank Project of CCGx Power SDK 3.2 - KBA224248

Version 3

    Version: **

     

    Question:

    What is the flash memory consumption of the different features available in the CCG3PA-based Power Bank project of CCGx Power Software Development Kit (SDK)?

     

    Answer:

    The flash memory consumption of the features supported in CCG3PA-based Power Bank project of CCGx Power SDK version 3.2 are listed in Table 1.

     

    Table 1. Flash Size of Features Supported in CCG3PA Power Bank SDK Project (Power SDK v3.2)

     

    Available Features

    Flash (Bytes)

    Flash (%)

    SRAM (Bytes)

    SRAM (%)

    Default CCG3PA Power Bank Project flash-size

    68424

         98.9

    6240

          76.2

    Disabling 'Type-A port' saves

    1960

    3

    888

          10.9

    Disabling 'Battery Charging' saves

    5760

          8.8

    40

           0.5

    Disabling 'Protection (OCP, OVP, UVP)' saves

    2638

    4

    16

           0.2

    Disabling 'FW Update' saves

    4304

          6.6

    248

    3

     

    Note that the features ‘Type-A port’, ‘Battery Charging’, ‘Protection (OCP, OVP, UVP)’, and ‘FW Update’ are enabled in the default CCG3PA Power Bank project.

     

    To disable the features listed in Table 1, use the associated macros listed Table 2. Table 2 also lists the location of these macros in the CCG3PA Power Bank project.

     

    Table 2. List of Macros for Disabling Features in CCG3PA Power Bank Project

     

    Feature/Functionality

    Macro Name

    File Name

    Type-A port

    CCG_TYPE_A_PORT_ENABLE

    stack_params.h

    Battery Charging

    BATTERY_CHARGING_ENABLE

    Protection (OCP, OVP, UVP)

    VBUS_OCP_ENABLE, VBUS_OVP_ENABLE and VBUS_UVP_ENABLE

           config.h

    FW Update

    UFP_ALT_MODE_SUPP