- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FW customize CCG3PA Car Charger (CLA) example PSoC creator 4.2
- CY4532 EVK Board
- Main board jumper j2/3/4/5 short 1 2 j6 short 2 3
- Power board j14 short
- Miniprog3 connected
- CY4532 connect with type to BCR CY4533
- Enable SWD interface in system tab
Step 1: Preparation FW customize CCG3PA Car Charger (CLA) example PSoC creator 4.2
- Disable in stack_params.h define CCG_TYPE_A_PORT_ENABLE (0u)
- disable page type a
- enable SWD interface in system tab
Operation Debug mode: add breakpoint in these three case in app event handler
APP_EVT_TYPEC_ATTACH
APP_EVT_DISCONNECT
APP_EVT_PD_CONTRACT_NEGOTIATION_COMPLETE
When check above cases: plugin/plug out USB type c cable the debugger response correctly and stops and these points
note1 : after programming and debugging CCG3PA Car Charger (CLA) example it failed read device config via ez pd configuration utility there for I need programing via PSoC programmer CYPD3171-24LQXQ_cla_3_4_0_2274_0_0_0_pa.hex from C:\Program Files (x86)\Cypress\EZ-PD CCGx Power SDK\CCGx\Firmware\binaries\CYPD3171-24LQXQ_cla
This issue was discuses by me in community but never get any response
Attached original_cla.c represent config.c configuration table
Q1 :product type in the begging "type unknown" I change it to UFP-AMA it is necessary if yes what is the meaning ?
Step 2: Minimum FW customize CCG3PA Car Charger (CLA) example PSoC creator 4.2
EZ PD configuration utility
- edit 5 PDOs as follow fix type 5,9,12,15,20 volt attached screen shoot
- generate ams_cla.c file which will be copy to config.c file
Then operate again Operation Debug mode: add breakpoint in these three case in app event handler
APP_EVT_TYPEC_ATTACH
APP_EVT_DISCONNECT
APP_EVT_PD_CONTRACT_NEGOTIATION_COMPLETE recognize each change on BCR SW switch ( 1-5 ) change voltage request
Step 3: elaborate FW customize CCG3PA Car Charger (CLA) example PSoC creator 4.2
- Selector device CYPD3171
- Add SW_Tx_UART pin p1.2 ( TP13 )
- connect LED on pin p2.3 see attached image ( j8 header ) toggle 1 sec
#define APP_FW_LED_ENABLE (1u)
#define FW_LED_GPIO_PORT_PIN (GPIO_PORT_2_PIN_3)
- add debug print via SW_Tx_UART in app.c
APP_EVT_TYPEC_ATTACH
APP_EVT_DISCONNECT
APP_EVT_PD_CONTRACT_NEGOTIATION_COMPLETE
- during run time when j6 short 1 2 all work ( LED toggle , UART print to TeraTerm see attached files )
- during debug session LED and UART does not work also by adding break point on above cases in app.c no response after connect or disconnect type c cable
Step 4: Minimum FW customize CCG3PA Car Charger (CLA) example PSoC creator 4.2
- Device selector -> CYPD3175 ( custom design )
The device enter to Deep Sleep state
/*******************************************************************************
* Function Name: CySysPmDeepSleep
****************************************************************************//**
*
* Puts the part into the Deep Sleep state. If the firmware attempts to enter
* this mode before the system is ready (that is, when
* PWR_CONTROL.LPM_READY = 0), then the device will go into the Sleep mode
* instead and automatically enter the originally intended mode when the
* holdoff expires.
*
* The wakeup occurs when an interrupt is received from a DeepSleep or
* Hibernate peripheral. For more details, see a corresponding
* peripheral's datasheet.
*
*******************************************************************************/
Q2: corresponding peripheral's datasheet could you provide it?
Q3 : CCG3PA Car Charger (CLA) example could run on CYPD3175 only by changing device "device selector " in PSoC 4.2 ?
Q4 : it is possible to replace CYPD3171 to CYPD3175 on EVK CY4532 ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content