CY4532 EZ-PD CCGx Power SDK Blink USER LED ?

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
Geromino
Level 5
Level 5
50 replies posted 25 replies posted 10 replies posted

the project is noboot  project in order to debug

i want  to blink led  so  i so in config.h APP_FW_LED_ENABLE   in scheme i didnt see any led except LED1 power led

what is the meaning of this APP_FW_LED_ENABLE     what pin is toggle ?

do i need connect led to the INTERFACE CONNECTOR ? 

pastedImage_2.png

pastedImage_3.png

0 Likes
1 Solution
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi,

APP_FW_LED_ENABLE is a marco for blinking LED to indicate whether the firmware is running.

As you can see, APP_FW_LED_ENABLE is not enabled in the firmware by default. You should have a customed board which use a GPIO to drive a LED to use this function. Then you can enable APP_FW_LED_ENABLE and set FW_LED_GPIO_PORT_PIN to the correct pin. As I have said, CY4532 do not have this feature.

Regards,

Eddie

View solution in original post

0 Likes
3 Replies
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi,

Please check the pin assignment in PSoC Creator and schematic of the CY4532.

CY4532 do not have this function.

Regards,
Eddie

0 Likes

i will rephrase the question

setup :

HW :  CY4532 EZ-PD CCG3PA EVL  ( MAIN+POWER borads) - link https://www.cypress.com/documentation/development-kitsboards/cy4532-ez-pd-ccg3pa-evaluation-kit

FW : .EZ-PD CCGx Power Software Development Kit - link https://www.cypress.com/documentation/software-and-drivers/ez-pd-ccgx-power-software-development-kit

the sdk have  project example  i choose C:\Program Files (x86)\Cypress\EZ-PD CCGx Power SDK\CCGx\Firmware\projects\CYPD3171-24LQXQ_pb\CYPD3171-24LQXQ_pb.cydsn project

config.h include define #define APP_FW_LED_ENABLE 

main.c the function led_timer_cb  toggle FW_LED_GPIO_PORT_PIN 

pastedImage_6.png

in the image  you see that GPIO_PORT_2_PIN_0   define as DIR_CTRL_C

pastedImage_7.png

in scheme of  main  and power board   the only LED  is LED1  which jumper J14 control   

so what is the meaning of this option APP_FW_LED_ENABLE   in config.h  file  ?

0 Likes
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi,

APP_FW_LED_ENABLE is a marco for blinking LED to indicate whether the firmware is running.

As you can see, APP_FW_LED_ENABLE is not enabled in the firmware by default. You should have a customed board which use a GPIO to drive a LED to use this function. Then you can enable APP_FW_LED_ENABLE and set FW_LED_GPIO_PORT_PIN to the correct pin. As I have said, CY4532 do not have this feature.

Regards,

Eddie

0 Likes