<?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 How can I embed a small binary file like bitmap to my executable?  Also, how do I access to it from my program? in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485039#M5658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An item resources in project property does not works as this purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2016 07:37:08 GMT</pubDate>
    <dc:creator>osamutanaka</dc:creator>
    <dc:date>2016-02-04T07:37:08Z</dc:date>
    <item>
      <title>How can I embed a small binary file like bitmap to my executable?  Also, how do I access to it from my program?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485039#M5658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An item resources in project property does not works as this purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 07:37:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485039#M5658</guid>
      <dc:creator>osamutanaka</dc:creator>
      <dc:date>2016-02-04T07:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I embed a small binary file like bitmap to my executable?  Also, how do I access to it from my program?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485040#M5659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer is dependent on&amp;nbsp; which tool chain you are using for compiler and linker.&lt;BR /&gt;Which one are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 13:15:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485040#M5659</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2016-02-04T13:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I embed a small binary file like bitmap to my executable?  Also, how do I access to it from my program?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485041#M5660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See chapter 3.5 of &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/docs/uTasker/uTaskerLCD.PDF" rel="nofollow"&gt;http://www.utasker.com/docs/uTasker/uTaskerLCD.PDF&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The utilities are at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/forum/index.php?topic=1445.0" rel="nofollow"&gt;http://www.utasker.com/forum/index.php?topic=1445.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works with any compiler/tool chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 13:37:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485041#M5660</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-02-04T13:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I embed a small binary file like bitmap to my executable?  Also, how do I access to it from my program?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485042#M5661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on Kinetis Design Studio with the Cross ARM GCC.&lt;/P&gt;&lt;P&gt;I also use Processor Expert tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 02:33:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485042#M5661</guid>
      <dc:creator>osamutanaka</dc:creator>
      <dc:date>2016-02-05T02:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I embed a small binary file like bitmap to my executable?  Also, how do I access to it from my program?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485043#M5662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean the only way to embed a small binary resource to my executable is insert it as program code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your introducing an useful tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 02:37:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485043#M5662</guid>
      <dc:creator>osamutanaka</dc:creator>
      <dc:date>2016-02-05T02:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I embed a small binary file like bitmap to my executable?  Also, how do I access to it from my program?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485044#M5663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are probaby many different ways to insert binary but inserting it as code means that it is compiler independent and so portable.&lt;/P&gt;&lt;P&gt;Other methods will tend to be rather tool-chain specific and so more difficult to maintain and require re-inventing the solution each time it is to be repeated in a different environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 09:59:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485044#M5663</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-02-05T09:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I embed a small binary file like bitmap to my executable?  Also, how do I access to it from my program?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485045#M5664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;This is only a suggestion, but if you look through the Processor Expert, there is a component called "ExternalFile"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24340i96F65D2C1D6BFC38/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You will need to add your source file to the list of files included in your project.&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/2397iF925585C2E222E92/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;Then specify this file in the ExternalFile component in Processor Expert&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2444iFD063F327DC26EE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The rebuild your project. Processor Expert creates a new source file which has all your binary data in code format, defined as an array of bytes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25569i964F709A51163316/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your ExternalFile bean has 3 methods, which return the size of the array, a pointer to its start and an indexed value.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25395i524F0A6692584459/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sadly, I could not find any better documentation in the help file, but I am sure someone can point us to it.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 02:21:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485045#M5664</guid>
      <dc:creator>Jiun_Yong</dc:creator>
      <dc:date>2016-02-10T02:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I embed a small binary file like bitmap to my executable?  Also, how do I access to it from my program?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485046#M5665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried as you suggested, and I could get a binary file's reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 08:23:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-can-I-embed-a-small-binary-file-like-bitmap-to-my-executable/m-p/485046#M5665</guid>
      <dc:creator>osamutanaka</dc:creator>
      <dc:date>2016-02-10T08:23:05Z</dc:date>
    </item>
  </channel>
</rss>

