- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Brock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
My schematic
Pin List (for CY8CKIT-059)
main.c
===============================
#include "project.h"
int main(void)
{
int status = 0 ;
CyGlobalIntEnable; /* Enable global interrupts. */
for(;;)
{
LED_Write(status) ;
status = !status ;
CyDelay(500) ; /* 0.5 sec */
}
}
===============================
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?).
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello,
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
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.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
[EDIT]
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Brock