<?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>S32 Design StudioのトピックRe: How to assign functions to specific address when generating binary files?</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-assign-functions-to-specific-address-when-generating/m-p/814031#M3633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;you can use the following attribute for functions:&lt;/P&gt;&lt;P&gt;&lt;CODE class=""&gt;__attribute__((section (&lt;/CODE&gt;&lt;CODE class=""&gt;".flash"&lt;/CODE&gt;&lt;CODE class=""&gt;))) &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the examples at the end of &lt;A class="link-titled" href="https://mcuoneclipse.com/2018/07/14/execute-only-code-with-gnu-and-gcc/" title="https://mcuoneclipse.com/2018/07/14/execute-only-code-with-gnu-and-gcc/"&gt;Execute-Only Code with GNU and gcc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or &lt;A class="link-titled" href="https://mcuoneclipse.com/2014/10/06/putting-code-of-files-into-special-section-with-the-gnu-linker/" title="https://mcuoneclipse.com/2014/10/06/putting-code-of-files-into-special-section-with-the-gnu-linker/"&gt;Putting Code of Files into Special Section with the GNU Linker&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2018 04:09:12 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2018-07-16T04:09:12Z</dc:date>
    <item>
      <title>How to assign functions to specific address when generating binary files?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-assign-functions-to-specific-address-when-generating/m-p/814030#M3632</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;I want to assign functions to specific address when generating binary files.&lt;/P&gt;&lt;P&gt;So I use #pragma arm section . But Warning is occured and Don't process it.&lt;/P&gt;&lt;P&gt;How to assign functions to specific address?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like below :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;------ Linker file-----------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MEMORY&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; m_flash&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00010410, LENGTH = 0x0006FBF0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SECTIONS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; .flash :&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEEP (*(.flash))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; } &amp;gt; m_flash&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----- C file. ----------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#pragma arm section code="flash"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FuncA();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FuncB();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FuncC();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#pragma arm section&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65564iA18219278519DAAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Byungju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 03:26:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-assign-functions-to-specific-address-when-generating/m-p/814030#M3632</guid>
      <dc:creator>kbj</dc:creator>
      <dc:date>2018-07-16T03:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign functions to specific address when generating binary files?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-assign-functions-to-specific-address-when-generating/m-p/814031#M3633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;you can use the following attribute for functions:&lt;/P&gt;&lt;P&gt;&lt;CODE class=""&gt;__attribute__((section (&lt;/CODE&gt;&lt;CODE class=""&gt;".flash"&lt;/CODE&gt;&lt;CODE class=""&gt;))) &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the examples at the end of &lt;A class="link-titled" href="https://mcuoneclipse.com/2018/07/14/execute-only-code-with-gnu-and-gcc/" title="https://mcuoneclipse.com/2018/07/14/execute-only-code-with-gnu-and-gcc/"&gt;Execute-Only Code with GNU and gcc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or &lt;A class="link-titled" href="https://mcuoneclipse.com/2014/10/06/putting-code-of-files-into-special-section-with-the-gnu-linker/" title="https://mcuoneclipse.com/2014/10/06/putting-code-of-files-into-special-section-with-the-gnu-linker/"&gt;Putting Code of Files into Special Section with the GNU Linker&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 04:09:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-assign-functions-to-specific-address-when-generating/m-p/814031#M3633</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2018-07-16T04:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign functions to specific address when generating binary files?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-assign-functions-to-specific-address-when-generating/m-p/814032#M3634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like as your mention, The function is writted at the address I want in binary.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65597i45F9107067679FD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Byugnju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 00:20:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-assign-functions-to-specific-address-when-generating/m-p/814032#M3634</guid>
      <dc:creator>kbj</dc:creator>
      <dc:date>2018-07-17T00:20:50Z</dc:date>
    </item>
  </channel>
</rss>

