To debug a specific processor on a JTAG scan chain.

1. Setup JTAG Config file

JTAG Initialization File
Although you may debug only one single chip at a time, you must create a JTAG
initialization file that specifies the type and order of all the chips in the chain.

To specify a PPC chips, you must specify the proper core as the name of a the chip
you are debugging. For example, the following shows a JTAG initialization file for three
mpc7447a chips, and an SC140 in a JTAG chain.

note: Device 0 is closest to the TDO signal on the chain

--------------------
#JTAG initialization File



# Has index value of 0 in the JTAG chain
mpc7447a
# Has index value of 1 in the JTAG chain
mpc7447a
# Has index value of 2 in the JTAG chain
mpc7447a
# Has index value of 3 in the JTAG chain
SC140

#the following is a list of valid targets:
#generic        /* Generic Device */
#dsp56300       
#dsp56600       
#dsp56800       
#mcore          /* M*Core */
#arm            /* Arm */
#sc140          /* StarCore */
#ipcm          
#hawkv2         
#sync       
#rcp_dsp56600   /* Redcap's DSP */
#rcp_mcore210   /* Redcap's Mcore 210 */
#wcp_sync       /* Whitecap */
#wcp_dsp56600   /* Whitecap's DSP */
#wcp_arm7tdmi   /* Whitecap's ARM */
#rnbo_sync      /* Rainbow */
#rnbo_sc140     /* Rainbow's StarCore */
#rnbo_mcore     /* Rainbow's MCore */
#rnbo_ipcm      /* Rainbow's IPCM */
#testcore       /* test core */
#msc8102_sync   /* MSC8102 */
#msc8102_sc140  /* MSC8102's StarCore */
#elf            /* ELF/PPC */
#etpu           /* ETPU */
#coldfire       /* ColdFire */
#esys_sync      /* eSys */
#esys_elf       /* eSys's ELF/PPC */
#esys_etpu0     /* eSys's ETPU 0 */
#esys_etpu1     /* eSys's ETPU 1 */
#esys_ace       /* eSys's ACE (ColdFire) */
#mpc603e        /* PPC mpc603e */
#mpc603ei       /* PPC mpc603ei */
#ms116          /* MorphoSys 1-16 */
#msfpga         /* MorphoSys Debug Helper FPGA */
#e500           /* Dracom */
#mgt5200        /* PPC mgt5200 */
#mpc7410        /* PPC mpc7410 */
#mpc74x7        /* PPC mpc7447/7457 */
#odyssey_sync   /* Odyssey */
#odyssey_ms1162 /* Odyssey's MS1-16-2 */
#mpc5500_sync   /* PPC mpc5500 (Copperhead) */
#mpc5500_zen    /* PPC mpc5500's Zen core */
#mpc5500_ndedi  /* PPC mpc5500's eTPU Nexus interface*/
#mpc5500_npc    /* PPC mpc5500's Nexus Port Controller */
#mpc5500_nxdm   /* PPC mpc5500's Nexus crossbar DMA */
#mpc7447a       /* PPC mpc7447a */
#mpc5500_netpu  /* PPC mpc5500's eTPU */
#j2i2c          /* JTAG to I2C interface */
#filter         /* filter       */
#coldfire_v2    /* ColdFire v2 core family */
#coldfire_v4    /* ColdFire v4 core family */
#ce             /* Dummy mpc836x CE core */
#draco8         /* Draco HIP8 based processors */
#mpc866 
#mpc83xx        /* MPC83XX family, E300 simulator */
#mpc755         /* PPC mpc755 */
#arm11          /* ARM11 */
#sjc            /* SJC */
#sdma           /* SDMA */
#j2i2cs         /* JTAG to I2C interface starter*/
#zassc          /* ZAS StarCore */
#svf            /* SVF client   */
#mrc6800_zen    /* Odyssey 2's Zen/PPC */
#mrc6800_rcf    /* Odyssey 2's RCF */

--------------------

In addition, you can specify other chips to debug on the JTAG chain. To do so, you use
the following syntax to specify the chip as a generic device:

Generic <instruct_reg_length> <data_reg_bypass_length> <JTAG_bypass_instruction>



2.  Setup new generic CCS connect

   a. Select Edit ->Preferences from the meneu
   b. Select "Remote Connects" on left hand pane
   c. Click "Add"
   d. Name connection (example My_CCS_Connection)
   e. Under debugger select "CCS EEPPC Protocol Plugin"
   f. Under "Connection type" select "CCS Remote connection"
   g. Enable "Multi-core" debugging
   f. Specify the JTAG config file in the dialog


3. Select new connection in project
   a. open project preference
   b. Select "My_CCS_Connection"
   c. Selete "Multi-core debugging
   d.  specify which core you wish to debug.  (ordered from 0 as defined in the config file)


4. Setup CCS to use proper host target interface

   a. Launch CCS <Codewarrior>\CCS\bin\ccs.exe
   b. Open CCS console from system tray
   c. In console type:
      delete all
      config cc <HTINAME>
      config save
   d. <HTIMANE is the type of HTI you are using (type "config" for complete list)
Note, if you use a connection other than "My_CCS_Connection" you may need to repeat this step after
returning using "My_CCS_Connection"

        