[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] Newbie problems with JTAG ICE MK2 and AVRISP MK2
From: |
Dave N6NZ |
Subject: |
Re: [avrdude-dev] Newbie problems with JTAG ICE MK2 and AVRISP MK2 |
Date: |
Tue, 29 Aug 2006 23:25:19 -0700 |
User-agent: |
Thunderbird 1.5 (X11/20051201) |
I believe the connection time-outs were due to not properly resetting
the jtag2, but I still get an error (pasted below).
You can tell I am getting desperate and frustrated.... I re-booted to
Windows (for the first time in a month) and installed AVR Studio. It
wanted to install a firmware update in the jtag2, and, living
dangerously, I decided to let it do the upgrade. AVR Studio was able to
read the fuses in my device, so I verified that:
1. The JTAG ICE MKII is not broken
2. My prototype board works well enough that AVR Studio/JTAG2 can talk
to it.
3. All the cables in between are plugged in correctly.
So... I'm back to thinking I have usb configuration issues, but don't
know what could be getting in the way here. I need a clue, badly.
Here is my current error output:
address@hidden:~/robot/libcleddemo$ avrdude -v -v -v -v -c jtag2 -B 8 -p
atmega32 -P usb -U fuse:r:fuse.txt
avrdude: Version 5.1
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is
"/usr/local/atmel/avrdude/etc/avrdude.conf"
User configuration file is "/home/dave/.avrduderc"
User configuration file does not exist or is not a regular
file, skipping
Using Port : usb
Using Programmer : jtag2
Setting bit clk period: 8.0
avrdude: jtagmkII_open()
avrdude: usbdev_open(): Found JTAGICE mkII, serno: 00A000004986
avrdude: jtagmkII_getsync()
avrdude: jtagmkII_getsync(): Sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] .
[01] . [f3] . [97]
avrdude: jtagmkII_recv():
avrdude: usb_fill_buf(): usb_bulk_read() error No error
avrdude: jtagmkII_recv(): Timeout receiving packet
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): Sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] .
[01] . [f3] . [97]
avrdude: jtagmkII_recv():
avrdude: usb_fill_buf(): usb_bulk_read() error No error
avrdude: jtagmkII_recv(): Timeout receiving packet
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): Sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] .
[01] . [f3] . [97]
avrdude: jtagmkII_recv():
avrdude: usb_fill_buf(): usb_bulk_read() error No error
avrdude: jtagmkII_recv(): Timeout receiving packet
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): Sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] .
[01] . [f3] . [97]
avrdude: jtagmkII_recv():
address@hidden:~/robot/libcleddemo$
Dave N6NZ wrote:
What causes usb_bulk_read() to get connection time outs???
-dave
address@hidden:~/robot/libcleddemo$ avrdude -v -v -v -v -c jtag2 -B 8 -p
atmega32 -P usb -U fuse:r:fuse.txt
avrdude: Version 5.1
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is
"/usr/local/atmel/avrdude/etc/avrdude.conf"
User configuration file is "/home/dave/.avrduderc"
User configuration file does not exist or is not a regular
file, skipping
Using Port : usb
Using Programmer : jtag2
Setting bit clk period: 8.0
avrdude: jtagmkII_open()
avrdude: usbdev_open(): Found JTAGICE mkII, serno: 00A000004986
avrdude: jtagmkII_getsync()
avrdude: jtagmkII_getsync(): Sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] .
[01] . [f3] . [97]
avrdude: jtagmkII_recv():
avrdude: usb_fill_buf(): usb_bulk_read() error error reading from bulk
endpoint 0x82: Connection timed out
avrdude: jtagmkII_recv(): Timeout receiving packet
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): Sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] .
[01] . [f3] . [97]
avrdude: jtagmkII_recv():
avrdude: usb_fill_buf(): usb_bulk_read() error error reading from bulk
endpoint 0x82: Connection timed out
avrdude: jtagmkII_recv(): Timeout receiving packet
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): Sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] .
[01] . [f3] . [97]
avrdude: jtagmkII_recv():
Dave N6NZ wrote:
So... I am finally getting to the point of trying to stuff bits into
an AVR, but can't make the last inch.
Using avrdude with avrisp2:
$avrdude -c avrisp2 -p atmega32 -P usb -e -U flash:w:demo.hex
avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: stk500v2_recv_mk2: error in USB receive
and with jtag ice mk2:
$avrdude -c jtag2 -p atmega32 -P usb -e -U flash:w:demo.hex
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
It is possible that I still have an issue with the Linux hotplug
system, but I think I have the permission issues straightened out.
Using avrdude 5.1, Linux, Slackware 10.2
TIA,
Dave
_______________________________________________
avrdude-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avrdude-dev
_______________________________________________
avrdude-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avrdude-dev