Reset in software

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is there a simple way of making sure the program restarts from the very beginning in code. I thought of just letting the WDT timeout which seems to work but is that sensible or can you just do something like a 'goto start'?
Thanks
Mark

markah

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

markah wrote:
Is there a simple way of making sure the program restarts from the very beginning in code. I thought of just letting the WDT timeout which seems to work but is that sensible or can you just do something like a 'goto start'?

The watchdog timeout is the best way of doing this. With other approaches, you'll need lots of code to ensure all of the hardware peripherals are in their reset state.

- S

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Many thanks for your help :)

markah