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.
And you have then done what debugging to figure out if you have a hardware issue, or if any of your assumptions in the code are incorrect for the actual hardware?
We haven't seen the hardware.
We haven't' seen the source code.
Exactly how can we then 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.