<?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: Problem using elftosb and blhost utility in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-using-elftosb-and-blhost-utility/m-p/824390#M49844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did some research and found out that security is only available for the OTFAD (QSPI) based external flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I also found that there is a way to enable the MMCAU unit in the Bootloader(KBoot)&lt;/P&gt;&lt;P&gt;Please see the below Picture&lt;span class="lia-inline-image-display-wrapper" image-alt="bootloader_config.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67664i8DD31980A19DEEF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="bootloader_config.png" alt="bootloader_config.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;&lt;STRONG&gt;its not enabled by default. (As BL_FEATURE_ENCRYPTION_MMCAU)&amp;nbsp;&lt;/STRONG&gt;is 0&lt;/P&gt;&lt;P&gt;I want to enable this and rewrite the Kboot in my target board.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do you have any material on this?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2018 07:26:47 GMT</pubDate>
    <dc:creator>saurabhsaxena</dc:creator>
    <dc:date>2018-08-29T07:26:47Z</dc:date>
    <item>
      <title>Problem using elftosb and blhost utility</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-using-elftosb-and-blhost-utility/m-p/824387#M49841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a secure binary file using elftosb utility with the following *.bd file&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Adding the sources in the Command file&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sources {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;CIU_app="ISS_CIU_App.out";&lt;BR /&gt;}&lt;BR /&gt;section (0) {&lt;BR /&gt; erase 40K..42K; &lt;/P&gt;&lt;P&gt;load CIU_app;&lt;BR /&gt;reset;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;further I use the following command to invoke the elftosb utility&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;elftosb -V -c Cmd_file.bd -z -o app_secure.sb&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am using the default zeroed key for encryption as it is mentioned in the mannual that the key need to written in the harware too??&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the app_secure.sb file is generated I am trying to flash it using the blhost utility with the following invokation&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;blhost -p COM3 receive-sb-file C:\app_secure.sb&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After this I get the following error which I cant understand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="test1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67405i58E0840CC0CC64DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="test1.png" alt="test1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What does this error means?? I have not used any jump command in my Cmd_file.bd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I been reading the User guide, I see many gaps, are there any other documentation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Aug 2018 06:14:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-using-elftosb-and-blhost-utility/m-p/824387#M49841</guid>
      <dc:creator>saurabhsaxena</dc:creator>
      <dc:date>2018-08-25T06:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using elftosb and blhost utility</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-using-elftosb-and-blhost-utility/m-p/824388#M49842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh Saxena,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please tell me what the kinetis chip you are using? If you are using the official board, please also tell me the board name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can share me your .srec, .bd, .sb. qspi_config_block.bin, I will help you to check it on my side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Besides, we have a according post about it, please refer to it, then try it again:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332455"&gt;Encrypted QuadSPI image Implementation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 05:55:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-using-elftosb-and-blhost-utility/m-p/824388#M49842</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-08-27T05:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using elftosb and blhost utility</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-using-elftosb-and-blhost-utility/m-p/824389#M49843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Kinetis K81, I have done all the formality for the full access. I am using the Tower K81 Pos Board.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Srec file:&amp;nbsp;&lt;/STRONG&gt;I have created a *.srec file using the &lt;STRONG&gt;ltc_aes&lt;/STRONG&gt; driver(&lt;EM&gt;Renamed as ISS_CIU_App.srec)&lt;/EM&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt; given in examples.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bd File:&amp;nbsp;&lt;/STRONG&gt;BI have used the following *.bd file&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;BR /&gt;keyblob (0) {&lt;BR /&gt; (&lt;BR /&gt; start=0x0000A000,&lt;BR /&gt; end=0x03FFFFFF,&lt;BR /&gt; counter="0123456789ABCDEF",&lt;BR /&gt; key="000102030405060708090a0b0c0d0e0f"&lt;BR /&gt; )&lt;BR /&gt;&amp;nbsp;()&lt;BR /&gt;&amp;nbsp;()&lt;BR /&gt;&amp;nbsp;()&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;sources {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;CIU_app="ltc_aes.srec";&lt;BR /&gt;}&lt;BR /&gt;section (0) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;erase 40K..42K; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;load CIU_app;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt; I dont want to use qspi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main motive is to encrypt the internal flash. Please help.&lt;/P&gt;&lt;P&gt;When I use the commands&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;blhost -p COM3 receive-sb-file C:\app_secure.sb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;I get an error that JUMP and RESET encountered (even though I have not give any JUMP Command)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 07:58:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-using-elftosb-and-blhost-utility/m-p/824389#M49843</guid>
      <dc:creator>saurabhsaxena</dc:creator>
      <dc:date>2018-08-27T07:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using elftosb and blhost utility</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-using-elftosb-and-blhost-utility/m-p/824390#M49844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did some research and found out that security is only available for the OTFAD (QSPI) based external flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I also found that there is a way to enable the MMCAU unit in the Bootloader(KBoot)&lt;/P&gt;&lt;P&gt;Please see the below Picture&lt;span class="lia-inline-image-display-wrapper" image-alt="bootloader_config.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67664i8DD31980A19DEEF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="bootloader_config.png" alt="bootloader_config.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;&lt;STRONG&gt;its not enabled by default. (As BL_FEATURE_ENCRYPTION_MMCAU)&amp;nbsp;&lt;/STRONG&gt;is 0&lt;/P&gt;&lt;P&gt;I want to enable this and rewrite the Kboot in my target board.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do you have any material on this?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 07:26:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-using-elftosb-and-blhost-utility/m-p/824390#M49844</guid>
      <dc:creator>saurabhsaxena</dc:creator>
      <dc:date>2018-08-29T07:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using elftosb and blhost utility</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-using-elftosb-and-blhost-utility/m-p/824391#M49845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Issue was incomplete knowledge of subject.&lt;/P&gt;&lt;P&gt;The Section being erased doesn't have any relation to the absolute address where the encrypt image goes in my design, also I am missing .&lt;STRONG style="color: #51626f;"&gt;srec,&amp;nbsp;&lt;STRONG&gt;qspi_config_block.bin,&lt;/STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;hence the qspi is a must for this, which I didn't wanted to use as I wanted the Image to go on internal flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words I wanted to encrypt Application binary using key blob(as seen in *.bd file), but wanted to flash it into internal Flash, which is generally out of the scope of NXP Kinetis Bootloader Utility (elftosb). For following the other way you must use what&amp;nbsp;&lt;STRONG&gt;Kerry&amp;nbsp;&lt;/STRONG&gt;described in her reply and flash encrypted file on external flash.&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;.&lt;STRONG&gt;srec, .bd, .sb. qspi_config_block.bin)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hence the *.bd file is suitable for Encrypting Application on External Flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I achieved my target but I have to reinvent the whole wheel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regard&lt;/P&gt;&lt;P&gt;Saurabh Saxena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2018 12:08:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-using-elftosb-and-blhost-utility/m-p/824391#M49845</guid>
      <dc:creator>saurabhsaxena</dc:creator>
      <dc:date>2018-10-15T12:08:37Z</dc:date>
    </item>
  </channel>
</rss>

