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
  • hey sam san.

    you dont get good answers from some people here. i asked question once and they all said Please read the manual and your stupid and ask a proper question. idiots.

    you code IO1CLR = IO1CLR << 1; but you cant read IO1CLR. sure dont know about IO1SET.

    and when your loop is finished and you start it again IO1SET is not restarted.

    why not start this?

    while(1)
    {
      unsigned long bits;
    
      bits = 0x00010000;
    
      for(i=0;i<=6;i++)
      {
        IO1CLR = 0x00FF0000
        IO1SET = bits;
        bits <<= 1;
       }
    }
    

Reply
  • hey sam san.

    you dont get good answers from some people here. i asked question once and they all said Please read the manual and your stupid and ask a proper question. idiots.

    you code IO1CLR = IO1CLR << 1; but you cant read IO1CLR. sure dont know about IO1SET.

    and when your loop is finished and you start it again IO1SET is not restarted.

    why not start this?

    while(1)
    {
      unsigned long bits;
    
      bits = 0x00010000;
    
      for(i=0;i<=6;i++)
      {
        IO1CLR = 0x00FF0000
        IO1SET = bits;
        bits <<= 1;
       }
    }
    

Children
  • I'm not sure if the debug has been done in a software simulator or in the actual board but it is the only case to see the result of this code since there is no delay between the different led states.

    Unless you uses steps in a debugger to be able to pause and view each step result you will see nothing because the loop is executed with a very high speed.

    Alex