Go Down

Topic: Timeout() issue with WinAvr/Avrdude on 2560 .HEX upload (Read 2 times) previous topic - next topic

Mozart

I have the verbose compile settings turned on and can see what is happening when the compiler is executed within the IDE, however, there are no messages when the program is uploaded to the board (i.e. using avrdude).  In fact the last message that I can see prior to the program being uploaded within the IDE is:

Binary sketch size: 1602 bytes (of a 258048 byte maximum)

What do I need to set and where do I do the settings to get a verbose IDE/avrdude upload?

Thanks,
-Ken Q.

James C4S

Clearly, debugging messages aren't turned on if that is the last message you see.

Pre-1.0 hold down "shift" when you click upload or verify.  Post, you can enable debugging in the preferences.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Mozart

Agreed, debug was not turned on for the upload, however, the verbose settings were turned on for compilation.  The last line is accurate for a clean compile and that is what I posted.  However, I did not have verbose settings turned on for the upload and I do now (I didn't see that option when I was last in preferences).  Anyway, I did go into preferences and set that switch so I could get a verbose listing on upload.  This time during upload there is so much information scrolling by that I am unable to catch the switches used by the IDE.  Evidently a successful upload fills the multi-line edit buffer at the bottom of the IDE.

Is there a way to pause the scrolling as the program is being uploaded so I can see the switches used. I am using Arduino 1.0 if that helps.

Thanks,
-Ken Q.

James C4S

Disconnect your board once the upload begins, so that the upload fails (and doesn't fill the window's buffer.)
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Mozart

James - Thanks I hadn't thought to unplug while doing the upload and that worked with copying what the IDE is using for its makefile switches.  Here is a copy of the IDE makefile and keep in mind that this works within the IDE just fine:

C:\Arduino\arduino-1.0\hardware/tools/avr/bin/avrdude -CC:\Arduino\arduino-1.0\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P\\.\COM4 -b115200 -D -Uflash:w:C:\DOCUME~1\Mozart\LOCALS~1\Temp\build5991853816765248887.tmp\Blink.cpp.hex:i

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Arduino\arduino-1.0\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM4
         Using Programmer              : stk500v2
         Overriding Baud Rate          : 115200

=======>

Here is a copy of my CMD session:

C:\Arduino\arduino-1.0\hardware\tools\avr\bin>avrdude -CC:\Arduino\arduino-1.0\h
ardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P\\.\COM
4 -b115200 -D -Uflash:w:C:\DOCUME~1\Mozart\LOCALS~1\Temp\build599185381676524888
7.tmp\Blink.cpp.hex:i

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Arduino\arduino-1.0\hardware/tool
s/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM4
         Using Programmer              : stk500v2
         Overriding Baud Rate          : 115200
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]

=====>

I just copied what was captured and pasted it.  The results are still the same in terms of the Timeout error.  Any other suggestion?

Thanks,
-Ken Q.

Go Up