This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

functionless source code

good afternoon,
i'm using a lpc2148 with uvision keil. Now I built my own board. When I tried to connect through jtag it was available only at 50kHz and lower frequency, but the erasing a loading seems to be correct. I use only simple tested code:

#include<stdio.h>
#include<LPC214x.h>

int main(void)
{ IODIR1 = 0x000F0000; IODIR0 = 0x000F0000;

IOSET1 = 0x000F0000; IOSET0 = 0x000F0000;
}

When I check if there is a logical one at P0.16-19 and P1.16-19. There was same signal as before. The programming was without any effect.

What could be wrong?