Pages: [1]   Go Down
Author Topic: Watchdog timer reseting arduino before I can upload another sketch  (Read 1093 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, I uploaded a sketch with wtd and this put my arduino mega 2560 in a fast reset loop. smiley-sad
So, I can't upload another sketch.

Is there any way to erase memory of Arduino MEGA 2560?
Or a way to upload another sketch?
Or disable wdt hardware...

Thanks
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Which bootloader have you installed ?
the bootloader shipped with the arduino IDE for the MEGA 2560 is not watchdog compatible. If you want to use the wdt you have to install an alternate bootloader with a programmer

« Last Edit: October 04, 2012, 12:08:55 pm by fs007 » Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Press & Hold Reset while you start the sketch download.
Release it when you see the "Compiled xxx of 128000" bytes message.
May have to try a few times to get the right time.

If you can't make that work, re-loading bootloader using an ISP programmer will be needed.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
re-loading bootloader
when he "reloads" the same bootloader, he will probably have he same problem with wdt.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Wow dude, that`s work... I held the button and released when I saw that message. Thank you very much.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Cool.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: