<?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: Including a binary file in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Including-a-binary-file/m-p/159914#M4345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Using a similar aproach to Daniel's suggestion,&amp;nbsp;and assuming&amp;nbsp;your compiler/linker also supports the inclusion of .ASM assembly fiiles, a further alternative might be to incorporate the data as assembly directives.&amp;nbsp; For CW, this would be a series of lines of the following format -&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp; dc.b&amp;nbsp; "Line data",$0D,$0A&amp;nbsp; ; or whatever line termination is needed&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2008 09:05:28 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2008-05-30T09:05:28Z</dc:date>
    <item>
      <title>Including a binary file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Including-a-binary-file/m-p/159912#M4343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I'd like to include an html file in a project written in 'C' for an HC05, its a small (600byte) status page.&lt;/DIV&gt;&lt;DIV&gt;I've tried setting my .htm file&amp;nbsp;to "Ignored By Make" in the Standard Settings (Alt-F5) - "File-Mappings"&amp;nbsp;but the&amp;nbsp;included .htm file is still read and rejected, any ideas?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 09:02:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Including-a-binary-file/m-p/159912#M4343</guid>
      <dc:creator>cessna</dc:creator>
      <dc:date>2008-05-29T09:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Including a binary file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Including-a-binary-file/m-p/159913#M4344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;With changed File-Mappings you can only control how the ide treats the file, it wont download the content of the file to the target tough.&lt;BR /&gt;I think the simplest approach, and probably the best one too, is to store the content of the file as string literal as part of the application. So it wont be a separate file anymore, but everything is straight forward, no custom build steps.&lt;BR /&gt;If you really want to put the content of a file into the application, then the only way I see is to create an srecord out of the html page and then include the srecord in the prm.&lt;BR /&gt;The linker supports to include srecords, and the conversion from a binary file to an srecord can be done with the burner in a batch burner file.&lt;BR /&gt;I'm not going into too many details, as I think the simple code it as string literal approach is still the best one :smileyhappy:.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;BTW: I think processor expert has a bean for such purpose, but processor expert is not an option with the HC05. I'm sure there are many tools on the web too to encode a file into a C source file.&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 09:57:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Including-a-binary-file/m-p/159913#M4344</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-05-29T09:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Including a binary file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Including-a-binary-file/m-p/159914#M4345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Using a similar aproach to Daniel's suggestion,&amp;nbsp;and assuming&amp;nbsp;your compiler/linker also supports the inclusion of .ASM assembly fiiles, a further alternative might be to incorporate the data as assembly directives.&amp;nbsp; For CW, this would be a series of lines of the following format -&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp; dc.b&amp;nbsp; "Line data",$0D,$0A&amp;nbsp; ; or whatever line termination is needed&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 09:05:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Including-a-binary-file/m-p/159914#M4345</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-05-30T09:05:28Z</dc:date>
    </item>
  </channel>
</rss>

