<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>CodeWarrior Development ToolsのトピックRe: connect P1010 with code warrior10.5</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/connect-P1010-with-code-warrior10-5/m-p/748251#M6580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably there is JTAG hardware design problem on your target board, please refer to page 6 in the attached ppt to check the hardware design, especially HRESET and TRST signals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your problem remains, please refer to the following procedure to capture your CCS log to me to do more investigation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please enable CCS log from "Run-&amp;gt;Debug Configurations -&amp;gt;&amp;lt;project&amp;gt;-core0_RAM_-Connect(Download)-&amp;gt;Edit...-&amp;gt;Advanced-&amp;gt;Advanced CCS setting-&amp;gt;Enable logging", and connect to the target from "Run-&amp;gt;Debug Configurations-&amp;gt;&amp;lt;project&amp;gt;-core0_RAM_-Connect(Download)-&amp;gt;Debug”, the CCS log will be displayed in the console panel in CodeWarrior IDE. If you didn't find anything in the console, please open the panel from Window-&amp;gt;Show View-&amp;gt;Console, if the CCS log in the console is truncated, please enlarge the console buffer from Window-&amp;gt;Preferences-&amp;gt;Run/Debug-&amp;gt;Console-&amp;gt;uncheck "Limit console output".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yiping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2017 02:35:41 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2017-12-04T02:35:41Z</dc:date>
    <item>
      <title>connect P1010 with code warrior10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/connect-P1010-with-code-warrior10-5/m-p/748250#M6579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Code Warrior 10.5 to connect the P1010, but failed.&lt;/P&gt;&lt;P&gt;Error :&amp;nbsp;ELF is not in expected HALT mode&lt;/P&gt;&lt;P&gt;I use "P1010RDB_init_sram.tcl" to Initize P1010.&lt;/P&gt;&lt;P&gt;I need help, thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1111.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18229iE75DCA27E1B92DE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="1111.bmp" alt="1111.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;following is&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;P1010RDB_init_sram.tcl"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#########################################################################&lt;BR /&gt;# Initialization file for P1010RDB board - SRAM&lt;BR /&gt;# Clock Configuration:&lt;BR /&gt;# CPU: 1000 MHz, CCB: 400 MHz,&lt;BR /&gt;# DDR: 800 MHz, SYSCLK: 100 MHz&lt;BR /&gt;#########################################################################&lt;/P&gt;&lt;P&gt;variable CCSRBAR 0xff700000&lt;/P&gt;&lt;P&gt;proc CCSR {reg_off} {&lt;BR /&gt; global CCSRBAR&lt;BR /&gt; &lt;BR /&gt; return p:0x[format %x [expr {$CCSRBAR + $reg_off}]]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;proc apply_e500v2_workaround {} {&lt;BR /&gt; # After reset, e500 cores need to run before being able to enter debug mode.&lt;BR /&gt; # Work-around: set a HW BP at reset address and run the core; after the core hits the BP, it enters debug mode&lt;BR /&gt; # e500 cores need to have valid opcode at the interrupt vector&lt;/P&gt;&lt;P&gt;variable SPR_GROUP "e500 Special Purpose Registers/" &lt;BR /&gt; variable GPR_GROUP "General Purpose Registers/"&lt;BR /&gt; #######################################################################&lt;BR /&gt; # Set a breakpoint at the reset address &lt;BR /&gt; reg ${SPR_GROUP}IAC1 = 0xfffffffc&lt;BR /&gt; reg ${SPR_GROUP}DBCR0 = 0x40800000&lt;BR /&gt; reg ${SPR_GROUP}DBCR1 = 0x00000000&lt;/P&gt;&lt;P&gt;# Run the core&lt;BR /&gt; config runcontrolsync off&lt;BR /&gt; protocol ccs::run_core 0&lt;BR /&gt; wait 500 &lt;BR /&gt; protocol ccs::stop_core 0&lt;BR /&gt; config runcontrolsync on &lt;BR /&gt; stop&lt;/P&gt;&lt;P&gt;# Clear affected registers &lt;BR /&gt; reg ${SPR_GROUP}DBSR = 0x01CF0000&lt;BR /&gt; reg ${SPR_GROUP}DBCR0 = 0x41000000&lt;BR /&gt; reg ${SPR_GROUP}IAC1 = 0x00000000&lt;BR /&gt; reg ${SPR_GROUP}CSRR0 = 0x00000000&lt;BR /&gt; reg ${SPR_GROUP}CSRR1 = 0x00000000&lt;BR /&gt; # Set the PC back to the reset address (for debug--&amp;gt;connect)&lt;BR /&gt; reg ${GPR_GROUP}PC = 0xfffffffc&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;proc init_board {} {&lt;BR /&gt; &lt;BR /&gt; global CCSRBAR&lt;BR /&gt; &lt;BR /&gt; # get ROM_LOC from PORBMSR&lt;BR /&gt; variable ROM_LOC 0x[format %x [expr {([mem [CCSR 0xE0004] -np] &amp;amp; 0x0f000000) &amp;gt;&amp;gt; 24}]]&lt;/P&gt;&lt;P&gt;##################################################################################&lt;BR /&gt; # configure internal SRAM at 0x00000000&lt;/P&gt;&lt;P&gt;# L2CTL&lt;BR /&gt; # bit 0 = 0 - L2E: L2 SRAM disabled&lt;BR /&gt; # bit 1 = 1 - L2I: L2 flash invalidate&lt;BR /&gt; # bit 2-3 = 01 - L2SIZ: = 256K&lt;BR /&gt; # bit 13-15 = 001 - L2SRAM: Entire array as SRAM (256K)&lt;BR /&gt; mem [CCSR 0x20000] = 0x50010000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; # L2SRBAR0&lt;BR /&gt; # bit 0-17 = BASE addr: 0x00000000&lt;BR /&gt; mem [CCSR 0x20100] = 0x00000000&lt;/P&gt;&lt;P&gt;# L2SRBAREA0&lt;BR /&gt; # bit 28-31 = EXTENTED BASE addr: 0x00000000&lt;BR /&gt; mem [CCSR 0x20104] = 0x00000000&lt;/P&gt;&lt;P&gt;# L2CTL&lt;BR /&gt; # bit 0 = 1 - L2E: L2 SRAM enable&lt;BR /&gt; mem [CCSR 0x20000] = 0x90010000&lt;BR /&gt; &lt;BR /&gt; ##################################################################################&lt;BR /&gt; # &lt;BR /&gt; # Memory Windows&lt;BR /&gt; #&lt;BR /&gt; # 0xFE000000 0xFFFFFFFF LAW0 Local Bus NOR FLASH - 32M&lt;BR /&gt; # 0xEFB00000 0xEFBFFFFF LAW1 CPLD - 128K&lt;BR /&gt; # 0xEFA00000 0xEFAFFFFF LAW2 NAND - 16k&lt;BR /&gt; #&lt;BR /&gt; ##################################################################################&lt;BR /&gt; # configure local access windows&lt;/P&gt;&lt;P&gt;# LAWBAR0 - IFC&lt;BR /&gt; # bit 8 - 31 = 0xFE000000 - base addr&lt;BR /&gt; mem [CCSR 0xC08] = 0x000fe000&lt;/P&gt;&lt;P&gt;# LAWAR0&lt;BR /&gt; # bit 0 = 1 - enable window&lt;BR /&gt; # bit 7-11 = 00100 - Local Bus&lt;BR /&gt; # bit 26 - 31 = 011000 32M - size&lt;BR /&gt; mem [CCSR 0xC10] = 0x80400018&lt;/P&gt;&lt;P&gt;# LAWBAR1 - CPLD&lt;BR /&gt; # bit 8 - 31 = 0xEFB00000 - base addr&lt;BR /&gt; mem [CCSR 0xC28] = 0x000efb00&lt;/P&gt;&lt;P&gt;# LAWAR1&lt;BR /&gt; # bit 0 = 1 - enable window&lt;BR /&gt; # bit 7-11 = 00100 - Local Bus&lt;BR /&gt; # bit 26-31 = 010000 128k - size&lt;BR /&gt; mem [CCSR 0xC30] = 0x80400010&lt;/P&gt;&lt;P&gt;# LAWBAR2 - Local Bus&lt;BR /&gt; # bit 8 - 31 = 0xEFA00000 - base addr&lt;BR /&gt; mem [CCSR 0xC48] = 0x00efa00&lt;/P&gt;&lt;P&gt;# LAWAR2&lt;BR /&gt; # bit 0 = 1 - enable window&lt;BR /&gt; # bit 7-11 = 00100 - IFC&lt;BR /&gt; # bit 26-31 = 010011 1M - size&lt;BR /&gt; mem [CCSR 0xC50] = 0x80400013&lt;/P&gt;&lt;P&gt;#######################################&lt;BR /&gt; # CPLD INIT&lt;BR /&gt; #######################################&lt;/P&gt;&lt;P&gt;config MemAccess 8&lt;BR /&gt; config MemWidth 8&lt;BR /&gt; mem v:0xefb00009 = 0x00&lt;BR /&gt; mem v:0xefb00013 = 0x00&lt;BR /&gt; config MemAccess 32&lt;BR /&gt; config MemWidth 32&lt;BR /&gt; &lt;BR /&gt; ##################################################################################&lt;BR /&gt; # added workaround for Errata ID - GEN-A016 (A-003549)&lt;BR /&gt; # PMUXCR&lt;BR /&gt; mem [CCSR 0xE0060] = 0x000000c0&lt;/P&gt;&lt;P&gt;##################################################################################&lt;BR /&gt; # configure IFC controller&lt;/P&gt;&lt;P&gt;# Autodetect CS routing based on ROM_LOC&lt;BR /&gt; # bits 4-7 - ROM_LOC&lt;BR /&gt; # 1000 8-bit NAND—512b page size&lt;BR /&gt; # 1001 8-bit NAND—2K page size&lt;BR /&gt; # 1010 8-bit NAND—4K page size&lt;BR /&gt; # 1011 8-bit NOR&lt;BR /&gt; # 1100 16-bit NAND—512b page size&lt;BR /&gt; # 1101 16-bit NAND—2K page size&lt;BR /&gt; # 1110 16-bit NAND—4K page size&lt;BR /&gt; # 1111 16b NOR&lt;/P&gt;&lt;P&gt;# boot location is NAND =&amp;gt; NAND - cS0, NOR - CS1&lt;BR /&gt; if {($ROM_LOC &amp;gt;= 0x8 &amp;amp;&amp;amp; $ROM_LOC &amp;lt;= 0xA) || (($ROM_LOC &amp;gt;= 0xC &amp;amp;&amp;amp; $ROM_LOC &amp;lt;= 0xE))} {&lt;BR /&gt; &lt;BR /&gt; ###########################&lt;BR /&gt; # CS0 - NAND Flash settings&lt;/P&gt;&lt;P&gt;# AMASK0 64k NAND Flash buffer size&lt;BR /&gt; mem [CCSR 0x1E0A0] = 0xFFFF0000&lt;/P&gt;&lt;P&gt;# CSOR0&lt;BR /&gt; mem [CCSR 0x1E130] = 0x0110A200&lt;/P&gt;&lt;P&gt;#FTIM0_CS0 &lt;BR /&gt; mem [CCSR 0x1E1C0] = 0x0E18070A&lt;BR /&gt; #FTIM1_CS0&lt;BR /&gt; mem [CCSR 0x1E1C4] = 0x32390E18&lt;BR /&gt; #FTIM2_CS0&lt;BR /&gt; mem [CCSR 0x1E1C8] = 0x01E0501E&lt;BR /&gt; #FTIM3_CS0&lt;BR /&gt; mem [CCSR 0x1E1CC] = 0x00000000&lt;/P&gt;&lt;P&gt;# CSPR0&lt;BR /&gt; mem [CCSR 0x1E010] = 0xEFA00083&lt;BR /&gt; &lt;BR /&gt; ##########################&lt;BR /&gt; # CS1 - NOR Flash settings&lt;/P&gt;&lt;P&gt;# AMASK1 32M NOR&lt;BR /&gt; mem [CCSR 0x1E0AC] = 0xFE000000&lt;/P&gt;&lt;P&gt;# CSOR1&lt;BR /&gt; mem [CCSR 0x1E13C] = 0x0000E000&lt;/P&gt;&lt;P&gt;#FTIM0_CS1&lt;BR /&gt; mem [CCSR 0x1E1F0] = 0x40050005&lt;BR /&gt; #FTIM1_CS1&lt;BR /&gt; mem [CCSR 0x1E1F4] = 0x1E000F00&lt;BR /&gt; #FTIM2_CS1&lt;BR /&gt; mem [CCSR 0x1E1F8] = 0x0410001C&lt;BR /&gt; #FTIM3_CS1&lt;BR /&gt; mem [CCSR 0x1E1FC] = 0x00000000&lt;/P&gt;&lt;P&gt;# CSPR1&lt;BR /&gt; mem [CCSR 0x1E01C] = 0xFE000105&lt;BR /&gt; &lt;BR /&gt; } else {&lt;/P&gt;&lt;P&gt;##########################&lt;BR /&gt; # CS0 - NOR Flash settings&lt;/P&gt;&lt;P&gt;# AMASK0 32M NOR&lt;BR /&gt; mem [CCSR 0x1E0A0] = 0xFE000000&lt;/P&gt;&lt;P&gt;# CSOR0&lt;BR /&gt; mem [CCSR 0x1E130] = 0x0000E000&lt;/P&gt;&lt;P&gt;#FTIM0_CS0 &lt;BR /&gt; mem [CCSR 0x1E1C0] = 0x40050005&lt;BR /&gt; #FTIM1_CS0&lt;BR /&gt; mem [CCSR 0x1E1C4] = 0x1E000F00&lt;BR /&gt; #FTIM2_CS0&lt;BR /&gt; mem [CCSR 0x1E1C8] = 0x0410001C&lt;BR /&gt; #FTIM3_CS0&lt;BR /&gt; mem [CCSR 0x1E1CC] = 0x00000000&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; # CSPR0&lt;BR /&gt; mem [CCSR 0x1E010] = 0xFE000105&lt;/P&gt;&lt;P&gt;###########################&lt;BR /&gt; # CS1 - NAND Flash settings&lt;/P&gt;&lt;P&gt;# AMASK1 64k NAND Flash buffer size&lt;BR /&gt; mem [CCSR 0x1E0AC] = 0xFFFF0000&lt;/P&gt;&lt;P&gt;# CSOR1&lt;BR /&gt; mem [CCSR 0x1E13C] = 0x0110A200&lt;/P&gt;&lt;P&gt;#FTIM0_CS1&lt;BR /&gt; mem [CCSR 0x1E1F0] = 0x0E18070A&lt;BR /&gt; #FTIM1_CS1&lt;BR /&gt; mem [CCSR 0x1E1F4] = 0x32390E18&lt;BR /&gt; #FTIM2_CS1&lt;BR /&gt; mem [CCSR 0x1E1F8] = 0x01E0501E&lt;BR /&gt; #FTIM3_CS1&lt;BR /&gt; mem [CCSR 0x1E1FC] = 0x00000000&lt;/P&gt;&lt;P&gt;# CSPR1&lt;BR /&gt; mem [CCSR 0x1E01C] = 0xEFA00083&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;# CS3 - CPLD&lt;BR /&gt; #CSPR3 base address at 0xEFB00000, valid&lt;BR /&gt; mem [CCSR 0x1E034] = 0xEFB00085&lt;BR /&gt; #AMASK3 64K &lt;BR /&gt; mem [CCSR 0x1E0C4] = 0xFFFF0000&lt;BR /&gt; #CSOR3&lt;BR /&gt; mem [CCSR 0x1E154] = 0x00000000&lt;/P&gt;&lt;P&gt;#FTIM0_CS3 &lt;BR /&gt; mem [CCSR 0x1E250] = 0xe00e000e&lt;BR /&gt; #FTIM1_CS3&lt;BR /&gt; mem [CCSR 0x1E254] = 0x0e001f00&lt;BR /&gt; #FTIM2_CS3&lt;BR /&gt; mem [CCSR 0x1E258] = 0x0e00001f&lt;BR /&gt; #FTIM3_CS3&lt;BR /&gt; mem [CCSR 0x1E25C] = 0x00000000&lt;/P&gt;&lt;P&gt;#GCR&lt;BR /&gt; mem [CCSR 0x1E40C] = 0x00002800&lt;BR /&gt; #CCR&lt;BR /&gt; mem [CCSR 0x1E44C] = 0x03008000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; #SPI init&lt;BR /&gt; # SPMODE &lt;BR /&gt; mem [CCSR 0x7000] = 0x80000403 &lt;BR /&gt; # SPIM - catch all events&lt;BR /&gt; mem [CCSR 0x7008] = 0x00000000&lt;BR /&gt; # SPMODE1&lt;BR /&gt; mem [CCSR 0x7020] = 0x28170008&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;proc P1010RDB_init_core {} {&lt;BR /&gt; global CCSRBAR&lt;BR /&gt; &lt;BR /&gt; variable SPR_GROUP "e500 Special Purpose Registers/"&lt;BR /&gt; variable SSP_GROUP "Standard Special Purpose Registers/"&lt;BR /&gt; variable CAM_GROUP "regPPCTLB1/"&lt;BR /&gt; variable GPR_GROUP "General Purpose Registers/"&lt;/P&gt;&lt;P&gt;##################################################################################&lt;BR /&gt; # move CCSR at 0xE0000000&lt;/P&gt;&lt;P&gt;# CCSRBAR&lt;BR /&gt; # bit 8 - 23 - BASE_ADDR&lt;BR /&gt; mem [CCSR 0x0] = 0x000e0000&lt;BR /&gt; set CCSRBAR 0xe0000000&lt;/P&gt;&lt;P&gt;######################################################################&lt;BR /&gt; # invalidate BR0&lt;BR /&gt; # CSPR0&lt;BR /&gt; mem [CCSR 0x1E010] = 0x00000100&lt;/P&gt;&lt;P&gt;# ABIST off&lt;BR /&gt; # L2ERRDIS[MBECCDIS]=1 L2ERRDIS[SBECCDIS]=1&lt;BR /&gt; mem [CCSR 0x20E44] = 0x0000000C&lt;/P&gt;&lt;P&gt;# activate debug interrupt and enable SPU&lt;BR /&gt; reg ${SSP_GROUP}MSR = 0x02000200&lt;/P&gt;&lt;P&gt;##################################################################################&lt;BR /&gt; # &lt;BR /&gt; # Memory Map&lt;BR /&gt; #&lt;BR /&gt; # 0x00000000 0x0003FFFF SRAM 256K &lt;BR /&gt; # 0xE0000000 0xE00FFFFF CCSRBAR Space 1M&lt;BR /&gt; # 0xEFA00000 0xEFA03FFF NAND 16k&lt;BR /&gt; # 0xEFB00000 0xEFBFFFFF Board CPLD 1M&lt;BR /&gt; # 0xFE000000 0xFFFFFFFF LocalBus NOR FLASH 32M &lt;BR /&gt; #&lt;BR /&gt; ##################################################################################&lt;BR /&gt; # MMU initialization&lt;/P&gt;&lt;P&gt;# define 16MB TLB entry 0: 0xFF000000 - 0xFFFFFFFF; for Local Bus, cache inhibited, guarded&lt;BR /&gt; reg ${CAM_GROUP}L2MMU_CAM0 = 0x70000FCAFC080000FF000000FF000001&lt;/P&gt;&lt;P&gt;# define 16MB TLB entry 1: 0xFE000000 - 0xFEFFFFFF; for Local Bus, cache inhibited, guarded&lt;BR /&gt; reg ${CAM_GROUP}L2MMU_CAM1 = 0x70000FCAFC080000FE000000FE000001&lt;/P&gt;&lt;P&gt;# define 1MB TLB entry 2: 0xE0000000 - 0xE00FFFFF; for CCSR Space, non cacheable&lt;BR /&gt; reg ${CAM_GROUP}L2MMU_CAM2 = 0x500003CAFC080000E0000000E0000001&lt;/P&gt;&lt;P&gt;# define 256KB TLB entry 3: 0x00000000 - 0x0003FFFF; for internal chip SRAM&lt;BR /&gt; reg ${CAM_GROUP}L2MMU_CAM3 = 0x400001C0FC0800000000000000000001&lt;/P&gt;&lt;P&gt;# define 256KB TLB1 entry 4: 0xEFB00000 - 0xEFB3FFFF; for CPLD, cache inhibited, guarded&lt;BR /&gt; reg ${CAM_GROUP}L2MMU_CAM4 = 0x400001CA1C080000EFB00000EFB00001&lt;/P&gt;&lt;P&gt;# define 1MB TLB1 entry 5: 0xEFA00000 - 0xEFAFFFF; for NAND cache inhibited, guarded&lt;BR /&gt; reg ${CAM_GROUP}L2MMU_CAM5 = 0x500003CA1C080000EFA00000EFA00001&lt;/P&gt;&lt;P&gt;##################################################################################&lt;BR /&gt; # disable Boot Page Translation Register&lt;BR /&gt; mem [CCSR 0x20] = 0x00000000&lt;/P&gt;&lt;P&gt;# Invalidate again CSPR0 to prevent flash data damage in case &lt;BR /&gt; # the boot sequencer re-enables CS0 access&lt;BR /&gt; mem [CCSR 0x1E010] = 0x00000100&lt;BR /&gt; &lt;BR /&gt; init_board&lt;/P&gt;&lt;P&gt;####################################################################&lt;BR /&gt; # interrupt vectors initialization&lt;BR /&gt; # IVPR (default reset value) &lt;BR /&gt; reg ${SPR_GROUP}IVPR = 0x00000000&lt;/P&gt;&lt;P&gt;# interrupt vector offset registers &lt;BR /&gt; # IVOR0 - critical input&lt;BR /&gt; reg ${SPR_GROUP}IVOR0 = 0x00000100 &lt;BR /&gt; # IVOR1 - machine check&lt;BR /&gt; reg ${SPR_GROUP}IVOR1 = 0x00000200 &lt;BR /&gt; # IVOR2 - data storage&lt;BR /&gt; reg ${SPR_GROUP}IVOR2 = 0x00000300 &lt;BR /&gt; # IVOR3 - instruction storage&lt;BR /&gt; reg ${SPR_GROUP}IVOR3 = 0x00000400 &lt;BR /&gt; # IVOR4 - external input&lt;BR /&gt; reg ${SPR_GROUP}IVOR4 = 0x00000500 &lt;BR /&gt; # IVOR5 - alignment&lt;BR /&gt; reg ${SPR_GROUP}IVOR5 = 0x00000600 &lt;BR /&gt; # IVOR6 - program&lt;BR /&gt; reg ${SPR_GROUP}IVOR6 = 0x00000700 &lt;BR /&gt; # IVOR8 - system call&lt;BR /&gt; reg ${SPR_GROUP}IVOR8 = 0x00000c00 &lt;BR /&gt; # IVOR10 - decrementer&lt;BR /&gt; reg ${SPR_GROUP}IVOR10 = 0x00000900 &lt;BR /&gt; # IVOR11 - fixed-interval timer interrupt&lt;BR /&gt; reg ${SPR_GROUP}IVOR11 = 0x00000f00 &lt;BR /&gt; # IVOR12 - watchdog timer interrupt&lt;BR /&gt; reg ${SPR_GROUP}IVOR12 = 0x00000b00 &lt;BR /&gt; # IVOR13 - data TLB errror&lt;BR /&gt; reg ${SPR_GROUP}IVOR13 = 0x00001100 &lt;BR /&gt; # IVOR14 - instruction TLB error&lt;BR /&gt; reg ${SPR_GROUP}IVOR14 = 0x00001000 &lt;BR /&gt; # IVOR15 - debug&lt;BR /&gt; reg ${SPR_GROUP}IVOR15 = 0x00001500 &lt;BR /&gt; # IVOR32 - SPE-APU unavailable&lt;BR /&gt; reg ${SPR_GROUP}IVOR32 = 0x00001600 &lt;BR /&gt; # IVOR33 - SPE-floating point data exception&lt;BR /&gt; reg ${SPR_GROUP}IVOR33 = 0x00001700 &lt;BR /&gt; # IVOR34 - SPE-floating point round exception&lt;BR /&gt; reg ${SPR_GROUP}IVOR34 = 0x00001800 &lt;BR /&gt; # IVOR35 - performance monitor&lt;BR /&gt; reg ${SPR_GROUP}IVOR35 = 0x00001900&lt;/P&gt;&lt;P&gt;# put a valid opcode at debug and program exception vector address&lt;BR /&gt; mem v:0x00000700 = 0x48000000&lt;BR /&gt; mem v:0x00001500 = 0x48000000&lt;/P&gt;&lt;P&gt;##################################################################################&lt;BR /&gt; apply_e500v2_workaround&lt;/P&gt;&lt;P&gt;#############&lt;BR /&gt; #&lt;BR /&gt; # activate debug interrupt and enable SPU&lt;BR /&gt; reg ${SSP_GROUP}MSR = 0x02001200&lt;/P&gt;&lt;P&gt;############&lt;BR /&gt; #&lt;BR /&gt; # time base enable &amp;amp; MAS7 update&lt;BR /&gt; # HID0&lt;BR /&gt; reg ${SPR_GROUP}HID0 = 0x00004080&lt;/P&gt;&lt;P&gt;######&lt;BR /&gt; # CW debugger settings&lt;BR /&gt; #&lt;BR /&gt; #Trap debug event enable&lt;BR /&gt; reg ${SPR_GROUP}DBCR0 = 0x41000000&lt;/P&gt;&lt;P&gt;# for debugging starting at program entry point when stack is not initialized&lt;BR /&gt; reg ${GPR_GROUP}SP = 0x0000000F&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;proc envsetup {} {&lt;BR /&gt; # Environment Setup&lt;BR /&gt; radix x &lt;BR /&gt; config hexprefix 0x&lt;BR /&gt; config MemIdentifier v&lt;BR /&gt; config MemWidth 32 &lt;BR /&gt; config MemAccess 32 &lt;BR /&gt; config MemSwap off&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#-------------------------------------------------------------------------------&lt;BR /&gt;# Main &lt;BR /&gt;#-------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;envsetup&lt;/P&gt;&lt;P&gt;P1010RDB_init_core&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Nov 2017 08:41:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/connect-P1010-with-code-warrior10-5/m-p/748250#M6579</guid>
      <dc:creator>silecy2016</dc:creator>
      <dc:date>2017-11-04T08:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: connect P1010 with code warrior10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/connect-P1010-with-code-warrior10-5/m-p/748251#M6580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably there is JTAG hardware design problem on your target board, please refer to page 6 in the attached ppt to check the hardware design, especially HRESET and TRST signals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your problem remains, please refer to the following procedure to capture your CCS log to me to do more investigation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please enable CCS log from "Run-&amp;gt;Debug Configurations -&amp;gt;&amp;lt;project&amp;gt;-core0_RAM_-Connect(Download)-&amp;gt;Edit...-&amp;gt;Advanced-&amp;gt;Advanced CCS setting-&amp;gt;Enable logging", and connect to the target from "Run-&amp;gt;Debug Configurations-&amp;gt;&amp;lt;project&amp;gt;-core0_RAM_-Connect(Download)-&amp;gt;Debug”, the CCS log will be displayed in the console panel in CodeWarrior IDE. If you didn't find anything in the console, please open the panel from Window-&amp;gt;Show View-&amp;gt;Console, if the CCS log in the console is truncated, please enlarge the console buffer from Window-&amp;gt;Preferences-&amp;gt;Run/Debug-&amp;gt;Console-&amp;gt;uncheck "Limit console output".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yiping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 02:35:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/connect-P1010-with-code-warrior10-5/m-p/748251#M6580</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2017-12-04T02:35:41Z</dc:date>
    </item>
  </channel>
</rss>

