<?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: Linker Command File Conditional On Including Files in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linker-Command-File-Conditional-On-Including-Files/m-p/168432#M6036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Sorry, I don't know the answer to your question, but I have a suggestion which might help.&lt;BR /&gt;&lt;BR /&gt;The CodeWarrior assembler also has an incbin statement, so you could add a small assembler file to your project along the lines of:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .data&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .globl&amp;nbsp; _myData&lt;BR /&gt;_myData:&lt;BR /&gt;&amp;nbsp;#ifdef foo&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .incbin 'file1.bin'&lt;BR /&gt;#else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .incbin 'file2.bin'&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From C, the data would be refered to by the symbol 'myData' without the leading underscore.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Simon&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2008 16:01:41 GMT</pubDate>
    <dc:creator>SimonMarsden_de</dc:creator>
    <dc:date>2008-06-30T16:01:41Z</dc:date>
    <item>
      <title>Linker Command File Conditional On Including Files</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linker-Command-File-Conditional-On-Including-Files/m-p/168431#M6035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;It is easy to have a linker file include a .bin file, however, is there anyway to have an INCLUDE statement subject to a switch outside the LCF?&amp;nbsp; To put it another way, can a switch be created in C to tell the lcf to include or not include a file?&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 01:15:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linker-Command-File-Conditional-On-Including-Files/m-p/168431#M6035</guid>
      <dc:creator>Ioline</dc:creator>
      <dc:date>2008-06-27T01:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Linker Command File Conditional On Including Files</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linker-Command-File-Conditional-On-Including-Files/m-p/168432#M6036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Sorry, I don't know the answer to your question, but I have a suggestion which might help.&lt;BR /&gt;&lt;BR /&gt;The CodeWarrior assembler also has an incbin statement, so you could add a small assembler file to your project along the lines of:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .data&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .globl&amp;nbsp; _myData&lt;BR /&gt;_myData:&lt;BR /&gt;&amp;nbsp;#ifdef foo&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .incbin 'file1.bin'&lt;BR /&gt;#else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .incbin 'file2.bin'&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From C, the data would be refered to by the symbol 'myData' without the leading underscore.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Simon&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 16:01:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linker-Command-File-Conditional-On-Including-Files/m-p/168432#M6036</guid>
      <dc:creator>SimonMarsden_de</dc:creator>
      <dc:date>2008-06-30T16:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Linker Command File Conditional On Including Files</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linker-Command-File-Conditional-On-Including-Files/m-p/168433#M6037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Simon, thanks for your response.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt; I tried your suggestion and for some reason it says that the binary file does not exist or cannot be opened.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt; Any thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 00:51:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linker-Command-File-Conditional-On-Including-Files/m-p/168433#M6037</guid>
      <dc:creator>Ioline</dc:creator>
      <dc:date>2008-07-01T00:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Linker Command File Conditional On Including Files</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linker-Command-File-Conditional-On-Including-Files/m-p/168434#M6038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Update:&amp;nbsp; Still not working...&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2008 23:42:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linker-Command-File-Conditional-On-Including-Files/m-p/168434#M6038</guid>
      <dc:creator>Ioline</dc:creator>
      <dc:date>2008-07-17T23:42:18Z</dc:date>
    </item>
  </channel>
</rss>

