Content originally posted in LPCWare by Algorithm on Wed Aug 12 06:08:19 MST 2015
Hullo guys, I'm new to the LPC4357 , I'm using JLINK and KEIL .
Im just trying to turn on an LED with the following code :
.
.
void main ()
{
scu_pinmux(9,3,MD_PDN,FUNC0);
GPIO_SetDir(4,(1<<15),1);
GPIO_SetValue(4,(1<<15));
while(1);
}
the problem is that after programming the flash, the code does not work and all LEDs are turned on but very dimmed . When I enter debugging mode , everything works fine . All LEDs are turned off and only the LED i chose is on .
What could the problem be ??