bugAVR Downloader/UploaDEr - Bugs: bug #29743, Can program xmega128a1 using with...

 
 

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

bug #29743: Can program xmega128a1 using with programmer avrisp2 via pdi

Submitter:  None
Submitted:  Sun 02 May 2010 09:38:04 AM UTC
Votes: 200
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Need Info Privacy:  Public
Assigned to:  joerg_wunsch Originator Name:  giuliano carlini
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Programmer hardware: 
Device type: 

Jump to the original submission

Wed 11 Sep 2013 04:15:41 PM UTC, comment #12: 

Timed out.

Joerg Wunsch <joerg_wunsch>
Group administrator
  Spam posted by mrlove2
Thu 19 Apr 2012 01:44:04 PM UTC, comment #10: 

Well, the log says that the AVRISPmkII complains about a
collision on the programming lines.  This smells like a
hardware issue of some kind, or maybe a firmware issue.

(Btw., the stderr from avrdude .... -vvvv would have
sufficed, rather than the dtruss logs.)

Anyway, given this reports dates back more than 2 years now, and with
all the recent AVRDUDE bugfixes and improvements for Xmega devices,
and given that I've been using the AVRISPmkII routinely as part of
testing all this, I'd kindly ask you to test everything again:

. using a recent AVRISPmkII firmware (recent AVR Studio 4.x is fine,
  5.x not strictly needed)

. using a current AVRDUDE version (from SVN)

If you cannot use the SVN version directly, just tell me, and I'll
roll a beta tarball, and upload it to savannah.

Joerg Wunsch <joerg_wunsch>
Group administrator
Sat 28 Jan 2012 12:30:07 PM UTC, comment #9: 

I lied. In fact, this site works correctly in Chromium with the same Gnash plugin that fails in Firefox. <a href="http://1099fire.com/">1099 Software</a>

-Deleted Account- <macklinkbuilding>
Fri 07 May 2010 06:51:28 AM UTC, comment #8: 

328p log is indeed from #1.

#2 is dead. I'll speak of it no more ;->

giuliano carlini <gorillacoder>
Fri 07 May 2010 05:15:27 AM UTC, comment #7: 

OK, #2 is not interesting for me, as it uses a completely
different access method from AVRDUDE's point of view (no
libusb involved).

I hope the 328p log is from setup #1 then, is it?  I'll have
a look into those files later on, thanks!

Joerg Wunsch <joerg_wunsch>
Group administrator
Fri 07 May 2010 05:01:15 AM UTC, comment #6: 

Thanks for the patience. I'll get you all the info you need.

WORKS:
host: macbook pro running OSX 10.5.8
target: atmega328p
programmer: avrispmkii
host protocol: ???
target protocol: ISP to burn program to flash directly.
target physical connection: 6 pin ISP header
command: $x/bin/avrdude -C$x/etc/avrdude.conf -v -v -v -v -Pusb -cavrisp2 -patmega328p

WORKS:
host: same
target: same
programmer: none
host protocol: ???
target protocol: stk500v1 to download program to arduino bootloader.
target physical connection: FTDI cable from host to target driving RX/TX.

FAILS:
host: same
target: xmega128a1
programmer: avrispmkii
host protocol: ???
target protocol: PDI
target physical connection: 6 pin PDI header
command: $x/bin/avrdude -C$x/etc/avrdude.conf -v -v -v -v -Pusb -cavrisp2 -patxmega128a1

dtruss log files attached

(file #20475, file #20476)

giuliano carlini <gorillacoder>
Thu 06 May 2010 06:41:36 PM UTC, comment #5: 

OK, a few more questions then:

> WORKS:
> host: macbook pro running OSX 10.5.8
> target: atmega328p
> host protocol: ???


How is the atmega328p connected?  Is that some kind of RS-232
to USB adapter?   Or is that an AVRISPmkII?  In other words:
which -c and -P option are you using?

> WORKS:
> host: same
> target: same
> host protocol: ???
> target protocol: stk500v1 to download program to arduino bootloader.


Again, through some kind of RS-232 converter?  (-c/-P would
be helpful)

> FAILS:
> host: same
> target: xmega128a1
> host protocol: ???
> target protocol: PDI


I take it that's an AVRISPmkII, is it?

Joerg Wunsch <joerg_wunsch>
Group administrator
Thu 06 May 2010 06:28:16 PM UTC, comment #4: 

Apologies for the confusion Joerg. I was just trying to supply complete information about what was working and about what was not. So, let me repeat in a hopefully more clean manner. When I get home I'll send the dtruss log.

BTW: thanks, never knew dtruss ran on OSX. That will make debugging lots of things hugely easier.

WORKS:
host: macbook pro running OSX 10.5.8
target: atmega328p
host protocol: ???
target protocol: ISP to burn program to flash directly.

WORKS:
host: same
target: same
host protocol: ???
target protocol: stk500v1 to download program to arduino bootloader.

FAILS:
host: same
target: xmega128a1
host protocol: ???
target protocol: PDI

giuliano carlini <gorillacoder>
Mon 03 May 2010 04:25:27 AM UTC, comment #3: 

There is no real "switch configuration" done.  It's just that
as part from the normal "hello!" to a USB device, selecting a
configuration is just one step out of many (where most devices
only support a single configuration anyway, including all the
Atmel tools AVRDUDE is about to handle).

Sorry, the remainder of your message sounds a little confusing
to me.  It mixes host protocols (like STK500v1) and target
protocols (like ISP vs. PDI).  Also, at this point of the game,
the target protocol to be selected should not matter at all,
as we are still in the "hello" phase, starting up with the
USB device.

If you've got something that is working and something that
isn't, I'd ask you to get me "dtruss" traces of both setups,
so I can compare them.

Joerg Wunsch <joerg_wunsch>
Group administrator
Sun 02 May 2010 07:29:59 PM UTC, comment #2: 

More info: I can upload from the same machine and avrisp2 to a328p using stk500v1 or ISP. Even with PDI, avrdude sees the avrisp2, including recognizing its serial number.

Is it possible that in order to switch usb configuration (whatever that means;->), that the usb device needed to be opened differently?

In any case, I'm running OSX 10.5.8. Not sure what version of libusb I'm running, probably whatever came with crosspack.

Thanks

giuliano carlini <gorillacoder>
Sun 02 May 2010 02:47:15 PM UTC, comment #1: 

That smells like a libusb problem.

What version of libusb are you using, and what operating
system and OS version?

Joerg Wunsch <joerg_wunsch>
Group administrator
Sun 02 May 2010 09:38:04 AM UTC, original submission:  

Doc says:
    avrisp2 Atmel AVR ISP mkII in ISP mode, in PDI mode for ATxmega devices, ...

When I give the following command line:
     avrdude -C.../avrdude.conf -v -v -v -v -patxmega128a1 -cavrisp2
    -Pusb -Uflash:w:.../SfeTest.cpp.hex:i
I get the output:
    avrdude: usbdev_open(): Found AVRISP mkII, serno: 0000B0041148
    avrdude: usbdev_open(): error setting configuration 1:
        usb_set_configuration(SetConfiguration): device not opened for exclusive access
    avrdude: usbdev_open(): did not find any USB device "usb"

Anonymous

 

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

Attached Files
file #20476:  x128a1.dtruss.log added by gorillacoder (70KiB - application/octet-stream)
file #20475:  328p.dtruss.log added by gorillacoder (77KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mrlove2 (Posted a comment)
  • -email is unavailable- added by macklinkbuilding (Posted a comment)
  • -email is unavailable- added by slowbrute1 (Voted in favor of this item)
  • -email is unavailable- added by sunnygurm (Voted in favor of this item)
  • -email is unavailable- added by gorillacoder (Posted a comment)
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 200 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 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-11 joerg_wunsch Open/ClosedOpen Closed
    2012-04-19 joerg_wunsch StatusIn Progress Need Info
    2010-05-24 slowbrute1 Carbon-Copy- Added slowbrute1
    2010-05-24 sunnygurm Carbon-Copy- Added sunnygurm
    2010-05-07 joerg_wunsch StatusNeed Info In Progress
        Assigned toNone joerg_wunsch
    2010-05-07 gorillacoder Attached File- Added 328p.dtruss.log, #20475
        Attached File- Added x128a1.dtruss.log, #20476
    2010-05-02 joerg_wunsch StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code