Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
clawson
PostPosted: Mar 03, 2012 - 05:48 PM
10k+ Postman


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

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Brutte
PostPosted: Mar 03, 2012 - 06:39 PM
Raving lunatic


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.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Mar 03, 2012 - 06:50 PM
10k+ Postman


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?

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Brutte
PostPosted: Mar 03, 2012 - 07:07 PM
Raving lunatic


Joined: Oct 05, 2006
Posts: 2250
Location: Poland

http://en.wikipedia.org/wiki/In-circuit_emulator

Yes, an ICE (or an FPGA emulator) can also be used in development to put the guts outside. But AFAIK this branch of tools became extinct recently.

Ok, not completely:
http://www.avrfreaks.net/index.php?name ... 131#893131
as it has several advantages over tracing port - you do not need to implement the feature in a release version of a Si.

_________________
No RSTDISBL, no fun!
 
 View user's profile Send private message  
Reply with quote Back to top
alank2
PostPosted: Mar 04, 2012 - 10:25 PM
Posting Freak


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
 
 View user's profile Send private message  
Reply with quote Back to top
gchapman
PostPosted: Mar 05, 2012 - 04:51 AM
Posting Freak


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).
 
 View user's profile Send private message  
Reply with quote Back to top
Brutte
PostPosted: Mar 05, 2012 - 09:15 AM
Raving lunatic


Joined: Oct 05, 2006
Posts: 2250
Location: Poland

Going into details of this device:

http://www.atmel.no/webdoc/avrone/avron ... avr32.html
it looks like "generating trace timing signals" is not supported. Does this mean that profiling is not possible actually?

And here is what is inside:
http://www.atmel.no/webdoc/avrone/avron ... ption.html
It has a 128MB FIFO for trace messages and a Hi-Speed USB connection.

_________________
No RSTDISBL, no fun!
 
 View user's profile Send private message  
Reply with quote Back to top
alank2
PostPosted: Mar 08, 2012 - 06:50 PM
Posting Freak


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
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: Mar 08, 2012 - 07:21 PM
Moderator


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 Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
alank2
PostPosted: Mar 08, 2012 - 07:29 PM
Posting Freak


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 Twisted Evil


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
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: Mar 08, 2012 - 08:40 PM
Moderator


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 Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
nictinkers
PostPosted: Mar 20, 2012 - 11:32 PM
Rookie


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.
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: Mar 21, 2012 - 09:00 AM
Moderator


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 Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
kscharf
PostPosted: Mar 21, 2012 - 02:54 PM
Posting Freak


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.
 
 View user's profile Send private message  
Reply with quote Back to top
jabram
PostPosted: Mar 21, 2012 - 03:43 PM
Hangaround


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
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: Mar 21, 2012 - 05:10 PM
Moderator


Joined: Jan 23, 2004
Posts: 9831
Location: Trondheim, Norway

Long story short, both designed at Atmel Nantes, IIRC.

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
jabram
PostPosted: Mar 21, 2012 - 07:21 PM
Hangaround


Joined: Jul 21, 2005
Posts: 119
Location: Australia

Thanks for the reply
 
 View user's profile Send private message  
Reply with quote Back to top
taubi83
PostPosted: Apr 10, 2012 - 10:46 PM
Newbie


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.
 
 View user's profile Send private message  
Reply with quote Back to top
cleaner
PostPosted: Apr 11, 2012 - 11:39 AM
Wannabe


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.
 
 View user's profile Send private message  
Reply with quote Back to top
taubi83
PostPosted: Apr 17, 2012 - 02:04 PM
Newbie


Joined: Sep 14, 2008
Posts: 2
Location: Slovenia

Avr one for 199$ is gone Sad . In atmel store it is back to 599$.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits