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

controller reset in uart communication

Hello all,
I am doing one project in microcontroller is LPC2378.
I am doing serial communication of LPC2378 with PC,
I am sending some packet to PC and software running on PC sends me acknowledge
but when PC is not sending acknowledge I and sending packet again.
This way I am doing retry of 3 times.
after doing 3 times sending if I dont get reply from PC, my microcontroller gets reset.
I dont know why. Actually it should stop there itself in idle state but it gets reset.
this I can see because I have added comment of POWERON in main() beforte while(1) loop.
can you guide why is it so?
I am doing serial transmission without using interrupt
serial reception is using interrupt

Thanks and regard

Parents
  • Maybe you have enabled the watchdog, and the watchdog time runs out of time.

    Maybe you have forgotten an infinite loop at the end of main() so your program exits out into the "void".

    Maybe you have too small stack, so when you later try to return from a call chain the program fails when trying to pop garbage data from the stack.

    How can you expect someone to pinpoint your potential errors when you don't invest enough time to actually describe your code?

Reply
  • Maybe you have enabled the watchdog, and the watchdog time runs out of time.

    Maybe you have forgotten an infinite loop at the end of main() so your program exits out into the "void".

    Maybe you have too small stack, so when you later try to return from a call chain the program fails when trying to pop garbage data from the stack.

    How can you expect someone to pinpoint your potential errors when you don't invest enough time to actually describe your code?

Children
No data