<?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 define function at Absolute Addresses in kL05Z32? in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/how-to-define-function-at-Absolute-Addresses-in-kL05Z32/m-p/283491#M10477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will compiler play smart and optimize the unused variables and functions in absolute addresses?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I design a ROM API in a memory area. The function seems an orphan in API development, how to prevent the compiler ignore them when building?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IAR? GCC?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2013 08:27:18 GMT</pubDate>
    <dc:creator>kai_liu</dc:creator>
    <dc:date>2013-10-28T08:27:18Z</dc:date>
    <item>
      <title>how to define function at Absolute Addresses in kL05Z32?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/how-to-define-function-at-Absolute-Addresses-in-kL05Z32/m-p/283489#M10475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to place my function at absolute address in codewarrior10.3.&lt;/P&gt;&lt;P&gt;how to define function at Absolute Addresses in kL05Z32?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 03:14:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/how-to-define-function-at-Absolute-Addresses-in-kL05Z32/m-p/283489#M10475</guid>
      <dc:creator>wangbaode</dc:creator>
      <dc:date>2013-08-30T03:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to define function at Absolute Addresses in kL05Z32?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/how-to-define-function-at-Absolute-Addresses-in-kL05Z32/m-p/283490#M10476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we need first specify a memory area to hold your variables/constants in Linker file .ld.&lt;/P&gt;&lt;P&gt;Then, in source code, use __attribute__ to place the variables/constants into this memory area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an example project for your reference.&lt;/P&gt;&lt;P&gt;Please note that memory section "my_section" is added in section MEMROY (line 26).&lt;/P&gt;&lt;P&gt;And in the follow, add placement .mydata (line53 ~ line58).&lt;/P&gt;&lt;P&gt;In main.c, place a const my_const into this memory area (line 9 of main.c).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 13:35:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/how-to-define-function-at-Absolute-Addresses-in-kL05Z32/m-p/283490#M10476</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-09-04T13:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to define function at Absolute Addresses in kL05Z32?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/how-to-define-function-at-Absolute-Addresses-in-kL05Z32/m-p/283491#M10477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will compiler play smart and optimize the unused variables and functions in absolute addresses?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I design a ROM API in a memory area. The function seems an orphan in API development, how to prevent the compiler ignore them when building?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IAR? GCC?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 08:27:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/how-to-define-function-at-Absolute-Addresses-in-kL05Z32/m-p/283491#M10477</guid>
      <dc:creator>kai_liu</dc:creator>
      <dc:date>2013-10-28T08:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to define function at Absolute Addresses in kL05Z32?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/how-to-define-function-at-Absolute-Addresses-in-kL05Z32/m-p/283492#M10478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you use KEEP command in ld file. you can search this command in help manual for more information about it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 08:30:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/how-to-define-function-at-Absolute-Addresses-in-kL05Z32/m-p/283492#M10478</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-10-28T08:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to define function at Absolute Addresses in kL05Z32?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/how-to-define-function-at-Absolute-Addresses-in-kL05Z32/m-p/283493#M10479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jennie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found KEEP directive in IAR help. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 08:52:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/how-to-define-function-at-Absolute-Addresses-in-kL05Z32/m-p/283493#M10479</guid>
      <dc:creator>kai_liu</dc:creator>
      <dc:date>2013-10-28T08:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to define function at Absolute Addresses in kL05Z32?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/how-to-define-function-at-Absolute-Addresses-in-kL05Z32/m-p/283494#M10480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are welcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 09:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/how-to-define-function-at-Absolute-Addresses-in-kL05Z32/m-p/283494#M10480</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-10-28T09:40:56Z</dc:date>
    </item>
  </channel>
</rss>

