* Debugging MIPS cpu with a probe, how?
@ 2008-08-05 13:10 TriKri
2008-08-07 12:47 ` Markus Gothe
2008-08-07 13:34 ` Johannes Stezenbach
0 siblings, 2 replies; 3+ messages in thread
From: TriKri @ 2008-08-05 13:10 UTC (permalink / raw)
To: linux-mips
Hello!
I have an embedded system, a box, with a MIPS processor on it, which I need
to debug (stop and start the processor, tell what instructions it has
previously executed, etc.). I also have an EJTAG probe, which I have
connected between the computer's usb and the box, and written software for
it. The software can communicate with the probe, which in its own turn can
communicate with the box through the tap (test access port), by giving the
tap certain instructions. It can also, through the tap, feed the MIPS
processor with instructions, and read/write data from processor registers.
The question is now, how can debug the processor? How do I stop it, do I
have to send any certain instructions to it? How can I set a breakpoint
(which I understand is a quite crucial point)? Can I use GDB with my
software to help debug the processor and how do I do that?
Thank you in advance!
/Kristofer Krus
--
View this message in context: http://www.nabble.com/Debugging-MIPS-cpu-with-a-probe%2C-how--tp18830812p18830812.html
Sent from the linux-mips main mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Debugging MIPS cpu with a probe, how?
2008-08-05 13:10 Debugging MIPS cpu with a probe, how? TriKri
@ 2008-08-07 12:47 ` Markus Gothe
2008-08-07 13:34 ` Johannes Stezenbach
1 sibling, 0 replies; 3+ messages in thread
From: Markus Gothe @ 2008-08-07 12:47 UTC (permalink / raw)
To: TriKri; +Cc: linux-mips
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
See: http://www.linux-mips.org/wiki/JTAG for references...
//Markus
TriKri wrote:
> Hello!
>
> I have an embedded system, a box, with a MIPS processor on it,
> which I need to debug (stop and start the processor, tell what
> instructions it has previously executed, etc.). I also have an
> EJTAG probe, which I have connected between the computer's usb and
> the box, and written software for it. The software can communicate
> with the probe, which in its own turn can communicate with the box
> through the tap (test access port), by giving the tap certain
> instructions. It can also, through the tap, feed the MIPS processor
> with instructions, and read/write data from processor registers.
>
> The question is now, how can debug the processor? How do I stop it,
> do I have to send any certain instructions to it? How can I set a
> breakpoint (which I understand is a quite crucial point)? Can I use
> GDB with my software to help debug the processor and how do I do
> that?
>
> Thank you in advance! /Kristofer Krus
- --
_______________________________________
Mr Markus Gothe
Software Engineer
Phone: +46 (0)13 21 81 20 (ext. 1046)
Fax: +46 (0)13 21 21 15
Mobile: +46 (0)70 348 44 35
Diskettgatan 11, SE-583 35 Linköping, Sweden
www.27m.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFImu7o6I0XmJx2NrwRCNBvAKCeiyR2G28PHsrHdfgijKwKFzu4MgCffxzZ
Elrh0qJUHc3TbfeeOtvgOBk=
=2Jjo
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Debugging MIPS cpu with a probe, how?
2008-08-05 13:10 Debugging MIPS cpu with a probe, how? TriKri
2008-08-07 12:47 ` Markus Gothe
@ 2008-08-07 13:34 ` Johannes Stezenbach
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Stezenbach @ 2008-08-07 13:34 UTC (permalink / raw)
To: linux-mips
On Tue, Aug 05, 2008, TriKri wrote:
>
> I have an embedded system, a box, with a MIPS processor on it, which I need
> to debug (stop and start the processor, tell what instructions it has
> previously executed, etc.). I also have an EJTAG probe, which I have
> connected between the computer's usb and the box, and written software for
> it. The software can communicate with the probe, which in its own turn can
> communicate with the box through the tap (test access port), by giving the
> tap certain instructions. It can also, through the tap, feed the MIPS
> processor with instructions, and read/write data from processor registers.
>
> The question is now, how can debug the processor? How do I stop it, do I
> have to send any certain instructions to it? How can I set a breakpoint
> (which I understand is a quite crucial point)? Can I use GDB with my
> software to help debug the processor and how do I do that?
I looked for Open Source EJTAG software a while ago and found
two projects which may be of interest to you:
http://svn.berlios.de/svnroot/repos/openocd/branches/mips/
http://www.totalembedded.com/open_source/jtag/mips32_ejtag/
But I didn't try to use any of it so far.
Johannes
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-07 13:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-05 13:10 Debugging MIPS cpu with a probe, how? TriKri
2008-08-07 12:47 ` Markus Gothe
2008-08-07 13:34 ` Johannes Stezenbach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox