On Aug 22, 2005, at 10:20 PM, Marcelo Tosatti wrote: > I know now that the BDI automatically enables debug mode by asserting > the DSCK signal (available through the JTAG port). Is there any way > to enable debugging mode purely via software?
I'm not sure I really understand the question, but I'll give some answers anyway :-) The 8xx has the development/debug support, which is a bunch of registers that allow setting instruction/data breakpoints and so on. These are accessible from software, along with other standard PowerPC debug (like single step). The DSCK is a BDM/JTAG clock signal, and along with the other signals allow the clocking of instructions and data through the BDM pins. One of the things you can do is strobe in instructions that will set these same breakpoint or other debug registers as are accessible from software running on the part. So, if you have software running on the processor, you can do the same things. Obviously, if you are stuck someplace you need to get the attention of the processor. You can do this with some interrupt like kgdb does, then use the debug interface to help. Does this make sense? Thanks. -- Dan