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 issue

I am writing a code for lpc2148. There is no error in my code, neither is keil showing any. But when i press the debugging button, the debugging screen opens but the keil starts execution even without pressing the start button and also no output is shown on peripherals. I also tried step by step debugging but in vain. And not even proteus is simulating the code (not even direction is coming on the arm).
Please help

Parents
  • On Simulator only. And yes i've checked both the options are ticked. Even tried with unchecked 'run to main()'(here my IDE doesn't start debugging without my pressing the start button, but still no output). And i am using nxp's lpc2148 in IDE.
    my code:
    #include<lpc214x.h>
    void delay(int time)
    { int i,j;
    for(i=0;i<time;i++)
    for(j=0;j<time;j++);
    } int main()
    { IO0DIR|=0x0000000f;
    while(1)
    { IO0SET|=0x0000000f;
    delay(1000);
    IO0CLR|=0x0000000f;
    delay(1000);
    }}

    even this code ain't getting debugged.

Reply
  • On Simulator only. And yes i've checked both the options are ticked. Even tried with unchecked 'run to main()'(here my IDE doesn't start debugging without my pressing the start button, but still no output). And i am using nxp's lpc2148 in IDE.
    my code:
    #include<lpc214x.h>
    void delay(int time)
    { int i,j;
    for(i=0;i<time;i++)
    for(j=0;j<time;j++);
    } int main()
    { IO0DIR|=0x0000000f;
    while(1)
    { IO0SET|=0x0000000f;
    delay(1000);
    IO0CLR|=0x0000000f;
    delay(1000);
    }}

    even this code ain't getting debugged.

Children
No data