<?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: elftosb creates empty secure binary file in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1368382#M17056</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/122056"&gt;@kamilm&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You are right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; When generate the .sb, you need to use the kineits, not the i.mx&lt;/P&gt;
&lt;P&gt;elftosb.exe -f kinetis -V -c ../../bd_file/imx10xx/program_flexspinor_image_qspinor.bd -o boot_image.sb ivt_flexspi_nor_hello_world_nopadding.bin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, do you still have issues about it or not?&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 08:35:00 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2021-11-09T08:35:00Z</dc:date>
    <item>
      <title>elftosb creates empty secure binary file</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1366919#M17012</link>
      <description>&lt;P&gt;Hi!,&lt;BR /&gt;I need to generate a simple secure binary file for testing. I follow the steps in the document "i.MX RT1060 Manufacturing User's Guide" but the generated file is empty.&lt;BR /&gt;In the attachments I send a package with the results I achieved.&lt;BR /&gt;&lt;BR /&gt;The documentation states that:&lt;BR /&gt;"Typically, all the application image paths are provided in this section. Currently, the ELF file and SREC file are supported for i.MX RT Bootable image generation"&lt;/P&gt;&lt;P&gt;But how to generate srec or elf files as MCUXpresso can only generate .s19 files ?&lt;/P&gt;&lt;P&gt;Binary description file for bootable image creation :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;options {
    flags = 0x00;
    startAddress = 0x60000000;
    ivtOffset = 0x1000;
    initialLoadSize = 0x2000;
}

sources {
    elfFile = "evkbimxrt1050_iled_blinky.bin";
}

section (0)
{
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;elftosb.exe -f imx -V -c imx-flexspinor-normal-unsigned.bd -o ivt_evkbimxrt1050_iled_blinky.bin&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Binary description file for secure binary creation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sources {
	myBinFile = "ivt_evkbimxrt1050_iled_blinky.bin";
}

section (0) {
	load 0xC0233007 &amp;gt; 0x2000;
	enable flexspinor 0x2000;
	erase 0x60000000..0x60010000;
	load 0xf000000f &amp;gt; 0x3000;
	enable flexspinor 0x3000;
	load myBinFile &amp;gt; 0x60001000;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;elftosb.exe -f imx -V -c test.bd -o evkbimxrt1050_iled_blinky.sb&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and the result is as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kamilm_0-1636057089317.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161328i7194DC3DA01EA060/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kamilm_0-1636057089317.png" alt="kamilm_0-1636057089317.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I would appreciate your help and suggestions,&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kamil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 20:26:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1366919#M17012</guid>
      <dc:creator>kamilm</dc:creator>
      <dc:date>2021-11-04T20:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: elftosb creates empty secure binary file</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1367833#M17040</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/122056"&gt;@kamilm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; From your description, you want to generate the .sb file, then download with the MFG tool, right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If yes, please read the nxp application note, you will be more clear about it.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12108.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12108.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;MCUXpresso IDE generated&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;.s19&amp;nbsp; is just the srec file, you can use it directly, don't worry, it works, as I have tested it previously. If you still need to use the .srec, just modify your .s19 to .srec is OK.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; In fact, your steps are all correct.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you still have questions about it, please kindly let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 10:03:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1367833#M17040</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-11-08T10:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: elftosb creates empty secure binary file</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1368060#M17046</link>
      <description>&lt;P&gt;Hi Kerryzhou !&lt;/P&gt;&lt;P&gt;Thank you for your response and advice.&lt;/P&gt;&lt;P&gt;I checked the commands in the document you recommended. To generate a *.sb file it needs to pass the argument "kinetis" instead of "imx".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kamilm_0-1636413325113.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161558iC309E0565818A11F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kamilm_0-1636413325113.png" alt="kamilm_0-1636413325113.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Kamil&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 23:15:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1368060#M17046</guid>
      <dc:creator>kamilm</dc:creator>
      <dc:date>2021-11-08T23:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: elftosb creates empty secure binary file</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1368382#M17056</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/122056"&gt;@kamilm&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You are right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; When generate the .sb, you need to use the kineits, not the i.mx&lt;/P&gt;
&lt;P&gt;elftosb.exe -f kinetis -V -c ../../bd_file/imx10xx/program_flexspinor_image_qspinor.bd -o boot_image.sb ivt_flexspi_nor_hello_world_nopadding.bin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, do you still have issues about it or not?&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 08:35:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1368382#M17056</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-11-09T08:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: elftosb creates empty secure binary file</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1368551#M17065</link>
      <description>&lt;P&gt;Hi Kerry !&lt;BR /&gt;&lt;BR /&gt;Generated files are ok.&lt;/P&gt;&lt;P&gt;However, generating a bootable image from an .s19 file does not work. Only when the .bin file is specified, the bootable image is created.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kamilm_0-1636459014987.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161677i1126F373C9819777/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kamilm_0-1636459014987.png" alt="kamilm_0-1636459014987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Binary description file content:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;options {
    flags = 0x00;
    startAddress = 0x60000000;
    ivtOffset = 0x1000;
    initialLoadSize = 0x2000; 
    entryPointAddress = 0x60002000;
}

sources {
    elfFile = extern(0);
}

section (0)
{
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Of course, I can continue to operate on .bin files. I'm just reporting a problem with the .s19 files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kamil&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 12:00:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1368551#M17065</guid>
      <dc:creator>kamilm</dc:creator>
      <dc:date>2021-11-09T12:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: elftosb creates empty secure binary file</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1369015#M17080</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/122056"&gt;@kamilm&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; When you generate the .19, please don't contains the FCB.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;XIP_BOOT_HEADER_ENABLE =0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Do you do it like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I think you can use the SDK led_blinky project as an example and test it.&lt;/P&gt;
&lt;P&gt;You also can try the attached .srec file. which from the MCUbootUtility.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 07:07:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1369015#M17080</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-11-10T07:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: elftosb creates empty secure binary file</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1369361#M17092</link>
      <description>&lt;P&gt;Hi Kerry,&lt;BR /&gt;&lt;BR /&gt;Thank you for help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the value of the symbol XIP_BOOT_HEADER_ENABLE =0&lt;BR /&gt;Now everything is OK!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kamilm_0-1636549405284.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161838i40D6948109AAD162/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kamilm_0-1636549405284.png" alt="kamilm_0-1636549405284.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kamilm_1-1636549457716.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161839i8E8C94E49D0A2745/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kamilm_1-1636549457716.png" alt="kamilm_1-1636549457716.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Kamil&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 14:08:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-creates-empty-secure-binary-file/m-p/1369361#M17092</guid>
      <dc:creator>kamilm</dc:creator>
      <dc:date>2021-11-10T14:08:08Z</dc:date>
    </item>
  </channel>
</rss>

