Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
JTAG debugger recommendations?
- 08-24-2007

Re: JTAG debugger recommendations?

10 ms is an eternity on most modern processors. A real JTAG emulator should
have zero affect on the execution of your code. In fact a debugger shouldn't
affect timing while your code is running. I think you have something else
going on.
Are you using a different build script/makefile when you are
debugging/emulating? A lot of times the compiler needs different options to
retain the symbol information that the emulator uses. Maybe you're
inadvertently changing the optimization level of your compiler and ending up
with slower code as a result. If it is a c compiler, for example, there is
usually a -Ox command line option to set the optimization level.
-Clark

Re: JTAG debugger recommendations?

I don't know what the 10ms Bill referred to, but a JTAG device could
take this much time depending on the interfaces used to communicate
with the JTAG itself. For example if your JTAG device is USB / Serial
or Network, the time taken for the debugger to communicate with the
JTAG may be more than 10ms. Hence you get the impression that the
actual code execution takes that time. From my understanding it
depends on the following factors.
- JTAG debugger -server side (eg: GDB server)
- Debugger - client side (GDB)
- Connection to JTAG (eg: serial port)
- How the debugger communicates (given that usually JTAGs have limited
number of HW breakpoints [eg: 2]). Does it set a breakpoint on each
source line or is it smart enough to set breakpoints in optimised
code .... etc.etc.
JTAG itself should not have any effect on the timing (baring track
lengths, which is in pS or uS timing and internal CPU HW delays), but
how you communicate with the JTAG pod will have a lot of bearing.
Cheers
J

Re: JTAG debugger recommendations?

Isn't any JTAG debugger is going to affect timing since it has
to stop the processor to do any "debugging"? I remember some
ARM vendors bragging about how they had non-intrusive tracing
via JTAG, but I'm very skeptical.
--
Grant Edwards grante Yow! Are you the
at self-frying president?
Grant Edwards grante Yow! Are you the
at self-frying president?
We've slightly trimmed the long signature. Click to see the full one.
Site Timeline
- » Cheap linux-ITX system?
- — Next thread in » Embedded Linux
-
- » Wisdom of avoiding redundant buffer copying?
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » cool cell division animation
- — The site's Newest Thread. Posted in » Electronics Design
-
- » ottenere alim duale da trafo singolo
- — The site's Last Updated Thread. Posted in » Electronics Hobby (Italian)
-