Hello,
I have been struggling for a while with attaching the Codewarrior TAP debugger to a custom application board which is equipped with MPC5200.
Probe is "FREESCALE CodeWarrior USB TAP CWH-CTP-BASE-HE".
Probe tip is built by myself. Basically I found the pinout/schematic of the 2x15 connector on the site and did my own wiring to the board. I placed 10Kohms resistor between pin 30 and ground. Tip is recognized as "Power Architecture/JTAG COP"
I have been using CCS console exclusively. I did not use Codewarrior IDE so far.
Current status:
Device 0: Altera FPGA (IDCODE 0x020B20DD)
Device 1: MPC5200B rev. 2.x (IDCODE 0x1001101D)
Devices 2....7: IDCODE: FFFFFFFF, Device: Unknown Device.
Problem:
Any attempt to configure the processor in CCS fails:
ccs::config_chain mgt5200
returns:
mgt5200: no connection to the target or unrecognized processor
ccs::get_config_chain always reports "test core" instead of mgt5200.
Low level JTAG commands (like jtag::get_speed) always return: Internal failure.
Questions:
Really appreciate your for taking the time to read this,
Mihai
Hello,
The behavior you observe (IDCODE scan working but debug attach failing) is consistent with MPC5200 architecture.
According to the MPC5200 documentation, the device uses a two-level JTAG structure: a master TAP (for standard JTAG/IDCODE) and a slave TAP for CPU debug (e300 COP interface). If the slave TAP is not enabled or not correctly selected, JTAG detection works, but debugger attach will fail.
Recommend check:
Proper handling of TRST and reset signals (TAP must be in correct state)
Ability to reset/hold the device during attach
That the CPU debug (COP) interface is accessible (not blocked by hardware or configuration)
Correct JTAG chain configuration and TAP selection, especially in multi-device chains
Best regards,
Peter