<?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 bootable image size 0 in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/bootable-image-size-0/m-p/877175#M2356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am facing an issue using the elftosb tool in Windows.&lt;/P&gt;&lt;P&gt;I want to generate a .bin bootable image (as a precursor to generating the sb file) using elftosb for the Hello World SDK demo project on&amp;nbsp;MIMXRT1060-EVK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the flashloader documentation, I have tried executing the following command, but the size of output.bin is always 0.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;elftosb -f imx -V -c&amp;nbsp;imx-flexspinor-normal-unsigned.bd -o output.bin&amp;nbsp;evkmimxrt1060_hello_world.elf&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And here's the bd file I am using. It came with the flashloader release files.&lt;/P&gt;&lt;P&gt;Since this is a program file (and not flashloader), it needs to be loaded into Flash whose address is 0x60000000. Also NOR FlexSPI offset is 0x1000 according to the reference documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using QSPI Flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/64202i8120A1D7F26A037D/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;options {
 flags = 0x00;
 startAddress = 0x60000000;
 ivtOffset = 0x1000;
 initialLoadSize = 0x2000;
 //DCDFilePath = "dcd.bin";
 # Note: This is required if the default entrypoint is not the Reset_Handler
 # Please set the entryPointAddress to the base address of vector table
 // entryPointAddress = 0x60002000;
}

sources {
 elfFile = extern(0);
}

section (0)
{
}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The .elf file (attached) was generating in MCUXpressor by changing the artifact extension from 'axf' to 'elf'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;IMG alt="pastedImage_8.png" src="https://community.nxp.com/t5/image/serverpage/image-id/64121i9115E05CD2FE1FC2/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_8.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong here? &lt;IMG alt="Smiley Happy" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="https://community.nxp.com/i/smilies/16x16_smiley-happy.png" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also attaching the&amp;nbsp;evkmimxrt1060_hello_world.elf.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2020 14:19:03 GMT</pubDate>
    <dc:creator>er_arpit_arora</dc:creator>
    <dc:date>2020-11-02T14:19:03Z</dc:date>
    <item>
      <title>bootable image size 0</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/bootable-image-size-0/m-p/877175#M2356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am facing an issue using the elftosb tool in Windows.&lt;/P&gt;&lt;P&gt;I want to generate a .bin bootable image (as a precursor to generating the sb file) using elftosb for the Hello World SDK demo project on&amp;nbsp;MIMXRT1060-EVK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the flashloader documentation, I have tried executing the following command, but the size of output.bin is always 0.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;elftosb -f imx -V -c&amp;nbsp;imx-flexspinor-normal-unsigned.bd -o output.bin&amp;nbsp;evkmimxrt1060_hello_world.elf&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And here's the bd file I am using. It came with the flashloader release files.&lt;/P&gt;&lt;P&gt;Since this is a program file (and not flashloader), it needs to be loaded into Flash whose address is 0x60000000. Also NOR FlexSPI offset is 0x1000 according to the reference documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using QSPI Flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/64202i8120A1D7F26A037D/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;options {
 flags = 0x00;
 startAddress = 0x60000000;
 ivtOffset = 0x1000;
 initialLoadSize = 0x2000;
 //DCDFilePath = "dcd.bin";
 # Note: This is required if the default entrypoint is not the Reset_Handler
 # Please set the entryPointAddress to the base address of vector table
 // entryPointAddress = 0x60002000;
}

sources {
 elfFile = extern(0);
}

section (0)
{
}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The .elf file (attached) was generating in MCUXpressor by changing the artifact extension from 'axf' to 'elf'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;IMG alt="pastedImage_8.png" src="https://community.nxp.com/t5/image/serverpage/image-id/64121i9115E05CD2FE1FC2/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_8.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong here? &lt;IMG alt="Smiley Happy" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="https://community.nxp.com/i/smilies/16x16_smiley-happy.png" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also attaching the&amp;nbsp;evkmimxrt1060_hello_world.elf.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:19:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/bootable-image-size-0/m-p/877175#M2356</guid>
      <dc:creator>er_arpit_arora</dc:creator>
      <dc:date>2020-11-02T14:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: bootable image size 0</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/bootable-image-size-0/m-p/877176#M2357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arpit Arora&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This happens because the project already has a Boot header, you have to disable this with the Preprocessor symbol XIP_BOOT_HEADER_ENABLE in the project settings, please change it to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68771i29EAE7A5B28223FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2019 20:50:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/bootable-image-size-0/m-p/877176#M2357</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2019-02-06T20:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: bootable image size 0</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/bootable-image-size-0/m-p/877177#M2358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jorge, that helped. I can see both output.bin and output_nopadding.bin being generated now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2019 21:30:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/bootable-image-size-0/m-p/877177#M2358</guid>
      <dc:creator>er_arpit_arora</dc:creator>
      <dc:date>2019-02-06T21:30:44Z</dc:date>
    </item>
  </channel>
</rss>

