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

 
 

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

patch #5655: osx intel avrispmkII hack

Submitted by:  None
Submitted on:  Tue 02 Jan 2007 12:47:27 AM UTC  
 
Category: NonePriority: 7 - High
Status: NonePrivacy: Public
Assigned to: NoneOriginator Email: -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>
Project 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.

http://www.evilmadscientist.com/article.php/avrmac
http://article.gmane.org/gmane.comp.hardware.avr.avrdude.devel/958

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.

Don.

      • 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;

retry:
tries++;

      • configure.ac.orig Sun Dec 31 16:31:19 2006

--- configure.ac Sun Dec 31 16:10:22 2006
***************

      • 24,30 ****

# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
! AC_INIT(avrdude, 5.3.1, avrdude-dev@nongnu.org)

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

AC_PREREQ(2.57)
! AC_INIT(avrdude, 5.3.1.osxintelhack, avrdude-dev@nongnu.org)

AC_CANONICAL_BUILD
AC_CANONICAL_HOST

Anonymous

 

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
  • -unavailable- added by joerg_wunsch (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 02 Jan 2007 12:47:27 AM UTCNoneAttached File-=>Added osxintelhack.diff, #11662

    Back to the top


    Powered by Savane 3.1-cleanup