<?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>LPCXpresso IDEのトピックRe:  How to use  __attribute__   set the fixed address to a fixed value</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-use-attribute-set-the-fixed-address-to-a-fixed-value/m-p/532496#M3101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu Sep 18 00:25:09 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;I&gt;&lt;STRONG&gt;at&lt;/STRONG&gt;&lt;/I&gt;&lt;SPAN&gt;' is not an attribute supported by GCC. For more information, please see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fproblems-compiling-attribute-at" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/problems-compiling-attribute-at&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[or for LPCXpresso 5 - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fsupport.code-red-tech.com%2FCodeRedWiki%2Fattribute_at" rel="nofollow" target="_blank"&gt;http://support.code-red-tech.com/CodeRedWiki/attribute_at&lt;/A&gt;&lt;SPAN&gt; ]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And for more general information on controlling the placement of your application code/data, please see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fown-linker-scripts" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/own-linker-scripts&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[or for LPCXpresso 5 - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fsupport.code-red-tech.com%2FCodeRedWiki%2FOwnLinkScripts" rel="nofollow" target="_blank"&gt;http://support.code-red-tech.com/CodeRedWiki/OwnLinkScripts&lt;/A&gt;&lt;SPAN&gt; ]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is also quite a lot of information around on the web on this area, for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F4067811%2Fhow-to-place-a-variable-at-a-given-absolute-address-in-memory-with-gcc" rel="nofollow" target="_blank"&gt;http://stackoverflow.com/questions/4067811/how-to-place-a-variable-at-a-given-absolute-address-in-memory-with-gcc&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fmcuoneclipse.com%2F2012%2F11%2F01%2Fdefining-variables-at-absolute-addresses-with-gcc%2F" rel="nofollow" target="_blank"&gt;http://mcuoneclipse.com/2012/11/01/defining-variables-at-absolute-addresses-with-gcc/&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:20:16 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:20:16Z</dc:date>
    <item>
      <title>How to use  __attribute__   set the fixed address to a fixed value</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-use-attribute-set-the-fixed-address-to-a-fixed-value/m-p/532495#M3100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mile on Wed Sep 17 23:37:15 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;My code is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;const uint16_t wMainFlag __attribute__((at(0xFE00))) = 1754;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int main(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint16_t&amp;nbsp; u16Value = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint16_t *pTest&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pTest&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; = 0xFE00;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;u16Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = *pTest;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but u16Value is not 1754 is 512,why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; How to use&amp;nbsp; __attribute__&amp;nbsp;&amp;nbsp; set the fixed address（0xFE00） to a fixed value（1754）in LPCXpresso?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And My LPCXpresso version is :Version: LPCXpresso v5.2.4 [Build 2122] [2013-04-29] &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:20:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-use-attribute-set-the-fixed-address-to-a-fixed-value/m-p/532495#M3100</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:20:15Z</dc:date>
    </item>
    <item>
      <title>Re:  How to use  __attribute__   set the fixed address to a fixed value</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-use-attribute-set-the-fixed-address-to-a-fixed-value/m-p/532496#M3101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu Sep 18 00:25:09 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;I&gt;&lt;STRONG&gt;at&lt;/STRONG&gt;&lt;/I&gt;&lt;SPAN&gt;' is not an attribute supported by GCC. For more information, please see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fproblems-compiling-attribute-at" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/problems-compiling-attribute-at&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[or for LPCXpresso 5 - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fsupport.code-red-tech.com%2FCodeRedWiki%2Fattribute_at" rel="nofollow" target="_blank"&gt;http://support.code-red-tech.com/CodeRedWiki/attribute_at&lt;/A&gt;&lt;SPAN&gt; ]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And for more general information on controlling the placement of your application code/data, please see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fown-linker-scripts" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/own-linker-scripts&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[or for LPCXpresso 5 - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fsupport.code-red-tech.com%2FCodeRedWiki%2FOwnLinkScripts" rel="nofollow" target="_blank"&gt;http://support.code-red-tech.com/CodeRedWiki/OwnLinkScripts&lt;/A&gt;&lt;SPAN&gt; ]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is also quite a lot of information around on the web on this area, for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F4067811%2Fhow-to-place-a-variable-at-a-given-absolute-address-in-memory-with-gcc" rel="nofollow" target="_blank"&gt;http://stackoverflow.com/questions/4067811/how-to-place-a-variable-at-a-given-absolute-address-in-memory-with-gcc&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fmcuoneclipse.com%2F2012%2F11%2F01%2Fdefining-variables-at-absolute-addresses-with-gcc%2F" rel="nofollow" target="_blank"&gt;http://mcuoneclipse.com/2012/11/01/defining-variables-at-absolute-addresses-with-gcc/&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:20:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-use-attribute-set-the-fixed-address-to-a-fixed-value/m-p/532496#M3101</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:20:16Z</dc:date>
    </item>
  </channel>
</rss>

