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

Debugging properly but not running onboard.

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.

Parents
  • Hello Andrew,

    Below is my code which gives no error.

    #include "lpc21xx.h"
    //#include "header_test.h"

    int main()
    { register int i; PINSEL2 = 0x00000000; IODIR1 = 0x00FF0000; IOSET1 = 0x00010000; //IO1CLR = 0x00010000; while(1) { for(i=0;i<=6;i++) { IO1SET = IO1SET << 1; IO1CLR = IO1CLR << 1; } }
    }

    Hardware details can be found at,
    www.oasistechsol.com/voyager_board.aspx

    Also please tell me why you wrote, only i can debug it!
    Did i made some mistake?

Reply
  • Hello Andrew,

    Below is my code which gives no error.

    #include "lpc21xx.h"
    //#include "header_test.h"

    int main()
    { register int i; PINSEL2 = 0x00000000; IODIR1 = 0x00FF0000; IOSET1 = 0x00010000; //IO1CLR = 0x00010000; while(1) { for(i=0;i<=6;i++) { IO1SET = IO1SET << 1; IO1CLR = IO1CLR << 1; } }
    }

    Hardware details can be found at,
    www.oasistechsol.com/voyager_board.aspx

    Also please tell me why you wrote, only i can debug it!
    Did i made some mistake?

Children