I am currently experiencing a problem in running my program using the ATmega644P.
What i want to do is to run a program (which is successfully loaded to the MCU through JTAG) once and stop the execution, after the whole code is completed. However, what happens now is that after successfully running the whole code, the MCU enters sleep mode, leaves the sleep mode, resets, and runs the whole program again (which I do not want to happen).
What then can I do? How do I prevent the MCU from reseting and running the whole program all over again.
Thank you very much in advance!