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

Different behaviour in debugging and stand-alone

Hello!
I've got the problem that the same code works different in debugging mode and in "normal" stand-alone mode.
In debug mode - with or without any breakpoints - all works nice, but when I disconnect and run the program stand alone it doesn't work.
I use the F020 with µVision2 V2.37 and C51 V7.05.
Thanks for any hint!

Astrid

Parents
  • There is nothing in your code that prevents the program from exiting the main function.

    Perhaps that is the cause of the second "reset".

    Typically, the main C function for embedded programs is implemented as follows:

    void main (void)
    {
    whilw (1)
      {
      /*** do something ***/
      }
    }

    Jon

Reply
  • There is nothing in your code that prevents the program from exiting the main function.

    Perhaps that is the cause of the second "reset".

    Typically, the main C function for embedded programs is implemented as follows:

    void main (void)
    {
    whilw (1)
      {
      /*** do something ***/
      }
    }

    Jon

Children
No data