<?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>S32 Design StudioのトピックRe: ERROR: InitTarget(): PCode returned with error code -1</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720796#M2065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming that debugger and connection to board is okay. So - please check if the board is powered properly.&amp;nbsp; If yes&amp;nbsp; - you probably secured MCU by writing some unknown data to flash config address - 0x400. If it is your case - there is no way back. Secured chip has disconnected JTAG.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have another debugger - for example PE Micro, you can try Emergency Kinetis device recovery option:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55958i5EA8F30659A0AED7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If everything fails - the soldering iron is only option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2018 08:03:40 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2018-05-03T08:03:40Z</dc:date>
    <item>
      <title>ERROR: InitTarget(): PCode returned with error code -1</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720793#M2062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt; I am working with my own boards(&lt;SPAN&gt;S32K144&lt;/SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;J-link can't connect the board :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connecting to target...ERROR: InitTarget(): PCode returned with error code -1&lt;/P&gt;&lt;P&gt;ERROR: Could not connect to target.&lt;BR /&gt;Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...&lt;BR /&gt;Shutting down...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt; (S32DS v2.0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connecting to target...ERROR: Kinetis (connect): Communication error while accessing MDM-AP.&lt;/P&gt;&lt;P&gt;ERROR: Could not connect to target.&lt;BR /&gt;Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...&lt;BR /&gt;Shutting down...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;(S32DS v1.3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The code that may make it happen:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt; for(j=0;j&amp;lt;0x20;j++)&lt;BR /&gt; {&lt;BR /&gt; ret = FlashEraseSector(&amp;amp;flashSSDConfig, address+FSL_FEATURE_FLS_PF_BLOCK_SECTOR_SIZE*j, size, pCmdSequence);&lt;BR /&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Did anybody have a similar issue? Any ideas are welcomed.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 11:05:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720793#M2062</guid>
      <dc:creator>jamesyim</dc:creator>
      <dc:date>2018-05-02T11:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: InitTarget(): PCode returned with error code -1</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720794#M2063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are probably erasing the part of FLASH where is your code present. Make sure that you are running RAM target if you like erase all FLASH memory.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 12:13:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720794#M2063</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-05-02T12:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: InitTarget(): PCode returned with error code -1</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720795#M2064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;It is highly possible that I erase&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;the part of FLASH where is my code present.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I burned the program with the Flash erase code . After that the board cannot work when I burn any other program including example .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I tried J-Flash. When I connected the board, I got the error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I have made two boards not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Can you give me some advice to make the connection successful&amp;nbsp;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="捕获.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48610iB556E470A67E0AD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="捕获.JPG" alt="捕获.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 00:52:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720795#M2064</guid>
      <dc:creator>jamesyim</dc:creator>
      <dc:date>2018-05-03T00:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: InitTarget(): PCode returned with error code -1</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720796#M2065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming that debugger and connection to board is okay. So - please check if the board is powered properly.&amp;nbsp; If yes&amp;nbsp; - you probably secured MCU by writing some unknown data to flash config address - 0x400. If it is your case - there is no way back. Secured chip has disconnected JTAG.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have another debugger - for example PE Micro, you can try Emergency Kinetis device recovery option:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55958i5EA8F30659A0AED7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If everything fails - the soldering iron is only option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 08:03:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720796#M2065</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-05-03T08:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: InitTarget(): PCode returned with error code -1</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720797#M2066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The soldering iron is the best option.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 08:22:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720797#M2066</guid>
      <dc:creator>jamesyim</dc:creator>
      <dc:date>2018-05-03T08:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: InitTarget(): PCode returned with error code -1</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720798#M2067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jiri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I unfortunately have the same problem. Can you specify what you mean by the "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Secured chip has disconnected JTAG"&lt;/SPAN&gt;? So I can understand what is going on? Is the Secured chip the MCU or an external chip on the EVB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More importantly, you specified that I have to use the soldering iron to solve this problem. Can you please go in more detail on what I solder where? It looks I have to solder the reset pin to a pin on the MCU but looking at the EVB schematic it looks like it is wired up directly? I am new to JTAG and this process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to solve this problem if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much and have a great day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 23:12:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720798#M2067</guid>
      <dc:creator>andrew_thornbor</dc:creator>
      <dc:date>2019-06-03T23:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: InitTarget(): PCode returned with error code -1</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720799#M2068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your chip is secured, back door key disabled and mass erase disabled - there is no way how to recovery MCU (as far as I know). Technically JTAG connection is cut off and you can't connect to MCU even with RAM target. If you are able connect at least with RAM Target project - you can recovery your MCU.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2019 06:42:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/ERROR-InitTarget-PCode-returned-with-error-code-1/m-p/720799#M2068</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2019-06-04T06:42:55Z</dc:date>
    </item>
  </channel>
</rss>

