<?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: Custom built KL25Z bootloader not responding.  Debugging hints? in MCU Bootloader</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/Custom-built-KL25Z-bootloader-not-responding-Debugging-hints/m-p/711060#M577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H3 id="toc-hId-1592166898"&gt;Update 1:&lt;/H3&gt;&lt;P&gt;Partial solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I compiled the bootloader for the Debug target, and it appeared to be&amp;nbsp;waiting for the J-Link for a start command: When launched the bootloader with KDS_v3 and the Segger J-Link, started it running, and *then* launched blhost, it worked without error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;$ blhost --p /dev/cu.usbmodem204,57600 --verbose --debug -- get-property 0x01
[5a a6]
&amp;lt;5a&amp;gt;
Ping responded in 1 attempt(s)
&amp;lt;a7&amp;gt;
&amp;lt;00 02 01 50 00 00 aa ea&amp;gt;
Framing protocol version = 0x50010200, options = 0x0
Inject command 'get-property'
[5a a4 0c 00 4b 33 07 00 00 02 01 00 00 00 00 00 00 00]
&amp;lt;5a&amp;gt;
&amp;lt;a1&amp;gt;
&amp;lt;5a&amp;gt;
&amp;lt;a4&amp;gt;
&amp;lt;0c 00&amp;gt;
&amp;lt;e0 59&amp;gt;
&amp;lt;a7 00 00 02 00 00 00 00 01 00 02 4b&amp;gt;
Successful response to command 'get-property(current-version)'
 - took 0.000 seconds
[5a a1]
Response status = 0 (0x0) Success.
Response word 1 = 1258422273 (0x4b020001)
Current Version = K2.0.1


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Aug 2017 19:32:14 GMT</pubDate>
    <dc:creator>robertpoor</dc:creator>
    <dc:date>2017-08-30T19:32:14Z</dc:date>
    <item>
      <title>Custom built KL25Z bootloader not responding.  Debugging hints?</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Custom-built-KL25Z-bootloader-not-responding-Debugging-hints/m-p/711059#M576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/457248"&gt;Following guidance from Erich Styger&lt;/A&gt;, I have cloned a copy of &amp;lt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ProjectDir&amp;gt;/NXP_Kinetis_Bootloader_2_0_0/targets/MKL25Z4/kds/freedom_bootloader. &amp;nbsp;Just for testing purposes, I made a single change: I bumped the version number to "K2.0.1" from "K.2.0.0". &amp;nbsp;It compiles without error, but I'm unable to load and run it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/0B2_wIfsXTC9DNE9UMVVEcWpFTzg/view?usp=sharing"&gt;Here is a link to the project.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Here's a synopsis of what I did (and what happened):&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I compiled the project, using Debug as a target.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Looking at freedom_bootloader.map, I verified that the image ended below 0xa000. &amp;nbsp;(__etext = 0x79c8).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;`$ arm-none-eabi-objcopy freedom_bootloader.elf freedom_bootloader.srec`&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Using the Mac finder, I dragged freedom_bootloader.srec to the /Volumes/FRDM-KL25ZJ/ mount point. &amp;nbsp;This copied the file to the FRDM-KL25Z board via the USB connection.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Pushed the [reset] button.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;`blhost --p /dev/cu.usbmodem202 --verbose --debug -- get-property 0x01` printed [5a a6], but then hung.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;The question: Any idea why it's not running? &amp;nbsp;Or can you suggest steps I could take to debug this? &amp;nbsp;(I do have a Segger JLINK and a JTAG connector soldered to the FRDM-KL25Z board.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Some other notes:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;I previously successfully loaded precompiled KL25Z bootloader by dragging it to /Volumes/FRDM-KL25ZJ/ mount point. &amp;nbsp;I then used blhost to erase flash&amp;nbsp;and load the precompiled led-demo-8000 at 0x8000. &amp;nbsp;It ran without trouble.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;- Robert Poor&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 04:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Custom-built-KL25Z-bootloader-not-responding-Debugging-hints/m-p/711059#M576</guid>
      <dc:creator>robertpoor</dc:creator>
      <dc:date>2017-08-30T04:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom built KL25Z bootloader not responding.  Debugging hints?</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Custom-built-KL25Z-bootloader-not-responding-Debugging-hints/m-p/711060#M577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H3 id="toc-hId-1592166898"&gt;Update 1:&lt;/H3&gt;&lt;P&gt;Partial solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I compiled the bootloader for the Debug target, and it appeared to be&amp;nbsp;waiting for the J-Link for a start command: When launched the bootloader with KDS_v3 and the Segger J-Link, started it running, and *then* launched blhost, it worked without error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;$ blhost --p /dev/cu.usbmodem204,57600 --verbose --debug -- get-property 0x01
[5a a6]
&amp;lt;5a&amp;gt;
Ping responded in 1 attempt(s)
&amp;lt;a7&amp;gt;
&amp;lt;00 02 01 50 00 00 aa ea&amp;gt;
Framing protocol version = 0x50010200, options = 0x0
Inject command 'get-property'
[5a a4 0c 00 4b 33 07 00 00 02 01 00 00 00 00 00 00 00]
&amp;lt;5a&amp;gt;
&amp;lt;a1&amp;gt;
&amp;lt;5a&amp;gt;
&amp;lt;a4&amp;gt;
&amp;lt;0c 00&amp;gt;
&amp;lt;e0 59&amp;gt;
&amp;lt;a7 00 00 02 00 00 00 00 01 00 02 4b&amp;gt;
Successful response to command 'get-property(current-version)'
 - took 0.000 seconds
[5a a1]
Response status = 0 (0x0) Success.
Response word 1 = 1258422273 (0x4b020001)
Current Version = K2.0.1


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 19:32:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Custom-built-KL25Z-bootloader-not-responding-Debugging-hints/m-p/711060#M577</guid>
      <dc:creator>robertpoor</dc:creator>
      <dc:date>2017-08-30T19:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom built KL25Z bootloader not responding.  Debugging hints?</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Custom-built-KL25Z-bootloader-not-responding-Debugging-hints/m-p/711061#M578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H3&gt;Update 2:&lt;/H3&gt;&lt;P&gt;I compiled the project for the Release target. &amp;nbsp;And though I can get it to start up via the KDS_v3 / Segger J-Link and respond to the blhost get-property command, it didn't start up on it own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I had the bright idea of disconnecting the JTAG connector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it now works. &amp;nbsp;So to make a custom bootloader work, make sure that you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Compile for the Release target&lt;/P&gt;&lt;P&gt;* Disconnect the JTAG connector&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 20:35:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Custom-built-KL25Z-bootloader-not-responding-Debugging-hints/m-p/711061#M578</guid>
      <dc:creator>robertpoor</dc:creator>
      <dc:date>2017-08-30T20:35:21Z</dc:date>
    </item>
  </channel>
</rss>

