Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug #41637] avrdude timeout should be specifiable #332

Closed
avrs-admin opened this issue Dec 10, 2021 · 5 comments
Closed

[bug #41637] avrdude timeout should be specifiable #332

avrs-admin opened this issue Dec 10, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@avrs-admin
Copy link

laci@monda.hu
Wed 19 Feb 2014 10:19:05 AM UTC

Currently avrdude timeouts after about 3 seconds when not being able to program the AVR.  I'd like to change this value to about 1 second (with a command line option, without recompiling avrdude).

The reason is that I'm programming an AVR through another AVR that can act like an USB to Serial bridge.  I've written a script to try to program the remote AVR with avrdude and if it doesn't succeed then kick the AVR into bootloader mode.  Being able to specify the timeout would make my script significantly faster.

This issue was migrated from https://savannah.nongnu.org/bugs/?41637

@mcuee
Copy link
Collaborator

mcuee commented Jun 2, 2022

This sounds like a niche use case but may still be kind of useful.

@MCUdude
Copy link
Collaborator

MCUdude commented Jul 29, 2022

Currently avrdude timeouts after about 3 seconds when not being able to program the AVR. I'd like to change this value to about 1 second (with a command line option, without recompiling avrdude).

OP didn't specify which programmer he or she is using? My AVRISPmkII exits immedeatly if no target is detected. However, -c arduino takes several seconds before throwing avrdude: stk500_recv(): programmer is not responding. I'll assume OP is using -c arduino?

@MCUdude
Copy link
Collaborator

MCUdude commented Jul 29, 2022

Currently, there's no way to interactively change the serial timeout delay specified in ser_posix.c and ser_win32.c.

long serial_recv_timeout = 5000; /* ms */

long serial_recv_timeout = 5000; /* ms */

@stefanrueger
Copy link
Collaborator

I'll assume OP is using -c arduino?

If that is the case, then a workaround would be to use c urclock. This programmer exits much faster than -c arduino. Seeing that the issue is from 2014, and was underspecified then with not specific PR/solution, I suggest closing it.

@mcuee
Copy link
Collaborator

mcuee commented Jun 12, 2023

Okay, I will close this now.

@mcuee mcuee closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants