<?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: how to place the function in a specified addrss in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-place-the-function-in-a-specified-addrss/m-p/1709143#M10852</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this can be done by section attribute and modifying the linker script file (please see attached example).&lt;/P&gt;
&lt;P&gt;main.c:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_1-1692710142851.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237460iA75934BCAA773C1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_1-1692710142851.png" alt="jiri_kral_1-1692710142851.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Linker script file:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_2-1692710190734.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237461iE3C1F033571460C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_2-1692710190734.png" alt="jiri_kral_2-1692710190734.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_3-1692710250535.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237463iAC6EAD7D06E4809E/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_3-1692710250535.png" alt="jiri_kral_3-1692710250535.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;.map file:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_0-1692710035675.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237457i9C28B635974C83A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_0-1692710035675.png" alt="jiri_kral_0-1692710035675.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the question is why you need such function on particular address in the Flash memory? Why you can't use for example pointer to the function? From my point of view it is an unusual approach.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 13:21:18 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2023-08-22T13:21:18Z</dc:date>
    <item>
      <title>how to place the function in a specified addrss</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-place-the-function-in-a-specified-addrss/m-p/1707311#M10817</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;now , i have a problem ,i use S32K146 mcu and the S32DS IDE to development.&lt;/P&gt;&lt;P&gt;i want to place the function&amp;nbsp; &amp;nbsp; "vExt_UART0_transmit(unsiged char* buff)" in a specified address (0x20000),&lt;/P&gt;&lt;P&gt;i try to use the command __attribute__((at(0x20000))),but it seem have no any effect.&lt;/P&gt;&lt;P&gt;can you help me ,my friend.&lt;/P&gt;&lt;P&gt;haiyang&amp;nbsp;&lt;/P&gt;&lt;P&gt;08 - 2023&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 07:03:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/how-to-place-the-function-in-a-specified-addrss/m-p/1707311#M10817</guid>
      <dc:creator>oceansea</dc:creator>
      <dc:date>2023-08-18T07:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to place the function in a specified addrss</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-place-the-function-in-a-specified-addrss/m-p/1709143#M10852</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this can be done by section attribute and modifying the linker script file (please see attached example).&lt;/P&gt;
&lt;P&gt;main.c:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_1-1692710142851.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237460iA75934BCAA773C1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_1-1692710142851.png" alt="jiri_kral_1-1692710142851.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Linker script file:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_2-1692710190734.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237461iE3C1F033571460C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_2-1692710190734.png" alt="jiri_kral_2-1692710190734.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_3-1692710250535.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237463iAC6EAD7D06E4809E/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_3-1692710250535.png" alt="jiri_kral_3-1692710250535.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;.map file:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_0-1692710035675.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237457i9C28B635974C83A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_0-1692710035675.png" alt="jiri_kral_0-1692710035675.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the question is why you need such function on particular address in the Flash memory? Why you can't use for example pointer to the function? From my point of view it is an unusual approach.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 13:21:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/how-to-place-the-function-in-a-specified-addrss/m-p/1709143#M10852</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2023-08-22T13:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to place the function in a specified addrss</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-place-the-function-in-a-specified-addrss/m-p/1709790#M10856</link>
      <description>&lt;P&gt;hi&amp;nbsp;jiri_kral,&lt;/P&gt;&lt;P&gt;thank you reply !&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want five functions to always have the same addresses in the bootloader project, so that my app project can always call those five addresses.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"Why you can't use for example pointer to the function?"&amp;nbsp; I'm not quite sure what your meaning,&lt;/P&gt;&lt;P&gt;how to use pointer to solve this&amp;nbsp;&lt;SPAN&gt;requirement?can you show me a example?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;oceansea&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 09:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/how-to-place-the-function-in-a-specified-addrss/m-p/1709790#M10856</guid>
      <dc:creator>oceansea</dc:creator>
      <dc:date>2023-08-23T09:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to place the function in a specified addrss</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-place-the-function-in-a-specified-addrss/m-p/1709955#M10857</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see, this make sense. So, you are going to use some functionality (communication) from bootloader in your project. Well, the __attribute__ section is the option.&lt;/P&gt;
&lt;P&gt;Other possibility is to have some table on constant known address in bootloader with addresses of the functions you like share with app. When the app starts - it can simply assign these addresses and use it as pointer to function.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 13:34:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/how-to-place-the-function-in-a-specified-addrss/m-p/1709955#M10857</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2023-08-23T13:34:22Z</dc:date>
    </item>
  </channel>
</rss>

