Hello, I am using Uv4 for LPC2148, my LED blinking program works fine in debug mode but does not runs on the board. I am using Flash magic to flash the program. Pls help.
This is the exact code which works fine without any problem. On the hardware LED's are mounted from pin P1.16 to P1.23.
#include "lpc21xx.h" //#include "header_test.h"
int main() { register int i; PINSEL2 = 0x00000000; IODIR1 = 0x00FF0000; IOSET1 = 0x00010000; //IO1CLR = 0x00010000; for(i=0;i<=6;i++) { IOSET1 = IO1SET << 1; IOCLR1 = IO1CLR << 1; }
}
For the hardware details of board please visit www.oasistechsol.com/voyager_board.aspx
This is the exact code which works fine without any problem
I'm missing an infinite loop here.