AVR Downloader/UploaDEr - Bugs: bug #46005, arduino auto-reset invocation is...
You are not allowed to post comments on this tracker with your current authentication level.
bug #46005: arduino auto-reset invocation is outside of retry loop
Submitter: | None | ||
Submitted: | Sun 20 Sep 2015 08:49:24 AM UTC | ||
Category: | None | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | None |
Status: | Need Info | Privacy: | Public |
Assigned to: | None | Originator Name: | Bill Wesfield |
Originator Email: | -email is unavailable- | Open/Closed: | Open |
Release: | None | Programmer hardware: | |
Device type: |
Tue 12 Apr 2016 01:05:33 PM UTC, comment #2: |
Michal Suchanek <hramrach1> |
Sat 31 Oct 2015 08:27:52 PM UTC, comment #1: Sorry, it is not quite clear to me which part of the code
|
Joerg Wunsch <joerg_wunsch> |
Sun 20 Sep 2015 08:49:24 AM UTC, original submission:
The new avrdude will attempt the upload several times, but apparently the arduino-specific code to toggle DTR (and perform auto-reset) is outside of the retry loop, which means that the board is not reset before each try. On Optiboot-based boards like Uno, which have a one-second bootloader timeout, this will mean that the board has long-since run the application.
|
Anonymous |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2016-04-12 | hramrach1 | Attached File | - | Added invert_dtr.patch, #36907 | |
Carbon-Copy | - | Added hramrach1 | |||
2015-10-31 | joerg_wunsch | Status | None | Need Info |
Powered by Savane 3.13-758e.
Corresponding source code
Hello,
I tried to fix the DTR handling for Arduino Pro Mini which requires that the DTR is pulled and released before doing the programming. For UNO holding the DTR whole time works but not for Pro Mini.
Did not actually retry with UNO to test if holding the DTR is required or there is a circuit that just cuts it after a moment.
However, the patch which tries both ways in turn shows how the DTR handling is not part of the loop.
(file #36907)