patchAVR Downloader/UploaDEr - Patches: patch #5655, osx intel avrispmkII hack


You are not allowed to post comments on this tracker with your current authentication level.

patch #5655: osx intel avrispmkII hack

Submitter:  None
Submitted:  Tue 02 Jan 2007 12:47:27 AM UTC
Category:  None Priority:  7 - High
Status:  None Privacy:  Public
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Open

Mon 29 Oct 2007 10:55:21 PM UTC, comment #1: 

This appears to be the same as mentioned in bug #19882.

What is not quite clear to me is why this only appears to
happen on some hardware/OS combinations but not everywhere.

Note that the JTAG ICE mkII is explicitly taken out of
consideration there since it uses its very own sign-on
sequence (way before that point), and has the AVRISP mkII
commands only wrapped up inside its own communication.

I'd really like to see some more analysis for the actual cause
of this problem before adding a hack that simply disables the
sign-on command.

Joerg Wunsch <joerg_wunsch>
Group administrator
Tue 02 Jan 2007 12:47:27 AM UTC, original submission:  

The last rev of osx-avr had avrdude5.2 bundled with it. I tested it with the mkII on the ppc and on the stk on intel. I got compalints about the mkII hanging for several minutes on the intel before programming. I dug around and found several threads where this was supposed to have been resolved with 5.2 and some which referenced the clock on the programmer. I was hoping that this would be resoved with the new version so I put it off.

Today I was finally able to sit down with this. When I tested the old version I was able to program fine on the ppc but the intel mac hung for several minutes before programming the chip. Then I ran up the new code and found the same thing. I ran across a few people who just hacked around it.

I notice that with the new version the avr-dragon seems to have the same porblem so I just copied the hack for the avrispmkII and compiled it for the intel macs.

Attached it the hack.

( As the origional code works fine on osx-ppc I think this patch only applies if building on osx for intel. )

I should have a binary rev of this out by the end of the year (in an hour or so)
Very Happy

Happy New Year.


* stk500v2.c.orig Wed Dec 20 15:43:34 2006
--- stk500v2.c Sun Dec 31 13:09:39 2006
* 485,490 **
--- 485,492 ----

if (pgmtype == PGMTYPE_JTAGICE_MKII)
return 0;
+ if (pgmtype == PGMTYPE_AVRISP_MKII)
+ return 0;


* Sun Dec 31 16:31:19 2006
--- Sun Dec 31 16:10:22 2006
* 24,30 **
# Process this file with autoconf to produce a configure script.

! AC_INIT(avrdude, 5.3.1,

--- 24,30 ----
# Process this file with autoconf to produce a configure script.

! AC_INIT(avrdude, 5.3.1.osxintelhack,




(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #11662:  osxintelhack.diff added by None (790B - application/octet-stream - osx intel hack. )


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Posted a comment)

    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.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-01-02 None Attached File- Added osxintelhack.diff, #11662

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code