Hello,
i will use the watchdog on my arduino mega 2560 R3. I use the Atmega_Board_Programmer sketch on Nick Gammons homepage to programm your new bootloader on my mega. After this i test the watchdog with a small sketch. All works fine.
Now i use the watchdog in my very large sketch (webserver). It works also fine, until the watchdog is (intentionally) startet (after 8 seconds). Now the programm is hanging (on the bootloader?), no reset...
question: Use this bootloader the parameter -DWATCHDOG_MODS ?
Is here a other trick?
After this i would test a other bootloader. Also i use the MUSHclient to convert the hex-file into the *.h
But i have some errors:
Welcome to MUSHclient version 4.84!
Written by Nick Gammon.
Compiled: Sep 30 2012.
Using: Lua 5.1.4, PCRE 8.31, PNG 1.5.12, SQLite3 3.7.14, Zlib 1.2.5
For information and assistance about MUSHclient visit our forum at:
http://www.gammon.com.au/forum/
Can you trust your plugins? See: Gammon Forum : MUSHclient : General : More relaxed Lua sandbox / security tips
// File = stk500boot_v2_mega2560.hex
// Loader start: 3E000, length: 8192
Address 40000 out of expected range.
Address 40010 out of expected range.
Address 40020 out of expected range.
Address 40030 out of expected range.
Address 40040 out of expected range.
Address 40050 out of expected range.
Address 40060 out of expected range.
Address 40070 out of expected range.
Address 40080 out of expected range.
Address 40090 out of expected range.
Address 400A0 out of expected range.
Address 400B0 out of expected range.
Address 400C0 out of expected range.
Address 400D0 out of expected range.
Address 400E0 out of expected range.
Address 400F0 out of expected range.
Address 40100 out of expected range.
// MD5 sum = 36 23 EA B9 F9 CC B9 19 2F 62 A6 C8 18 68 E3 A6
byte PROGMEM stk500boot_v2_mega2560_hex [] = {
0x0D, 0x94, 0xDF, 0xF2, 0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3,
0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3,
0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3,
0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3,
0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3, 0x0D, 0x94, 0x08, 0xF3,
...
0xFC, 0xCF, 0x80, 0x91, 0xC0, 0x00, 0x80, 0x64, 0x80, 0x93, 0xC0, 0x00, 0x8A, 0xE0, 0x80, 0x93,
0xC6, 0x00, 0x80, 0x91, 0xC0, 0x00, 0x86, 0xFF, 0xFC, 0xCF, 0x80, 0x91, 0xC0, 0x00, 0x80, 0x64,
0x80, 0x93, 0xC0, 0x00, 0x80, 0xE0, 0x90, 0xE0, 0x20, 0xED, 0x37, 0xE0, 0xF9, 0x01, 0x31, 0x97,
}; // end of stk500boot_v2_mega2560_hex
Please help me and sorry for my bad english, i'm from germany...
many thanks, paulinchen