<?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 Problem with connect to MRB-KW019032EU by J-Link. in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-connect-to-MRB-KW019032EU-by-J-Link/m-p/721616#M44208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I’m having a problem with connect to MKW01Z128 on MRB-KW019032EU board. I took the J-Link, connect it to J5 on MRB (VTref to 1, GND to 3, SWDIO to 2, SWCLK to 4, RESET to 10).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="mrb_jlink_na_soplyax.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4044i26552629415CD443/image-size/large?v=v2&amp;amp;px=999" role="button" title="mrb_jlink_na_soplyax.jpg" alt="mrb_jlink_na_soplyax.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connection from J-Link Commander is successful:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Please specify device / core. &amp;lt;Default&amp;gt;: MKW01Z128XXX4&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Type '?' for selection dialog&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Device&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Please specify target interface:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; J) JTAG (Default)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; S) SWD&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;TIF&amp;gt;S&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Speed&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Device "MKW01Z128XXX4" selected.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Found SWD-DP with ID 0x0BC11477&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Found SWD-DP with ID 0x0BC11477&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;AP-IDR: 0x04770031, Type: AHB-AP&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;AHB-AP ROM: 0xF0002000 (Base addr. of first ROM table)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Found Cortex-M0 r0p0, Little endian.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FPUnit: 2 code (BP) slots and 0 literal slots&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CoreSight components:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 0 @ F0002000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 0 [0]: FFFFE000, CID: B105900D, PID: 000BB932 MTB-M0+&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 0 [1]: FFFFF000, CID: B105900D, PID: 0008E000 MTBDWT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 0 [2]: F00FD000, CID: B105100D, PID: 000BB4C0 ROM Table&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 1 @ E00FF000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 1 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 1 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 1 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Cortex-M0 identified.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But when I try to perform any operation with board (i.e. erase flash, download)&amp;nbsp;from within IAR,&amp;nbsp;I'm getting the following fault: "Failed to read CPUID for Cortex device. "&lt;/P&gt;&lt;P&gt;I get a similar error when trying to work with a board using the J-Flash utility: connect is succesfull:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Connecting ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Connecting via USB to J-Link device 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Target interface speed: 4000 kHz (Fixed)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - VTarget = 3.047V&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Initializing CPU core (Init sequence) ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Initialized successfully&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Target interface speed: 4000 kHz (Fixed)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - J-Link found 1 JTAG device. Core ID: 0x0BC11477 (None)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Connected successfully&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but when I try to erase chip, I'm getting fault:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Erasing chip ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - 128 sectors, 1 range, 0x0 - 0x1FFFF&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Start of preparing flash programming&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - ERROR: Failed to download RAMCode.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - ERROR: Failed to prepare for programming.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Failed to download RAMCode!&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - End of preparing flash programming&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - ERROR: Failed to erase chip&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Oct 2017 12:05:41 GMT</pubDate>
    <dc:creator>alexandrsmirnov</dc:creator>
    <dc:date>2017-10-25T12:05:41Z</dc:date>
    <item>
      <title>Problem with connect to MRB-KW019032EU by J-Link.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-connect-to-MRB-KW019032EU-by-J-Link/m-p/721616#M44208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I’m having a problem with connect to MKW01Z128 on MRB-KW019032EU board. I took the J-Link, connect it to J5 on MRB (VTref to 1, GND to 3, SWDIO to 2, SWCLK to 4, RESET to 10).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="mrb_jlink_na_soplyax.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4044i26552629415CD443/image-size/large?v=v2&amp;amp;px=999" role="button" title="mrb_jlink_na_soplyax.jpg" alt="mrb_jlink_na_soplyax.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connection from J-Link Commander is successful:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Please specify device / core. &amp;lt;Default&amp;gt;: MKW01Z128XXX4&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Type '?' for selection dialog&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Device&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Please specify target interface:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; J) JTAG (Default)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; S) SWD&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;TIF&amp;gt;S&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Speed&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Device "MKW01Z128XXX4" selected.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Found SWD-DP with ID 0x0BC11477&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Found SWD-DP with ID 0x0BC11477&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;AP-IDR: 0x04770031, Type: AHB-AP&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;AHB-AP ROM: 0xF0002000 (Base addr. of first ROM table)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Found Cortex-M0 r0p0, Little endian.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FPUnit: 2 code (BP) slots and 0 literal slots&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CoreSight components:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 0 @ F0002000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 0 [0]: FFFFE000, CID: B105900D, PID: 000BB932 MTB-M0+&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 0 [1]: FFFFF000, CID: B105900D, PID: 0008E000 MTBDWT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 0 [2]: F00FD000, CID: B105100D, PID: 000BB4C0 ROM Table&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 1 @ E00FF000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 1 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 1 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ROMTbl 1 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Cortex-M0 identified.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But when I try to perform any operation with board (i.e. erase flash, download)&amp;nbsp;from within IAR,&amp;nbsp;I'm getting the following fault: "Failed to read CPUID for Cortex device. "&lt;/P&gt;&lt;P&gt;I get a similar error when trying to work with a board using the J-Flash utility: connect is succesfull:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Connecting ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Connecting via USB to J-Link device 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Target interface speed: 4000 kHz (Fixed)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - VTarget = 3.047V&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Initializing CPU core (Init sequence) ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Initialized successfully&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Target interface speed: 4000 kHz (Fixed)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - J-Link found 1 JTAG device. Core ID: 0x0BC11477 (None)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Connected successfully&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but when I try to erase chip, I'm getting fault:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Erasing chip ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - 128 sectors, 1 range, 0x0 - 0x1FFFF&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - Start of preparing flash programming&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - ERROR: Failed to download RAMCode.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - ERROR: Failed to prepare for programming.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Failed to download RAMCode!&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - End of preparing flash programming&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; - ERROR: Failed to erase chip&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 12:05:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-connect-to-MRB-KW019032EU-by-J-Link/m-p/721616#M44208</guid>
      <dc:creator>alexandrsmirnov</dc:creator>
      <dc:date>2017-10-25T12:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with connect to MRB-KW019032EU by J-Link.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-connect-to-MRB-KW019032EU-by-J-Link/m-p/721617#M44209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;Alexandr Smirnov,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some suggestions/questions that you can try:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make sure that in your IAR project the correct device is selected "MKW01Z128xxx4".&lt;/LI&gt;&lt;LI&gt;Update your J-Link software and make sure that IAR is using the latest "JLinkARM.dll"&lt;/LI&gt;&lt;LI&gt;Have you tried issuing the "erase" command from the J-Link commander after connecting to the &lt;SPAN&gt;MKW01Z128xxx4?&amp;nbsp;&lt;/SPAN&gt;Please share the log if there are errors.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know your findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 18:46:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-connect-to-MRB-KW019032EU-by-J-Link/m-p/721617#M44209</guid>
      <dc:creator>gerardo_rodriguez</dc:creator>
      <dc:date>2017-10-30T18:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with connect to MRB-KW019032EU by J-Link.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-connect-to-MRB-KW019032EU-by-J-Link/m-p/721618#M44210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Gerardo!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Yes, in IAR "Project -&amp;gt; Options -&amp;gt; General -&amp;gt; Device "Freescale MKW01Z128xxx4" is selected.&lt;/LI&gt;&lt;LI&gt;J-Link firmware updated: "Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46". I tried to work with DLL versions V6.12j and&amp;nbsp;&amp;nbsp;V6.20h (latest now).&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I&amp;nbsp;&lt;SPAN&gt;tried "erase" from J-Link commander after connecting, result below:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;J-Link&amp;gt;erase&lt;BR /&gt;Erasing device (MKW01Z128xxx4)...&lt;/P&gt;&lt;P&gt;****** Error: Failed to download RAMCode.&lt;BR /&gt;Failed to prepare for programming.&lt;BR /&gt;Failed to download RAMCode!&lt;BR /&gt;ERROR: Erase returned with error code -1.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 15:13:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-connect-to-MRB-KW019032EU-by-J-Link/m-p/721618#M44210</guid>
      <dc:creator>alexandrsmirnov</dc:creator>
      <dc:date>2017-11-02T15:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with connect to MRB-KW019032EU by J-Link.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-connect-to-MRB-KW019032EU-by-J-Link/m-p/721619#M44211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexandr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this issue only present on this board? Do you have another&amp;nbsp;MRB-KW01 board to verify this? I would recommend using a &lt;A href="https://www.segger.com/products/debug-probes/j-link/accessories/adapters/9-pin-cortex-m-adapter/"&gt;J-Link 9-Pin Cortex-M Adapter&lt;/A&gt;&amp;nbsp;to ensure that the connections aren't loose.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try the "unlock kinetis" command to make sure that the chip is unsecured before trying to erase the chip? The unlock kinetis command will trigger a mass erase and clear the security bits in the KW01.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, it would be helpful to test this in another computer too see if the behavior is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know your findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 19:02:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-connect-to-MRB-KW019032EU-by-J-Link/m-p/721619#M44211</guid>
      <dc:creator>gerardo_rodriguez</dc:creator>
      <dc:date>2017-11-02T19:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with connect to MRB-KW019032EU by J-Link.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-connect-to-MRB-KW019032EU-by-J-Link/m-p/721620#M44212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for support.&amp;nbsp;The problem was in the faulty J-Link.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to flash an example from KSDK&amp;nbsp;when I used another J-Link. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 18:54:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-connect-to-MRB-KW019032EU-by-J-Link/m-p/721620#M44212</guid>
      <dc:creator>alexandrsmirnov</dc:creator>
      <dc:date>2017-11-22T18:54:44Z</dc:date>
    </item>
  </channel>
</rss>

