<?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: set a fixed flash address  initialized to a fixed value when Code is being compiled</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/set-a-fixed-flash-address-initialized-to-a-fixed-value-when-Code/m-p/530074#M1789</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 Fri Sep 19 03:13:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I change my code ,but it not working.&amp;nbsp; is I have to&amp;nbsp; have a linker script?Or chang the default linker script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My new code is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;__attribute__ ((section(".BootLoaderFlag"))) uint16_t FlashKeyword[1] = {0x6DA};&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:15:48 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:15:48Z</dc:date>
    <item>
      <title>set a fixed flash address  initialized to a fixed value when Code is being compiled</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/set-a-fixed-flash-address-initialized-to-a-fixed-value-when-Code/m-p/530072#M1787</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 Fri Sep 19 01:59:16 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to set a fixed flash address&amp;nbsp; initialized to a fixed value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This process must be done when Code is being compiled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I set flash as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MEMORY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /* Define each memory region */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; MFlash128 (rx) : ORIGIN = 0x0, LENGTH = 0x1dff0 /* 119k */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; BootLoaderFlag (rx) : ORIGIN = 0x1fff0, LENGTH = 0x20000 /* 128k */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RamLoc16 (rwx) : ORIGIN = 0x10000000, LENGTH = 0x4000 /* 16k */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RamAHB16 (rwx) : ORIGIN = 0x2007c000, LENGTH = 0x4000 /* 16k */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and my code is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#pragma DATA_SECTION(FlashKeyword, "BootLoaderFlag");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;const uint16_t FlashKeyword[1] = {0x6DA};&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;fp32 f32Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;f32Value = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint16_t u16Value = 0 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint16_t *pTest = 0x1fff0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;u16Value = *pTest;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;u16Value is&amp;nbsp; 65535 not 0x6DA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to set a fixed flash address&amp;nbsp; initialized to a fixed value when Code is being compiled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what should I do? How to accomplish this function in LPCXpresso?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My LPCXpresso Version is : LPCXpresso v5.2.4 [Build 2122] [2013-04-29] &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:15:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/set-a-fixed-flash-address-initialized-to-a-fixed-value-when-Code/m-p/530072#M1787</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: set a fixed flash address  initialized to a fixed value when Code is being compiled</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/set-a-fixed-flash-address-initialized-to-a-fixed-value-when-Code/m-p/530073#M1788</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 Fri Sep 19 02:18:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Please read this FAQ.&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%2Fplacing-data-address" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/placing-data-address&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that you are using a very old version of LPCXpresso and would strongly recommend that you upgrade to the latest release.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:15:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/set-a-fixed-flash-address-initialized-to-a-fixed-value-when-Code/m-p/530073#M1788</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: set a fixed flash address  initialized to a fixed value when Code is being compiled</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/set-a-fixed-flash-address-initialized-to-a-fixed-value-when-Code/m-p/530074#M1789</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 Fri Sep 19 03:13:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I change my code ,but it not working.&amp;nbsp; is I have to&amp;nbsp; have a linker script?Or chang the default linker script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My new code is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;__attribute__ ((section(".BootLoaderFlag"))) uint16_t FlashKeyword[1] = {0x6DA};&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:15:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/set-a-fixed-flash-address-initialized-to-a-fixed-value-when-Code/m-p/530074#M1789</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: set a fixed flash address  initialized to a fixed value when Code is being compiled</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/set-a-fixed-flash-address-initialized-to-a-fixed-value-when-Code/m-p/530075#M1790</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 Fri Sep 19 03:13:55 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I change my code ,but it not working. is I have to&amp;nbsp; have a linker script?Or chang the default linker script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My new code is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;__attribute__ ((section(".BootLoaderFlag"))) uint16_t FlashKeyword[1] = {0x6DA};&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:15:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/set-a-fixed-flash-address-initialized-to-a-fixed-value-when-Code/m-p/530075#M1790</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: set a fixed flash address  initialized to a fixed value when Code is being compiled</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/set-a-fixed-flash-address-initialized-to-a-fixed-value-when-Code/m-p/530076#M1791</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 Fri Sep 19 03:35:13 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is is fully explained in the FAQ. For example, it says&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Modify your project to provide your own linker script, as detailed in the FAQ "Using your own linker scripts".&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:15:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/set-a-fixed-flash-address-initialized-to-a-fixed-value-when-Code/m-p/530076#M1791</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:15:50Z</dc:date>
    </item>
  </channel>
</rss>

