avrdudes / avarice

AVaRICE is a program for interfacing the Atmel JTAG ICE to GDB to allow users to debug their embedded AVR target.
GNU General Public License v2.0
35 stars 11 forks source link

[feature-request #6] AVaRICE should support ICE3 #80

Closed avrs-admin closed 2 years ago

avrs-admin commented 2 years ago

kschwi 2012-11-12 23:29:05

Currently ICE3 is not supported by AVaRICE. Because of serious bugs in the AS6 and the less price of ICE3 it makes sense to have ICE3 as interface for debugging. A session of AS6 debugging and the description of steps to be executed show a full cycle of loading the solution in AS6, compiling, uploading and stepping through a program. At the end of the trace the synchronization between ICE3 and AS6 (by a bug in ???) is lost and a target power off / on cycle finishes the trace. If any additional traces are required I'll provide them on request.

The trace is made with Wireshark 1.8.3 with all empty USB packets (Data_len == 0) removed. The full trace is still available.

ICE3_trace.tar.gz ice3-prog-m1281-m128.txt ice3-prog-2560-16-chain.txt xmega16d4.txt xmega16d4-prodsig.png xmega256a3.txt mega32u2.txt debugsession_usb.data_gt_0.gz

This issue was migrated from https://sourceforge.net/p/avarice/feature-requests/6/

avrs-admin commented 2 years ago

kschwi 2012-11-12 23:29:06

Tracefile created with wireshark & description

avrs-admin commented 2 years ago

joerg_wunsch 2012-11-15 13:18:12

FWIW, I just committed an XSL stylesheet under tools/pdml.xsl to SVN. This can be used to extract the relevant (for us) USB conversation from the Wireshark trace data. Export them in Wireshark in PDML format, and then run that stylesheet across it using your favorite XSLT processor.

avrs-admin commented 2 years ago

joerg_wunsch 2012-11-15 21:34:51

Knut, in order to make some educated guess about the not so obvious data in the trace, could you please post all additional data you could find in Atmel Studio? Things coming to mind are:

. JTAGICE3 hardware and firmware revisions that are displayed . target voltage . programming and debugging clock frequencies

avrs-admin commented 2 years ago

joerg_wunsch 2012-11-19 12:55:19

Knut, any chance that you might upload further traces to cross-check individual data fields?

I'm interested in collecting data from as many targets as possible:

. devices with different memory configurations . debugging with different options (like "timers running") . debugging with only few vs. many breakpoints (to see how software BPs are communicated)

avrs-admin commented 2 years ago

joerg_wunsch 2012-11-19 12:56:23

Programming an ATmega1281 at 2.6 V, and an ATmega128 at 2.4 V

avrs-admin commented 2 years ago

joerg_wunsch 2012-11-19 12:57:47

Programming an ATmega2560 at 3.0 V, and ATmega16 at 5.0 V with external reset and 0.5 MHz clock, and a JTAG chain of ATmega2560 and ATmega1281

avrs-admin commented 2 years ago

joerg_wunsch 2012-11-19 13:00:50

I've also done some tests with Atmel Studio 6, tracing the USB data with SnoopyPro. The *.txt files below represent the relevant data (converted into simple text format). Tests cover:

. ATmega1281 at 2.7 V . ATmega128 at 2.4 V . ATmega2560 at 3.0 V . ATmeg16 at 5.0 V, with external reset, 0.5 MHz JTAG clock . JTAG chain of ATmega2560 and ATmega1281

avrs-admin commented 2 years ago

joerg_wunsch 2012-11-19 18:30:04

Upload to an ATxmega16D4 through PDI.

avrs-admin commented 2 years ago

joerg_wunsch 2012-11-19 18:32:00

Production signature row as read back from that ATxmega16D4

avrs-admin commented 2 years ago

joerg_wunsch 2012-11-20 09:36:12

Xmega256a3 (part of daisy chain), upload + erase: chip, application, boot, EEPROM, usersig

avrs-admin commented 2 years ago

joerg_wunsch 2012-11-20 09:36:54

ATmega32U2 via ISP

avrs-admin commented 2 years ago

joerg_wunsch 2013-01-01 12:54:09.096000

Trace data sent via mailinglist:

https://sourceforge.net/mailarchive/forum.php?thread_name=50E0AF30.3060001%40web.de&forum_name=avarice-user

avrs-admin commented 2 years ago

joerg_wunsch 2013-06-29 20:13:15.033000

avrs-admin commented 2 years ago

joerg_wunsch 2013-06-29 20:13:15.989000

It's done now.