<?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>LPC Microcontrollers中的主题 Re: Getting bin size as 400+MB after adding new flash(NOR flash) section in linker script</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1365043#M46914</link>
    <description>&lt;P&gt;I'm getting syntax error if I remove the wildcard.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Nov 2021 09:55:12 GMT</pubDate>
    <dc:creator>BhargaviA</dc:creator>
    <dc:date>2021-11-02T09:55:12Z</dc:date>
    <item>
      <title>Getting bin size as 400+MB after adding new flash(NOR flash) section in linker script</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1364910#M46908</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to use some part of spifi NOR flash memory to execute the program(XIP). To do that I have changed the linker script as below.&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;...&lt;BR /&gt;m_text (RX) : ORIGIN = 0x00010400, LENGTH = 0x0006FC00&lt;BR /&gt;m_text_xip (RX) : ORIGIN = 0x17FF7FFF, LENGTH = 0x00008000&lt;BR /&gt;...&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;SECTIONS&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;.text :&lt;BR /&gt;{&lt;BR /&gt;. = ALIGN(4);&lt;BR /&gt;*(EXCLUDE_FILE(*spifi_xipFun.o) .text*)&lt;BR /&gt;*(.rodata) /* .rodata sections (constants, strings, etc.) */&lt;BR /&gt;*(.rodata*) /* .rodata* sections (constants, strings, etc.) */&lt;BR /&gt;*(.glue_7) /* glue arm to thumb code */&lt;BR /&gt;*(.glue_7t) /* glue thumb to arm code */&lt;BR /&gt;*(.eh_frame)&lt;BR /&gt;KEEP (*(.init))&lt;BR /&gt;KEEP (*(.fini))&lt;BR /&gt;. = ALIGN(4);&lt;BR /&gt;} &amp;gt; m_text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.text_xip :&lt;BR /&gt;{&lt;BR /&gt;text_xip_start = .;&lt;BR /&gt;*spifi_xipFun.o(.text*)&lt;BR /&gt;KEEP (*(.text_2));&lt;BR /&gt;text_xip_end = .;&lt;BR /&gt;} &amp;gt; m_text_xip&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the above changes I'm getting bin size as normal and spifi_xipFun.o text is going to m_text only even after being excluded from m_text and included in m_text_xip.&lt;/P&gt;&lt;P&gt;Did I do anything wrong in the exclusion and inclusion of the file?&lt;/P&gt;&lt;P&gt;If I move the .text_2 section before the .text section I'm seeing&amp;nbsp;spifi_xipFun.o text in expected memory that is in range of&amp;nbsp;m_text_xip but the bin size is coming as 400+MB.&lt;/P&gt;&lt;P&gt;Please, let me know as soon as possible if I'm doing something wrong.&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>Tue, 02 Nov 2021 07:41:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1364910#M46908</guid>
      <dc:creator>BhargaviA</dc:creator>
      <dc:date>2021-11-02T07:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting bin size as 400+MB after adding new flash(NOR flash) section in linker script</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1364945#M46910</link>
      <description>&lt;P&gt;Don't use BIN files.&lt;/P&gt;&lt;P&gt;This format has no meta information like target addresses, so this format needs to fill any "hole" in the memory range to program with default data.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 08:20:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1364945#M46910</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2021-11-02T08:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting bin size as 400+MB after adding new flash(NOR flash) section in linker script</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1364967#M46911</link>
      <description>&lt;P&gt;I'm not sure that I understand.&lt;/P&gt;&lt;P&gt;And I'm not using any BIN file names in the linker script.&lt;/P&gt;&lt;P&gt;If you don't mind. Can you please provide me with some examples?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 08:48:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1364967#M46911</guid>
      <dc:creator>BhargaviA</dc:creator>
      <dc:date>2021-11-02T08:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting bin size as 400+MB after adding new flash(NOR flash) section in linker script</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1364987#M46912</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; I'm not sure that I understand.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Check the difference between the lowest address (probably internal Flash) and the highest address to program (external Flash). This will explain your 400MB space.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt; And I'm not using any BIN file names in the linker script.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The output file type and format is not part of the linker script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Check your project settings, and choose a format like HEX or SREC (S19) instead of binary.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 08:58:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1364987#M46912</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2021-11-02T08:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting bin size as 400+MB after adding new flash(NOR flash) section in linker script</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1365011#M46913</link>
      <description>&lt;P&gt;Regarding your EXCLUDE_FILE problem: Try removing the first wildcard from the line. e.g.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EXCLUDE_FILE(*spifi_xipFun.o) .text*&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 09:24:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1365011#M46913</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2021-11-02T09:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting bin size as 400+MB after adding new flash(NOR flash) section in linker script</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1365043#M46914</link>
      <description>&lt;P&gt;I'm getting syntax error if I remove the wildcard.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 09:55:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1365043#M46914</guid>
      <dc:creator>BhargaviA</dc:creator>
      <dc:date>2021-11-02T09:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting bin size as 400+MB after adding new flash(NOR flash) section in linker script</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1365047#M46915</link>
      <description>&lt;P&gt;I Agree that the difference between external flash and internal flash addresses is around 400MB, but, why the linker is taking that 400MB to link?&lt;/P&gt;&lt;P&gt;I try to generate a HEX file instead of BIN and saw the same issue but the size is 1MB this time (Without external flash sections the bin size is 350KB).&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 10:15:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1365047#M46915</guid>
      <dc:creator>BhargaviA</dc:creator>
      <dc:date>2021-11-02T10:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting bin size as 400+MB after adding new flash(NOR flash) section in linker script</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1365116#M46916</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;... but, why the linker is taking that 400MB to link?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is not a problem with the linker, but with your choice of an inappropriate output file format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The BIN format has no means of specifying different parts of code for different sections/addresse, so it fills up all the unused space.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 11:45:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-bin-size-as-400-MB-after-adding-new-flash-NOR-flash/m-p/1365116#M46916</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2021-11-02T11:45:56Z</dc:date>
    </item>
  </channel>
</rss>

