Avrdude 5.3, OSX, Intel, and the AvrispmkII (patch included)

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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.

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

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

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I know I could have just as easily have said ( (gmtype == PGMTYPE_JTAGICE_MKII) || gmtype == PGMTYPE_JTAGICE_MKII) ) but I really dont want to develope this code just make it work and develope other code.

:)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please submit that as a patch to the AVRDUDE project.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dunno if I got it right but it has been sub mitted.

Looking forward to testing the dragon out this week.

DdDD

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ddd7,

Thanks for the patch. I have been living with this issue for the past month. I'm working on a dual G5 so the problem may not be limited to intel. Also on my machine the timeout was about 30 seconds, far less than two minutes.

Jesse

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Jesse,
Have you tried the binary from my last release? I was going to leave the ppc alone since my g4 works fine (thought I had to compiile using gcc-3 for this to work across my test ppc platforms). I am currenly only able to test on single g3, g4, and intel and unfortunately as of last month I only have tiger. If you download the novermber-ppc release and test avrdude package (you dont have to install the meta package). That would be great. I am posting the intel release now and will build the ppc tomorrow so let me know if I should apply the patch across the board.

Don.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Don,
I have not been using your binary release as I need mega2560 support and have been building my own toolchain. I could not find your November release but just tried oct06-ppc and can report a 12 second delay before programming starts, I was a little off on my previous estimate. With the patch installed and compiled with gcc 4.0.1 there is a delay of about 2 seconds. A 12 second delay is annoying in my build, burn and crash development cycle. If the patch is "safe" I would recommend adding it to the ppc release.

Jesse

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks,
I will test and make sure that it doesnt break anything and apply it across the board.

DdDD