<?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>topic Re: KW41Z J-LINK Error PCode -1 cannot connect under reset in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-J-LINK-Error-PCode-1-cannot-connect-under-reset/m-p/989896#M55656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the DCDC mode that you are working on? I want to be sure why are you getting the&amp;nbsp;VTREF of 1.813V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reset loop that you are seeing is because the flash memory is empty, so when it tries to fetch the instructions the devices enter to a hard fault, the reset process starts again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2020 21:40:44 GMT</pubDate>
    <dc:creator>mario_castaneda</dc:creator>
    <dc:date>2020-01-13T21:40:44Z</dc:date>
    <item>
      <title>KW41Z J-LINK Error PCode -1 cannot connect under reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-J-LINK-Error-PCode-1-cannot-connect-under-reset/m-p/989893#M55653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an Arrow SmartEverything &lt;A href="https://static6.arrow.com/aropdfconversion/e839bba7217cbbec15c2b29d86b0a535bc8149d6/mcs27561.pdf"&gt;MCS27561-TIGER&lt;/A&gt; board with a Kinetis KW41Z512VHT4 which I have been using with MCUXpresso IDE 11.1 and had luck getting it to program the "hello world" example and "bluetooth beacon freertos" example via a J-LINK mini on port J10. I went to program the "bluetooth ble shell freertos example" and the red LED connected to&amp;nbsp;KW41 PTC1 continuously flashes and I can no longer connect to the board with the J-LINK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J-LINK commander initiates a Connect Under Reset and I notice the RGB LED plash green for a moment then back to flashing red and J-LINK commander error's out with "Error: InitTarget(): PCode returned with error code -1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to wipe the KW41 to a blank slate or for a flash mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;~Nick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full J-LINK Commander output below:&lt;/P&gt;&lt;P&gt;SEGGER J-Link Commander V6.54c (Compiled Nov 7 2019 17:01:56)&lt;BR /&gt;DLL version V6.54c, compiled Nov 7 2019 17:01:02&lt;/P&gt;&lt;P&gt;Connecting to J-Link via USB...O.K.&lt;BR /&gt;Firmware: J-Link EDU Mini V1 compiled Oct 22 2019 16:28:45&lt;BR /&gt;Hardware version: V1.00&lt;BR /&gt;S/N: 801009322&lt;BR /&gt;License(s): FlashBP, GDB&lt;BR /&gt;VTref=1.813V&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Type "connect" to establish a target connection, '?' for help&lt;BR /&gt;J-Link&amp;gt;connect&lt;BR /&gt;Please specify device / core. &amp;lt;Default&amp;gt;: MKW41Z512XXX4&lt;BR /&gt;Type '?' for selection dialog&lt;BR /&gt;Device&amp;gt;&lt;BR /&gt;Please specify target interface:&lt;BR /&gt; J) JTAG (Default)&lt;BR /&gt; S) SWD&lt;BR /&gt; T) cJTAG&lt;BR /&gt;TIF&amp;gt;S&lt;BR /&gt;Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz&lt;BR /&gt;Speed&amp;gt;&lt;BR /&gt;Device "MKW41Z512XXX4" selected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;InitTarget()&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;InitTarget()&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;Connect Under Reset&lt;/P&gt;&lt;P&gt;****** Error: InitTarget(): PCode returned with error code -1&lt;/P&gt;&lt;P&gt;InitTarget()&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;InitTarget()&lt;BR /&gt;Connect Under Reset&lt;BR /&gt;Connect Under Reset&lt;/P&gt;&lt;P&gt;****** Error: InitTarget(): PCode returned with error code -1&lt;/P&gt;&lt;P&gt;Cannot connect to target.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:38:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-J-LINK-Error-PCode-1-cannot-connect-under-reset/m-p/989893#M55653</guid>
      <dc:creator>nicholas_powers</dc:creator>
      <dc:date>2020-01-09T16:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: KW41Z J-LINK Error PCode -1 cannot connect under reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-J-LINK-Error-PCode-1-cannot-connect-under-reset/m-p/989894#M55654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please be sure that the KW41 is powered. You have VTref=1.813V as your reference.&lt;/P&gt;&lt;P&gt;What is the DCDC set up that you have?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2020 02:48:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-J-LINK-Error-PCode-1-cannot-connect-under-reset/m-p/989894#M55654</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2020-01-10T02:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: KW41Z J-LINK Error PCode -1 cannot connect under reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-J-LINK-Error-PCode-1-cannot-connect-under-reset/m-p/989895#M55655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J-Link commander is showing a VTREF of 1.810V, the J-LINK Mini I am using does not support a fixed VTREF so I can't explicitly set VTREF to 1.813V. Is the 3mV difference a significant factor? Another board on hand is programming fine but in Commander it is showing a VTREF of 3.298V. The boards seem to be identifying differently to the J-Link Mini.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Power is currently fed from USB to an 3.3V 1A LDO then into the KW41Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What makes me think that I am stuck in a reset loop is that I have another identical board here which runs and programs fine but I have not tested the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;"bluetooth beacon freertos" example&lt;SPAN&gt;&amp;nbsp;out of fear of bricking another board.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Is there a way to force a flash erase on the KW41Z to kick it out of this reset loop?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;~Nick&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 16:44:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-J-LINK-Error-PCode-1-cannot-connect-under-reset/m-p/989895#M55655</guid>
      <dc:creator>nicholas_powers</dc:creator>
      <dc:date>2020-01-13T16:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: KW41Z J-LINK Error PCode -1 cannot connect under reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-J-LINK-Error-PCode-1-cannot-connect-under-reset/m-p/989896#M55656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the DCDC mode that you are working on? I want to be sure why are you getting the&amp;nbsp;VTREF of 1.813V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reset loop that you are seeing is because the flash memory is empty, so when it tries to fetch the instructions the devices enter to a hard fault, the reset process starts again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 21:40:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-J-LINK-Error-PCode-1-cannot-connect-under-reset/m-p/989896#M55656</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2020-01-13T21:40:44Z</dc:date>
    </item>
  </channel>
</rss>

