Watchdog reset vector


I am writing a program for the orangutan X2 in Atmel studio 6.0. One of the features of it relies on the watchdog timer. I have already set the interval and have successfully reset the timer (so that it doesn’t time out), but I noticed that the reset vector is hard coded to the beginning of the program. Normally, there is a fusebit to change this, but I was wondering if there was a software variable that would allow me to change where the reset vector goes.

Any ideas?

Hello. You can check the datasheet of the ATmega1284P, but as far as I know the watchdog reset always brings the program to the same location as a normal reset. You can determine the cause of the reset by checking the bits in the MCUSR register. The bootloader for the Arduino Leonardo has some code that checks MCUSR.