Cannot make a LED work

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable
        I am starting to use the device CY8C20666A-24LTXI with PSoC Designer 5.0.   
   
I can program it using miniprog3, but I can't succeed to light a LED (using LED user module). Is there a problem in my code? Is there a common mistake I could have done?   
   
You can look at my project too.   
   
Thanks a lot.   
   
Gabriel   
   
//----------------------------------------------------------------------------   
// C main line   
//----------------------------------------------------------------------------   
   
#include        // part specific constants and macros    
#include "PSoCAPI.h" // PSoC API definitions for all User Modules    
#include "PSoCGPioInt.h"    
    
    
void main(void)    
{    
// Enable global interrupts    
M8C_EnableGInt;    
    
//LED initialisation    
LED_0_Start();    
LED_1_Start();    
LED_0_On();    
LED_1_On();    
    
// Main operating loop    
while (1)    
{    
LED_0_On();    
LED_1_On();    
}    
    
}    
   
0 Likes
1 Reply
MR_41
Employee
Employee
First like received
        I am not able to open the attached project. Check if the pin configured for the LED is StdCPU / Strong drive mode.   
0 Likes