<?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中的主题 KL03 Bootloader Not Executing Commands</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03-Bootloader-Not-Executing-Commands/m-p/964633#M55104</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a KL03Z32M4 and need to perform certain operations requested via kblhost utility over I2C.&lt;/P&gt;&lt;P&gt;The bootloader version is 1.0.0 .&lt;/P&gt;&lt;P&gt;I've configured the BCA as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;BCA = {0x6766636B, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x88135002}; //I2C slave (0x50),5000ms timeout&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and the FlashConfig:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFF37FE};&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Some commands work fine (get-property, flash-erase, flash-image..) but I need to able to send a software reset to the MCU. I tried the &lt;STRONG&gt;kblhost reset&lt;/STRONG&gt; command but get no result (although bytes exchanged between host and target comply with the protocol). I also tried to force a reset by using the &lt;STRONG&gt;execute &lt;/STRONG&gt;command and supplying the starting address of the reset vector and initial stack pointer but with no result.&lt;/P&gt;&lt;P&gt;I attached via external debugger and noticed the bootloader enters the following loop, which never exits:&lt;/P&gt;&lt;P&gt;1c001924:&amp;nbsp;&amp;nbsp; ldr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r1, [r3, #48]&amp;nbsp;&amp;nbsp; ; 0x30&lt;BR /&gt;1c001926:&amp;nbsp;&amp;nbsp; cmp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r1, r2&lt;BR /&gt;1c001928:&amp;nbsp;&amp;nbsp; bne.n&amp;nbsp;&amp;nbsp; 0x1c001924&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the KL03 family manual both reset and execute instructions are supported. Am I missing something? I could not find bootloader v1.0.0 manual or source code anywhere. Is it possibile there is a bug in the bootloader itself?&lt;BR /&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Oct 2019 15:25:43 GMT</pubDate>
    <dc:creator>rmps</dc:creator>
    <dc:date>2019-10-09T15:25:43Z</dc:date>
    <item>
      <title>KL03 Bootloader Not Executing Commands</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03-Bootloader-Not-Executing-Commands/m-p/964633#M55104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a KL03Z32M4 and need to perform certain operations requested via kblhost utility over I2C.&lt;/P&gt;&lt;P&gt;The bootloader version is 1.0.0 .&lt;/P&gt;&lt;P&gt;I've configured the BCA as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;BCA = {0x6766636B, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x88135002}; //I2C slave (0x50),5000ms timeout&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and the FlashConfig:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFF37FE};&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Some commands work fine (get-property, flash-erase, flash-image..) but I need to able to send a software reset to the MCU. I tried the &lt;STRONG&gt;kblhost reset&lt;/STRONG&gt; command but get no result (although bytes exchanged between host and target comply with the protocol). I also tried to force a reset by using the &lt;STRONG&gt;execute &lt;/STRONG&gt;command and supplying the starting address of the reset vector and initial stack pointer but with no result.&lt;/P&gt;&lt;P&gt;I attached via external debugger and noticed the bootloader enters the following loop, which never exits:&lt;/P&gt;&lt;P&gt;1c001924:&amp;nbsp;&amp;nbsp; ldr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r1, [r3, #48]&amp;nbsp;&amp;nbsp; ; 0x30&lt;BR /&gt;1c001926:&amp;nbsp;&amp;nbsp; cmp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r1, r2&lt;BR /&gt;1c001928:&amp;nbsp;&amp;nbsp; bne.n&amp;nbsp;&amp;nbsp; 0x1c001924&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the KL03 family manual both reset and execute instructions are supported. Am I missing something? I could not find bootloader v1.0.0 manual or source code anywhere. Is it possibile there is a bug in the bootloader itself?&lt;BR /&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 15:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03-Bootloader-Not-Executing-Commands/m-p/964633#M55104</guid>
      <dc:creator>rmps</dc:creator>
      <dc:date>2019-10-09T15:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: KL03 Bootloader Not Executing Commands</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03-Bootloader-Not-Executing-Commands/m-p/964634#M55105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Addendum:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;attached with my debugger&lt;/STRONG&gt; the following procedure works in order to reset the MCU:&lt;/P&gt;&lt;P&gt;1) send the execute command with ResetISR starting address and initial stack pointer;&lt;/P&gt;&lt;P&gt;2) send ANY blhost command (for eg. get-property).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set a breakpoint at the start of ResetISR to make sure the MCU effectively gets to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why doesn't the procedure work when debugger is detached?&lt;/P&gt;&lt;P&gt;And why do I need to send the second command in order for the first to execute? Is this a limitation of bootloader v1.0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 15:50:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03-Bootloader-Not-Executing-Commands/m-p/964634#M55105</guid>
      <dc:creator>rmps</dc:creator>
      <dc:date>2019-10-09T15:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: KL03 Bootloader Not Executing Commands</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03-Bootloader-Not-Executing-Commands/m-p/964635#M55106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you getting a return message from the blhost command? If so, what kind of failure message are you getting.&lt;/P&gt;&lt;P&gt;If possible, could you update to the latest version? Does it result the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2019 14:33:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03-Bootloader-Not-Executing-Commands/m-p/964635#M55106</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-10-11T14:33:40Z</dc:date>
    </item>
  </channel>
</rss>

