Pages: [1]   Go Down
Author Topic: long delay() values = programmer is not responding  (Read 1275 times)
0 Members and 1 Guest are viewing this topic.
Portland area, Oregon, USA
Offline Offline
Newbie
*
Karma: 2
Posts: 15
Was using PICBasic, now Arduino
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My Arduino Uno was working fine.  Now every time I try to upload a sketch, I receive the error "programmer is not responding".

Judging from the similar problems others have had when their sketches had too much serial I/O in the loop(), I think my problem is that my loop() contains too much delay (about 2 seconds).  I think the loader tries to talk to the board, but gives up in less than 2 seconds.

So to be happy in the future, I think I need to make sure the loop() time is always short - for example, under 1 second.

Can anyone with more experience with the Arduino Uno say whether this is true (that a loop() that takes more than a few seconds will cause "programmer is not responding" errors)?

Thanks.
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 64
Posts: 6055
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have observed excessive serial will cause "programmer not responding."  However, I have not seen any issues in using delay().
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 331
Posts: 16564
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No any delay() should have no bearing at all. Upon a reset the bootloader is activated and that is what talks to the IDE for new uploads. The user code has not even  started at that stage of the process. It would seem it has to be either a auto-reset issue, or a 8u2 usb issue or the new bootloader issue. I don't have a Uno so I can't really talk from experiance.

Lefty
« Last Edit: January 17, 2011, 02:47:20 am by retrolefty » Logged

Portland area, Oregon, USA
Offline Offline
Newbie
*
Karma: 2
Posts: 15
Was using PICBasic, now Arduino
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the tips.  I'm beginning to believe I've fried part of the hardware.  See http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1295240179/0#0 for my sob-story there.
Logged

Pages: [1]   Go Up
Jump to: