bugAVR Downloader/UploaDEr - Bugs: bug #26312, OS X Intel AVR-Dragon...

 
 

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

bug #26312: OS X Intel AVR-Dragon "jtagmkII_getsync(): sign-on command: status -1" error

Submitted by:  Andreas Fertig <fertigtm>
Submitted on:  Thu 23 Apr 2009 04:33:27 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: fertigtm
Open/Closed: Open

Thu 23 Apr 2009 04:33:27 PM UTC, original submission:

Hello folks,

I have had problems with avrdude and an avrdragon on my Intel Mac. Im running Mac OS X 10.4.11. So far the problem was that avrdude says:
avrdude: usbdev_open(): Found AVRDRAGON, serno: XXXXX
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1

Searching the net I found entries to a similar problem but without a solution to fix it. It seems that at least one person could bring it up and running with upgrading to OS X 10.5.

As I'm not willing to upgrade yet I tracked to problem down. For this I tried out several version of libusb. All had the same behavior, they failed.

At least I could avoid the error by removing stk500v2_drain(pgm, 0) call in stk500v2_dragon_isp_open().

It seems that the first initial read to USB which is done by the stk500v2_drain function let the corresponding Mac OS X function return with a timeout. This results in an error which let the application exit.

With a small patch you can avoid this behavior. For me it works great. I tested it with uploading a program and downloading the fuse bytes.

The attached file contains a patch against avrdude 5.5.

Andreas Fertig <fertigtm>

 

Attached Files
file #18002:  osxintelDragonFix.diff added by fertigtm (439B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by fertigtm (Submitted the item)
  • -unavailable- added by fertigtm
  •  

    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):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 23 Apr 2009 04:33:27 PM UTCfertigtmAttached File-=>Added osxintelDragonFix.diff, #18002
      Carbon-Copy-=>Added fertigtm

    Back to the top


    Powered by Savane 3.1-cleanup