| Author |
Message |
|
|
Posted: Mar 03, 2012 - 05:48 PM |
|


Joined: Jul 18, 2005
Posts: 62345
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
| The ultimate is a deep buffer logic analyser *with* a disassembler built in. When we first designed an 80286 based machine we used an HP1630 to do this and it was a dream to work with. You clipped leads onto all of the address and data bus lines and then ran the code and it would give you a disassembled trace of what just happened (this is long before any kind of ICE were available for the thing). |
_________________
|
| |
|
|
|
|
|
Posted: Mar 03, 2012 - 06:39 PM |
|

Joined: Oct 05, 2006
Posts: 2250
Location: Poland
|
|
|
Quote:
When we first designed an 80286 based machine we used an HP1630 to do this and it was a dream to work with.
Now you have reminded me my classes during studies where we had an '51 with its data and address bus connected to a logic analyzer. The decoding/disassembling part was made manually from printouts - to get the idea how uC manages program flow.
When you have all of its guts on a table, then yes, in theory you can hook just about any logic analyzer+software to it, actually building your own tracing dongle. The problem is that the trick is close to impossible with integrated uCs - you need to have a dedicated tracing interface to do that.
What I particularly liked with those Lauterbach tracing dongles (the one I have tried was for PPC with Nexus tracing interface) was that you can step forwards and backwards through the program flow. Both low (asm) and high (C/C++) level, watching the variables/jumps/calls/ISRs and timings along the path. And I do not mean the simulation, but real-time logs recorded during interaction with external world.
And a lot more of course. |
|
|
| |
|
|
|
|
|
Posted: Mar 03, 2012 - 06:50 PM |
|


Joined: Jul 18, 2005
Posts: 62345
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
|
Quote:
The problem is that the trick is close to impossible with integrated uCs - you need to have a dedicated tracing interface to do that.
Hence Atmel's ICE50 which replaces the chip with a complete simulation of the core. That is a true ICE (because it is really In Circuit in place of the CPU it emulates). All these later devices with ICE in the name (JTAGICE, JTAGICEmkII, JTAGICE3) are not ICE's at all, they are "logic sniffers" operating around the periphery though I guess you could claim that the JTAG module inside the AVR itself is the "in circuit" part of the device? |
_________________
|
| |
|
|
|
|
|
Posted: Mar 03, 2012 - 07:07 PM |
|

Joined: Oct 05, 2006
Posts: 2250
Location: Poland
|
|
|
|
|
|
|
Posted: Mar 04, 2012 - 10:25 PM |
|

Joined: Jul 16, 2009
Posts: 1579
|
|
Hi Everyone,
I ordered one! I used to have a jtagice mkii before I sold it. The flexible cable on it always made me nervous... Even so, I've missed the mkii after I sold it and this looks pretty nice.
What is the deal with the two different probes for it?
Thanks,
Alan |
|
|
| |
|
|
|
|
|
Posted: Mar 05, 2012 - 04:51 AM |
|

Joined: Jan 09, 2007
Posts: 1875
Location: Arlington, Texas, U.S.A.
|
|
|
alank2 wrote:
What is the deal with the two different probes for it?
AVR ONE!, Probe
Looks like the alternate probe adds function with a 5 volt AVR32 UC3C high-speed trace connection.
99USD; better to lose the probe than the entire tool (ESD, power sequencing, follow the instructions). |
|
|
| |
|
|
|
|
|
Posted: Mar 05, 2012 - 09:15 AM |
|

Joined: Oct 05, 2006
Posts: 2250
Location: Poland
|
|
|
|
|
|
|
Posted: Mar 08, 2012 - 06:50 PM |
|

Joined: Jul 16, 2009
Posts: 1579
|
|
Hi,
It arrived today. Other than the finish on it having some rough spots with paint flaking, it seems fine. Passes its self test.
One question though - if I am using a project where the last 2 bytes of flash are a crc16 of the flash, will this flash signature get pushed off when debugging because of breaks or something else it needs to insert in the code?
Thanks,
Alan |
|
|
| |
|
|
|
|
|
Posted: Mar 08, 2012 - 07:21 PM |
|


Joined: Jan 23, 2004
Posts: 9831
Location: Trondheim, Norway
|
|
|
Quote:
One question though - if I am using a project where the last 2 bytes of flash are a crc16 of the flash, will this flash signature get pushed off when debugging because of breaks or something else it needs to insert in the code?
IIRC - and this is pretty shaky - when the JTAG inserts a software breakpoint it replaces an instruction with a BREAK, and then uses JTAG magic to execute the missing instruction when the breakpoint is hit. In any case, no, debugging will not move the contents of FLASH unless you're compiling it incorrectly.
- Dean  |
_________________ Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
|
| |
|
|
|
|
|
Posted: Mar 08, 2012 - 07:29 PM |
|

Joined: Jul 16, 2009
Posts: 1579
|
|
Hi Dean,
abcminiuser wrote:
IIRC - and this is pretty shaky - when the JTAG inserts a software breakpoint it replaces an instruction with a BREAK, and then uses JTAG magic to execute the missing instruction when the breakpoint is hit. In any case, no, debugging will not move the contents of FLASH unless you're compiling it incorrectly.- Dean
My crc only goes into the hex file - perhaps that is the issue. Is the ELF or something else used for debugging?
p.s. I'm surprised they didn't put any rubber legs on it!
Thanks,
Alan |
|
|
| |
|
|
|
|
|
Posted: Mar 08, 2012 - 08:40 PM |
|


Joined: Jan 23, 2004
Posts: 9831
Location: Trondheim, Norway
|
|
|
Quote:
My crc only goes into the hex file - perhaps that is the issue. Is the ELF or something else used for debugging?
Yes, the ELF file is the one used for debugging, as it contains both the binary code for the application and references to the source code for source level debugging.
- Dean  |
_________________ Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
|
| |
|
|
|
|
|
Posted: Mar 20, 2012 - 11:32 PM |
|


Joined: Oct 07, 2010
Posts: 23
|
|
We've put in an order for a pair of these for work.
Is there a way to use an AVRONE on Mac OS X yet? Searching here seems to indicated that neither AVRDUDE or AVARICE support it but the threads I found were pretty old. As far as I can tell, the toolchain downloads for Linux on the Atmel website don't include an equivalent of AVRONE.exe.
It's been the case in the past that debugging on not-AVRStudio has been limited by Atmel's lack of protocol documentation. I eventually found the AVR ONE page on the Atmel website but the documentation seems messed up (the datasheet for the AVR ONE is the AVR XMEGA C Manual), so I take it Atmel hasn't documented the protocol, and until that happens I'll be stuck using Windows or other chip architectures. I'd love to be wrong, though. |
|
|
| |
|
|
|
|
|
Posted: Mar 21, 2012 - 09:00 AM |
|


Joined: Jan 23, 2004
Posts: 9831
Location: Trondheim, Norway
|
|
As far as I am aware, the AVR ONE! protocol isn't documented and no open source tool supports it (yet?). As for the bad website link, please send an email to avr@atmel.com so we can get it fixed.
- Dean  |
_________________ Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
|
| |
|
|
|
|
|
Posted: Mar 21, 2012 - 02:54 PM |
|


Joined: Aug 04, 2004
Posts: 1822
Location: Davie, FL
|
|
I was really excited by this until I just read the issue with non support by avrdude and avrice. At least I do have a JTAGmkII that I brought back from the dead. I had to repair a burned trace on the board, replace a broken switch (unit got dropped, guess where it landed), and jumper out a blown fuse. Anybody know a suitable replacement for that fuse (self healing fuse device)?
I also had to replace the cable, I used a standard .05" ribbon cable soldered directly to the board. I provided a ground between each line and did a scatter/gather at the 10 pin connector end. My 'Frankenstein' repair seems to work. |
|
|
| |
|
|
|
|
|
Posted: Mar 21, 2012 - 03:43 PM |
|

Joined: Jul 21, 2005
Posts: 119
Location: Australia
|
|
| Your thread: "Atmel misses the boat yet again ?" has been removed |
Last edited by jabram on Mar 21, 2012 - 07:20 PM; edited 1 time in total
|
| |
|
|
|
|
|
Posted: Mar 21, 2012 - 05:10 PM |
|


Joined: Jan 23, 2004
Posts: 9831
Location: Trondheim, Norway
|
|
Long story short, both designed at Atmel Nantes, IIRC.
- Dean  |
_________________ Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
|
| |
|
|
|
|
|
Posted: Mar 21, 2012 - 07:21 PM |
|

Joined: Jul 21, 2005
Posts: 119
Location: Australia
|
|
|
|
|
|
|
Posted: Apr 10, 2012 - 10:46 PM |
|

Joined: Sep 14, 2008
Posts: 2
Location: Slovenia
|
|
Hi everyone.
I am thinking to buy a debugger. You are talkink here about the avr one (hope it cost still 199$) and I am interested to by one. But I have a few questions.
What is the avr one probe for and can I use it without(is to costy)?
Dean mention that Atmel is working to integrate SAM support into the debuggers. Will it be possible to upgrade todays debuggers (one, ice3, dragon) or will it be a new HW version (atmel one, like Dean said)?
Previously I thought to buy the AVR JTAGICE 3 but I have the feeling that this is not a serious one, becouse Atmel dont even have any documentation about this product on the web, and avr studio 4 dont support it.
On the other hand I can buy the original SAM ICE (99$) + MCUZONE avr32 debugger (88$). Less then 199$ (avr one). This is confusing.
I hope somebody can help me. Thanks a lot. |
|
|
| |
|
|
|
|
|
Posted: Apr 11, 2012 - 11:39 AM |
|

Joined: Mar 10, 2010
Posts: 76
|
|
|
Quote:
What is the avr one probe for and can I use it without(is to costy)?
The AVR-ONE! includes a probe. The probe is the part that interfaces the debugger to your circuit - there are two available (for different debug speeds) but you already get one with the base debugger package. You don't need the alternative probe unless you specifically need the different voltage/speed ratio.
Quote:
Previously I thought to buy the AVR JTAGICE 3 but I have the feeling that this is not a serious one, becouse Atmel dont even have any documentation about this product on the web, and avr studio 4 dont support it.
All the JTAG-ICE3 documentation is integrated into AVRStudio 5/Atmel Studio 6. |
|
|
| |
|
|
|
|
|
Posted: Apr 17, 2012 - 02:04 PM |
|

Joined: Sep 14, 2008
Posts: 2
Location: Slovenia
|
|
Avr one for 199$ is gone . In atmel store it is back to 599$. |
|
|
| |
|
|
|
|
|