Pin List (for CY8CKIT-059)
int status = 0 ;
CyGlobalIntEnable; /* Enable global interrupts. */
status = !status ;
CyDelay(500) ; /* 0.5 sec */
I just tested your configuration. Instead of your PSoC5 kit-059 (which you probably use) I took a PSoC4-M kit-043 which worked as expected.
Try using a different pin and a scope to verify working (pin toasted?).
thank you for replying,
I have same schematic,same code ,and same pin configuration but still facing problem.
Even pin and led not toasted or burnt.any other option to configure LED in 'configure LED' settings like mark or unmask HW connection?
Wow, it's getting tough!
Are you using a Cypress EVB, like CY8CKIT-059 or using an original board?
Since last night, I've been thinking how you (or we) can manage not to light LED with the code.
One thing came to my mind is the direction of LED,
in case you are using original board
or connecting an external LED to the board.
If you use Active High Logic, LED must be connected something like
and if you use Active Low Logic, LED must be connected something like
Would you double check the direction of the LED?
And also I think that connecting VDD (3.0~5.0) V and GND to both side of LED
to check if the LED is alive might be a good check, too.
Tested the above code on a CY8CKIT-050 using LED4 <6.3> and no problems here.
Maybe something in your configuration is causing you problems. Have you confirmed that your code is actually running with the debugger?
The "HW Connection" option for a pin should not be checked unless you are driving the pin from a PSoC component such as a PWM or a Control Register.
Everything mentioned above by Moto in the above post is probably more likely than an issue with the code running. We populate a good amount our PCBs in-house and every once in a while we'll come across an LED placed in reverse, so it's definitely a mistake that can sneak by.
I just ran the project on a PSoC5 kit-059 with no changes and it works fine so there must be some problem with your board or the device is not programming correctly.