From: Jon S. <jon...@gm...> - 2007-09-20 20:15:05
|
What is needed to get OpenOCD working on a PowerPC processor like the MPC5200? The COP connector can be electrically plugged into a 20-pin ARM JTAG device if the pins are rearranged. What info is needed about the processor to get gdb running? We're doing an open source, embedded design based on the MPC5200 and I'd like to get OpenOCD running on it to provide a low cost debugging solution for students/hobbyists. If I know what doc is needed I can work on getting it out of Freescale. We can also put an ARM pinout JTAG connector on our board instead of COP. Kurobox is based on the MPC8241 which is the same core as the MPC5200. Various postings make me think OpenOCD is already running on the 603 PowerPC core. -- Jon Smirl jon...@gm... |
From: Dominic R. <Dom...@gm...> - 2007-09-20 21:15:57
|
Hello Jon, supporting the MPC5200 would require quite some work. I don't know how similar COP is to JTAG, but I assume something similar to the JTAG subsystem (jtag. [ch] + interface specific code (e.g. ft2232.c)) needs to be written. The architecture should be implemented similar to armv4_5.[ch], but I don't know the Power architecture well enough to know how many different variants there are. The interface defined in target.h has to be implemented, for example like arm920t.c + arm7_9_common.c. The OpenOCD has been designed to allow extension to other architectures, so this should certainly be possible, but one needs to analyze the PowerPC's debug architecture quite thoroughly to know how much work this is going to be. Best regards, Dominic On Thursday 20 September 2007 20:14:29 Jon Smirl wrote: > What is needed to get OpenOCD working on a PowerPC processor like the > MPC5200? The COP connector can be electrically plugged into a 20-pin > ARM JTAG device if the pins are rearranged. > > What info is needed about the processor to get gdb running? > > We're doing an open source, embedded design based on the MPC5200 and > I'd like to get OpenOCD running on it to provide a low cost debugging > solution for students/hobbyists. If I know what doc is needed I can > work on getting it out of Freescale. We can also put an ARM pinout > JTAG connector on our board instead of COP. > > Kurobox is based on the MPC8241 which is the same core as the MPC5200. > Various postings make me think OpenOCD is already running on the 603 > PowerPC core. |
From: Jon S. <jon...@gm...> - 2007-09-20 22:02:39
|
On 9/20/07, Dominic Rath <Dom...@gm...> wrote: > Hello Jon, > > supporting the MPC5200 would require quite some work. I don't know how similar > COP is to JTAG, but I assume something similar to the JTAG subsystem (jtag. > [ch] + interface specific code (e.g. ft2232.c)) needs to be written. Macragior is using the same FT2232 chip in their usb2wiggler which supports the MPC5200. Is there sufficient info in the public documentation? If not what's missing? I'll see if I can get it from Freescale. From the Chapter 21 MPC5200 manual: The Common On-chip Processor (COP) external interface adheres to the IEEE 1149.1 serial protocol. The COP uses the JTAG interface which includes a TAP Controller, a COP Controller, input and output multiplexors, registers, several shift register latches (SRLs) and a counter (RunN) which controls clock execution. All IEEE 1149.1 public instructions are implemented (SAMPLE_PRELOAD, BYPASS, and EXTEST). There is more detailed info in Chpt 21. http://www.freescale.com/files/32bit/doc/ref_manual/MPC5200BUM.pdf Manual for the PowerPC core http://www.freescale.com/files/32bit/doc/ref_manual/G2CORERM.pdf > > The architecture should be implemented similar to armv4_5.[ch], but I don't > know the Power architecture well enough to know how many different variants > there are. > > The interface defined in target.h has to be implemented, for example like > arm920t.c + arm7_9_common.c. > > The OpenOCD has been designed to allow extension to other architectures, so > this should certainly be possible, but one needs to analyze the PowerPC's > debug architecture quite thoroughly to know how much work this is going to > be. > > Best regards, > > Dominic > > On Thursday 20 September 2007 20:14:29 Jon Smirl wrote: > > What is needed to get OpenOCD working on a PowerPC processor like the > > MPC5200? The COP connector can be electrically plugged into a 20-pin > > ARM JTAG device if the pins are rearranged. > > > > What info is needed about the processor to get gdb running? > > > > We're doing an open source, embedded design based on the MPC5200 and > > I'd like to get OpenOCD running on it to provide a low cost debugging > > solution for students/hobbyists. If I know what doc is needed I can > > work on getting it out of Freescale. We can also put an ARM pinout > > JTAG connector on our board instead of COP. > > > > Kurobox is based on the MPC8241 which is the same core as the MPC5200. > > Various postings make me think OpenOCD is already running on the 603 > > PowerPC core. > > > _______________________________________________ > Openocd-development mailing list > Ope...@li... > https://lists.berlios.de/mailman/listinfo/openocd-development > -- Jon Smirl jon...@gm... |