Replies: 3 comments
-
The best way to do what you want is not with the watchdog timer. There is a special ATmega function to do what you require. Find the datasheet relevant for the device you're using, and search for "Boot Loader Support – Read-While-Write Self-Programming". There you will find information on the Fuse which sets the Reset Vector, which is used for jumping to the bootloader from an app. Depending on where your bootloader is located (which is determined by its size), the bootloader address could be |
Beta Was this translation helpful? Give feedback.
-
Still there is a problem if not doing system reset as some registers have old values. The cleanest is to do it with Watchdog System Reset. Would it be possible to do it like:
|
Beta Was this translation helpful? Give feedback.
-
I don't think you need to stop the scheduler. If you're doing a reset, then you're free from that responsibility. There is an AVR library |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
What would be the easieast way to reset MCU (Watchdog reset)?
I would need this so I can jump to bootloader from app.
Regards,
A
Beta Was this translation helpful? Give feedback.
All reactions