<?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: bin file as an array in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/bin-file-as-an-array/m-p/749117#M2587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the simplest way is add the binary file on specific address by linker script. Something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;MEMORY&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;m_bindata&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00007FF0, LENGTH = 0x000002FF&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.bindata :&lt;BR /&gt; {&lt;BR /&gt; KEEP(*(.bindata))&lt;BR /&gt; &lt;BR /&gt; } &amp;gt; m_bindata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and include the binary data in some .S file - for example - startup.S :&lt;/P&gt;&lt;P&gt;.section .bindata, "a"&lt;BR /&gt; .incbin "data.bin"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2018 10:42:35 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2018-04-20T10:42:35Z</dc:date>
    <item>
      <title>bin file as an array</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/bin-file-as-an-array/m-p/749116#M2586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;There is a bin file, which is treated as normal data.Now, to build a project in the IDE of S32DS, how can this project directly take out the data in bin file and use the bin file as an array?&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, 20 Apr 2018 02:08:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/bin-file-as-an-array/m-p/749116#M2586</guid>
      <dc:creator>jjr_net</dc:creator>
      <dc:date>2018-04-20T02:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: bin file as an array</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/bin-file-as-an-array/m-p/749117#M2587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the simplest way is add the binary file on specific address by linker script. Something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;MEMORY&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;m_bindata&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00007FF0, LENGTH = 0x000002FF&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.bindata :&lt;BR /&gt; {&lt;BR /&gt; KEEP(*(.bindata))&lt;BR /&gt; &lt;BR /&gt; } &amp;gt; m_bindata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and include the binary data in some .S file - for example - startup.S :&lt;/P&gt;&lt;P&gt;.section .bindata, "a"&lt;BR /&gt; .incbin "data.bin"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 10:42:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/bin-file-as-an-array/m-p/749117#M2587</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-04-20T10:42:35Z</dc:date>
    </item>
  </channel>
</rss>

