MC 68040 debugging via JTAG with gdb?

Hello all,

is it possible to debug a Motorola MC 68040 via JTAG? I'm looking for a cheap way to debug software in MC 68040 via PC. gdb would be perfect. Something like macraigor OCDRemote but for this processor.

greetings Carsten

--
http://learn.to/quote - richtig zitieren
http://www.realname-diskussion.info - Realnames sind keine Pflicht
http://oe-faq.de/ - http://www.oe-tools.de.vu/ - OE im Usenet
http://www.spamgourmet.com/ - Emailadresse(n) gegen Spam
Reply to
Carsten Krueger
Loading thread data ...

I don't believe the 68040 has a JTAG port. All the hardware debuggers I'm aware of for this processor are full ICEs that totally replace the CPU.

If you want to use gdb on this processor, you will need to port gdb stubs (I find it hard to believe that nobody has done this before...) and connect over serial, Ethernet or whatever other interface is readily available in your target system.

Reply to
Lewin A.R.W. Edwards

It has, but I don't know which software is needed to use it.

What is a stub?

greetings Carsten

--
http://learn.to/quote - richtig zitieren
http://www.realname-diskussion.info - Realnames sind keine Pflicht
http://oe-faq.de/ - http://www.oe-tools.de.vu/ - OE im Usenet
http://www.spamgourmet.com/ - Emailadresse(n) gegen Spam
Reply to
Carsten Krueger

GDB stub is a piece of code in the target system. The stub understands the GDB remote debugging protocol and functions as the GDB's resident agent reading and setting register contents, memory contents and breakpoints.

The stub functioning and structure is documented in the GDB sources and documentation.

Googling 'gdb stub' gave about 43000 hits, at least the first couple of pages fully relevant to the question.

--

Tauno Voipio
tauno voipio (at) iki fi
Reply to
Tauno Voipio

ok

Thx, your abstract is much more clear than the hits (for me).

Interesting concept, but I don't know if I can use it. The problem is, what do I do if my programm is crashed. I think a stub is than "crashed", too.

greetings Carsten

--
http://learn.to/quote - richtig zitieren
http://www.realname-diskussion.info - Realnames sind keine Pflicht
http://oe-faq.de/ - http://www.oe-tools.de.vu/ - OE im Usenet
http://www.spamgourmet.com/ - Emailadresse(n) gegen Spam
Reply to
Carsten Krueger

It depends.

If the stub is run interrupt-driven and the main code crash did not succeed in destroying the interrupt environment, you may still succeed in making a post- mortem of the crash.

IMHO, the main use is in normal debugging, i.e. running until a breakpoint, looking at variables, etc.

I have written a stub for ARM7TDMI and run it successfully for a couple of years. As there are graphic front-ends for GDB, it is actually a nice debugging environment for an embedded system.

Regards from Helsinki, the home city of Linux.

--

Tauno Voipio
tauno voipio (at) iki fi
Reply to
Tauno Voipio

The MC68040 doesn't have any in-circuit-debug support.

Reply to
Eric Smith

Thx for this clear statement.

Gruß Carsten

--

formatting link
- richtig zitieren
formatting link
- Realnames sind keine Pflicht
formatting link
-
formatting link
- OE im Usenet
formatting link
- Emailadresse(n) gegen Spam

Reply to
Carsten Krueger

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.