<?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のトピックRe: 'reset' command in secure binary does not work</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/reset-command-in-secure-binary-does-not-work/m-p/1762049#M65728</link>
    <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/222522"&gt;@Samson88&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Why do you want to use the reset command? The &lt;EM&gt;kStatusRomLdrUnexpectedCommand&lt;/EM&gt;&amp;nbsp;is telling you that the reset command is not expected to be there. That is why by deleting it cleans the error.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Could you please take a look at the following community post? There the reset command is never used, and it could be useful for your application: &lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Making-and-Downloading-Security-Image-for-Kinetis-Device/ta-p/1205429" target="_blank"&gt;Making and Downloading Security Image for Kinetis ... - NXP Community&lt;/A&gt;.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Kind regards, Raul.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2023 16:10:22 GMT</pubDate>
    <dc:creator>RaRo</dc:creator>
    <dc:date>2023-11-22T16:10:22Z</dc:date>
    <item>
      <title>'reset' command in secure binary does not work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/reset-command-in-secure-binary-does-not-work/m-p/1757369#M65702</link>
      <description>&lt;P&gt;I'm using the FRDM-K32L3A6 board.&amp;nbsp; I'm downloading a secure binary (.sb) file using this command:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;blhost -p COM5 receive-sb-file my_app.sb&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Here is the command file I use when creating the .sb file:&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;sources {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;myImage = "my_app.bin";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;section (0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;erase 0x0000..0x70000;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;load myImage &amp;gt; 0;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;reset;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The first two commands '&lt;FONT face="courier new,courier"&gt;erase&lt;/FONT&gt;' and '&lt;FONT face="courier new,courier"&gt;load&lt;/FONT&gt;' work.&amp;nbsp; But when 'reset' is reached, the ROM bootloader returns this status:&amp;nbsp; &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;kStatusRomLdrUnexpectedCommand.&amp;nbsp;&lt;/STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt; What does this error mean?&amp;nbsp; The only documenation I could find say it means&amp;nbsp; "T&lt;SPAN&gt;he command tag in the SB file is unexpected&lt;/SPAN&gt;" which tells me nothing more than what the error code already shows.&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If I remove the 'reset' there is no error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE:&amp;nbsp; I know I can reset using blhost, but for reasons I don't want to go into here (too long) I would prefer to do it using the secure binary command file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 16:59:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/reset-command-in-secure-binary-does-not-work/m-p/1757369#M65702</guid>
      <dc:creator>Samson88</dc:creator>
      <dc:date>2023-11-16T16:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: 'reset' command in secure binary does not work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/reset-command-in-secure-binary-does-not-work/m-p/1762049#M65728</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/222522"&gt;@Samson88&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Why do you want to use the reset command? The &lt;EM&gt;kStatusRomLdrUnexpectedCommand&lt;/EM&gt;&amp;nbsp;is telling you that the reset command is not expected to be there. That is why by deleting it cleans the error.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Could you please take a look at the following community post? There the reset command is never used, and it could be useful for your application: &lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Making-and-Downloading-Security-Image-for-Kinetis-Device/ta-p/1205429" target="_blank"&gt;Making and Downloading Security Image for Kinetis ... - NXP Community&lt;/A&gt;.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Kind regards, Raul.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 16:10:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/reset-command-in-secure-binary-does-not-work/m-p/1762049#M65728</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-11-22T16:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: 'reset' command in secure binary does not work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/reset-command-in-secure-binary-does-not-work/m-p/1762225#M65731</link>
      <description>&lt;P&gt;&lt;EM&gt;"Why do you want to use the reset command? "&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;After a firmware update, the device needs to be reset to boot the new image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"The reset command is never used"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In the elftosb user guide, the reset command is listed as a valid command (see pic).&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"reset command is not expected to be there"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Do you mean that the reset command must come after or before some other command?&amp;nbsp; "not expected" is vague and tells me nothing more than the error code.&lt;/P&gt;&lt;P&gt;Or are you telling me that the reset command is not supported by the ROM bootloader?&amp;nbsp; If that is the case then why does the elftosb user guide show that it's a valid command?&amp;nbsp; Is the documentation incorrect?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Samson88_0-1700695390656.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/251177i76738B7804F39796/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Samson88_0-1700695390656.png" alt="Samson88_0-1700695390656.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 23:26:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/reset-command-in-secure-binary-does-not-work/m-p/1762225#M65731</guid>
      <dc:creator>Samson88</dc:creator>
      <dc:date>2023-11-22T23:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: 'reset' command in secure binary does not work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/reset-command-in-secure-binary-does-not-work/m-p/1766705#M65746</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/222522"&gt;@Samson88&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;We are still checking this issue. We will let you know any information regarding your case as soon as possible.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Kind regards, Raul.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 18:53:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/reset-command-in-secure-binary-does-not-work/m-p/1766705#M65746</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-11-30T18:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: 'reset' command in secure binary does not work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/reset-command-in-secure-binary-does-not-work/m-p/1768462#M65756</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/222522"&gt;@Samson88&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Could you please share with us a step-to-step to run the &lt;EM&gt;receive-sb-file&lt;/EM&gt; blhost command like the &lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Making-and-Downloading-Security-Image-for-Kinetis-Device/ta-p/1205429" target="_blank"&gt;Making and Downloading Security Image for Kinetis ... - NXP Community&lt;/A&gt;&amp;nbsp;post?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;How are you setting the BCA and MMCAU binaries to encrypt algorithm? Have you tried using an example binary, for example, frdmk32l3a6_gpio_led_output_cm4.bin to generate your .sb file?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Kind regards, Raul.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 18:55:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/reset-command-in-secure-binary-does-not-work/m-p/1768462#M65756</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-12-04T18:55:29Z</dc:date>
    </item>
  </channel>
</rss>

