<?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>MCUXpresso GeneralのトピックLPC-Link2 with CMSIS-DAP &amp; OpenOCD as Device Flasher</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/LPC-Link2-with-CMSIS-DAP-OpenOCD-as-Device-Flasher/m-p/1083893#M3752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have completed development of a product based on the MKL27Z256VFM4 and setup a small programming station with a LPC-Link2 with CMSIS-DAP &amp;amp; OpenOCD. Setting up the LPC-Link2 with CMSIS-DAP went flawlessly. We are using the command line:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;openocd -d2 -f interface/cmsis-dap.cfg -f target/klx.cfg -c "init" -c"reset halt" -c "flash write_image erase BabyFrogVFM4cmpA.bin 0"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but only having partial success:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Open On-Chip Debugger 0.10.0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Licensed under GNU GPL v2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;For bug reports, read&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;http://openocd.org/doc/doxygen/bugs.html&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;debug_level: 2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : auto-selecting first available session transport "swd". To override use 'transport select &amp;lt;transport&amp;gt;'.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : add flash_bank kinetis klx.flash&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;adapter speed: 1000 kHz&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;none separate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cortex_m reset_config sysresetreq&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : CMSIS-DAP: SWD&amp;nbsp; Supported&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : CMSIS-DAP: JTAG Supported&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : CMSIS-DAP: Interface Initialised (SWD)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : CMSIS-DAP: FW Version = 1.10&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : CMSIS-DAP: Interface ready&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : clock speed 1000 kHz&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : SWD DPIDR 0x0bc11477&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: MDM: failed to read ID register&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : SWD DPIDR 0x0bc11477&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : klx.cpu: hardware has 2 breakpoints, 2 watchpoints&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : MDM: Chip is unsecured. Continuing.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;target halted due to debug-request, current mode: Thread &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;xPSR: 0x61000000 pc: 0x1c0000c0 msp: 0x20000688&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;auto erase enabled&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : Probing flash info for bank 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Warn : This device supports Program Longword execution only.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Warn : This device supports Program Longword execution only.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Warn : Flash Configuration Field written.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Warn : Reset or power off the device to make settings effective.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Warn : This device supports Program Longword execution only.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: corrupted fifo read pointer 0xffffffff&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: timed out while waiting for target halted&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;target halted due to debug-request, current mode: Handler HardFault&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;xPSR: 0x21000003 pc: 0x0000adbc msp: 0x20005fd8&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: error waiting for target flash write algorithm&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: Error executing kinetis Flash programming algorithm&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: error writing to flash at address 0x00000000 at offset 0x00000000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am new to OpenOCD and CMSIS-DAP. We developed with a Segger J-Link. Is my command line correct?&lt;/P&gt;&lt;P&gt;Digging around in a computer where OpenOCD was used a few years and noticed the target config file was kl2x.cfg where the OpenOCD mainline only has klx.cfg. Does NXP have more correct target files for OpenOCD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2020 02:15:55 GMT</pubDate>
    <dc:creator>RobertRau1z</dc:creator>
    <dc:date>2020-05-28T02:15:55Z</dc:date>
    <item>
      <title>LPC-Link2 with CMSIS-DAP &amp; OpenOCD as Device Flasher</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC-Link2-with-CMSIS-DAP-OpenOCD-as-Device-Flasher/m-p/1083893#M3752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have completed development of a product based on the MKL27Z256VFM4 and setup a small programming station with a LPC-Link2 with CMSIS-DAP &amp;amp; OpenOCD. Setting up the LPC-Link2 with CMSIS-DAP went flawlessly. We are using the command line:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;openocd -d2 -f interface/cmsis-dap.cfg -f target/klx.cfg -c "init" -c"reset halt" -c "flash write_image erase BabyFrogVFM4cmpA.bin 0"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but only having partial success:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Open On-Chip Debugger 0.10.0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Licensed under GNU GPL v2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;For bug reports, read&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;http://openocd.org/doc/doxygen/bugs.html&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;debug_level: 2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : auto-selecting first available session transport "swd". To override use 'transport select &amp;lt;transport&amp;gt;'.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : add flash_bank kinetis klx.flash&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;adapter speed: 1000 kHz&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;none separate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cortex_m reset_config sysresetreq&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : CMSIS-DAP: SWD&amp;nbsp; Supported&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : CMSIS-DAP: JTAG Supported&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : CMSIS-DAP: Interface Initialised (SWD)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : CMSIS-DAP: FW Version = 1.10&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : CMSIS-DAP: Interface ready&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : clock speed 1000 kHz&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : SWD DPIDR 0x0bc11477&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: MDM: failed to read ID register&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : SWD DPIDR 0x0bc11477&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : klx.cpu: hardware has 2 breakpoints, 2 watchpoints&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : MDM: Chip is unsecured. Continuing.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;target halted due to debug-request, current mode: Thread &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;xPSR: 0x61000000 pc: 0x1c0000c0 msp: 0x20000688&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;auto erase enabled&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Info : Probing flash info for bank 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Warn : This device supports Program Longword execution only.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Warn : This device supports Program Longword execution only.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Warn : Flash Configuration Field written.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Warn : Reset or power off the device to make settings effective.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Warn : This device supports Program Longword execution only.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: corrupted fifo read pointer 0xffffffff&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: timed out while waiting for target halted&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;target halted due to debug-request, current mode: Handler HardFault&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;xPSR: 0x21000003 pc: 0x0000adbc msp: 0x20005fd8&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: error waiting for target flash write algorithm&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: Error executing kinetis Flash programming algorithm&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: error writing to flash at address 0x00000000 at offset 0x00000000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am new to OpenOCD and CMSIS-DAP. We developed with a Segger J-Link. Is my command line correct?&lt;/P&gt;&lt;P&gt;Digging around in a computer where OpenOCD was used a few years and noticed the target config file was kl2x.cfg where the OpenOCD mainline only has klx.cfg. Does NXP have more correct target files for OpenOCD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 02:15:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC-Link2-with-CMSIS-DAP-OpenOCD-as-Device-Flasher/m-p/1083893#M3752</guid>
      <dc:creator>RobertRau1z</dc:creator>
      <dc:date>2020-05-28T02:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC-Link2 with CMSIS-DAP &amp; OpenOCD as Device Flasher</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC-Link2-with-CMSIS-DAP-OpenOCD-as-Device-Flasher/m-p/1083894#M3753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you to check the following blog from a colleague that explains how to debug FRDM-KL25Z using OpenOCD with CMSIS-DAP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2015/03/22/openocdcmsis-dap-debugging-with-eclipse-and-without-an-ide/" title="https://mcuoneclipse.com/2015/03/22/openocdcmsis-dap-debugging-with-eclipse-and-without-an-ide/"&gt;OpenOCD/CMSIS-DAP Debugging with Eclipse and without an IDE | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 20:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC-Link2-with-CMSIS-DAP-OpenOCD-as-Device-Flasher/m-p/1083894#M3753</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-05-29T20:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC-Link2 with CMSIS-DAP &amp; OpenOCD as Device Flasher</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC-Link2-with-CMSIS-DAP-OpenOCD-as-Device-Flasher/m-p/1083895#M3754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Felipe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, I have used Erich's site as a life-line for many years, really good stuff. As I am not debugging, just flashing, I tried his kinetis.cfg without the GDB attach at the end. I put the file in the targets directory, and am still having trouble.&amp;nbsp; OpenOCD changes things from version to version, he was on 0.8 for that post and I am using 0.10. Maybe I still don't understand the proper target file to use, Years ago NXP distributed a kl2x.cfg, OpenOCD now includes a klx.cfg, Erich has this kinetis.cfg, and I found this 11/2014 post for the MKL26Z256 (very similar to my MKL27Z256VFM4):&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://sourceforge.net/p/openocd/mailman/message/32767404/" title="https://sourceforge.net/p/openocd/mailman/message/32767404/"&gt;OpenOCD - Open On-Chip Debugger / [OpenOCD-user] KL26 flash erase&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still either get the&lt;/P&gt;&lt;P&gt;corrupted fifo read pointer 0xffffffff error or an error failed to write memory at 0x200002b0.&lt;/P&gt;&lt;P&gt;What is the proper target to use for openOCD 0.10 and the MKL27Z256VFM4?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2020 11:49:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC-Link2-with-CMSIS-DAP-OpenOCD-as-Device-Flasher/m-p/1083895#M3754</guid>
      <dc:creator>RobertRau1z</dc:creator>
      <dc:date>2020-05-30T11:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC-Link2 with CMSIS-DAP &amp; OpenOCD as Device Flasher</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC-Link2-with-CMSIS-DAP-OpenOCD-as-Device-Flasher/m-p/1083896#M3755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I am not aware of the changes of OpenOCD in the version you are using so I do not know which cfg file is compatible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried using P&amp;amp;E or Segger firmware?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, when you download the SDK for the FRDM-KL27Z in the docs folder you will find a pdf named "Getting Started with MCUXpresso SDK". Section 6 of this document explains how to run an SDK example using ARM GCC.&amp;nbsp;This is the command line we recommend using to build, run, and debug demo applications and necessary driver libraries provided in the MCUXpresso SDK. Maybe it could also be useful for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 15:34:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC-Link2-with-CMSIS-DAP-OpenOCD-as-Device-Flasher/m-p/1083896#M3755</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-06-04T15:34:32Z</dc:date>
    </item>
  </channel>
</rss>

