<?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>Kinetis Microcontrollers中的主题 Trouble flashing mk20dx128vlf5 with openocd</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-flashing-mk20dx128vlf5-with-openocd/m-p/955894#M54897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to flash a&amp;nbsp;mk20dx128vlf5 with OpenOCD 9.0 rc1and a Jlink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to get a good debugging setup. I have the following as my openocd.cfg:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;source [find interface/jlink.cfg]&lt;BR /&gt;# Freescale Kinetis K20 device. Should be compatible with K40,&lt;BR /&gt;# just set a custom name.&lt;BR /&gt;set CHIPNAME k20&lt;BR /&gt;source [find target/k40.cfg]&lt;/P&gt;&lt;P&gt;adapter_khz 1000&lt;BR /&gt;reset_config srst_only&lt;/P&gt;&lt;P&gt;# Scratch RAM for verify&lt;BR /&gt;# XXX: This verify method is broken due to a problem with reset?&lt;BR /&gt;k20.cpu configure -work-area-phys 0x1FFFE000 -work-area-size 16384&lt;/P&gt;&lt;P&gt;# One 128K flash bank&lt;BR /&gt;flash bank pflash.0 kinetis 0x00000000 0x20000 0 4 $_TARGETNAME&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to flash with `/usr/local/bin/openocd -f ./openocd.cfg -c "program app-image.hex reset"`&lt;BR /&gt; results in&amp;nbsp;/openocd.cfg:29: Error: invalid command name "k20.cpu"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doe anyone know how to fix this issue or have another solution for flashing this mcu from Linux?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Sep 2019 21:44:04 GMT</pubDate>
    <dc:creator>chris_seto</dc:creator>
    <dc:date>2019-09-05T21:44:04Z</dc:date>
    <item>
      <title>Trouble flashing mk20dx128vlf5 with openocd</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-flashing-mk20dx128vlf5-with-openocd/m-p/955894#M54897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to flash a&amp;nbsp;mk20dx128vlf5 with OpenOCD 9.0 rc1and a Jlink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to get a good debugging setup. I have the following as my openocd.cfg:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;source [find interface/jlink.cfg]&lt;BR /&gt;# Freescale Kinetis K20 device. Should be compatible with K40,&lt;BR /&gt;# just set a custom name.&lt;BR /&gt;set CHIPNAME k20&lt;BR /&gt;source [find target/k40.cfg]&lt;/P&gt;&lt;P&gt;adapter_khz 1000&lt;BR /&gt;reset_config srst_only&lt;/P&gt;&lt;P&gt;# Scratch RAM for verify&lt;BR /&gt;# XXX: This verify method is broken due to a problem with reset?&lt;BR /&gt;k20.cpu configure -work-area-phys 0x1FFFE000 -work-area-size 16384&lt;/P&gt;&lt;P&gt;# One 128K flash bank&lt;BR /&gt;flash bank pflash.0 kinetis 0x00000000 0x20000 0 4 $_TARGETNAME&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to flash with `/usr/local/bin/openocd -f ./openocd.cfg -c "program app-image.hex reset"`&lt;BR /&gt; results in&amp;nbsp;/openocd.cfg:29: Error: invalid command name "k20.cpu"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doe anyone know how to fix this issue or have another solution for flashing this mcu from Linux?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 21:44:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-flashing-mk20dx128vlf5-with-openocd/m-p/955894#M54897</guid>
      <dc:creator>chris_seto</dc:creator>
      <dc:date>2019-09-05T21:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble flashing mk20dx128vlf5 with openocd</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-flashing-mk20dx128vlf5-with-openocd/m-p/955895#M54898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will suggest to use to install MCUXpresso, there you can find a&amp;nbsp;GUI&amp;nbsp;to flash your MCU.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87722iC7E843176EE43180/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;There you can find a window like the next one that will help you to flash the MCU.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87435i1E3FCD927EC7D996/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2019 22:14:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-flashing-mk20dx128vlf5-with-openocd/m-p/955895#M54898</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-09-09T22:14:36Z</dc:date>
    </item>
  </channel>
</rss>

