<?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>LPC Microcontrollers中的主题 Re: Place constant data into flash at specific address</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Place-constant-data-into-flash-at-specific-address/m-p/540002#M11983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jun 2016 01:12:51 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-19T01:12:51Z</dc:date>
    <item>
      <title>Place constant data into flash at specific address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Place-constant-data-into-flash-at-specific-address/m-p/539999#M11980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by salmandosersa on Thu Jun 09 07:49:53 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to place at the top of the flash a number of version software.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i already tried&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;const char test[]="HELLO";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and search the string into the .bin file and i couldn't find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this method don't put the string into a specific address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I modify the Memory layout to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flash&amp;nbsp;&amp;nbsp; Location 0x0000 size 0x3000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flash2 Location 0x3000 size 0x1000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__attribute__ ((section (".rodata.Flash2"))) const char test[]="HELLO";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;didn't work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using LPC1115 LPCXpresso Board with LPCXpresso 8.1.4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:39:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Place-constant-data-into-flash-at-specific-address/m-p/539999#M11980</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Place constant data into flash at specific address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Place-constant-data-into-flash-at-specific-address/m-p/540000#M11981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vtw.433e on Thu Jun 09 08:44:39 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you use (reference) the variable in your code? If not, the linker will discard it as it is unused. Either use it, or use the "used" attribute.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:39:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Place-constant-data-into-flash-at-specific-address/m-p/540000#M11981</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Place constant data into flash at specific address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Place-constant-data-into-flash-at-specific-address/m-p/540001#M11982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by salmandosersa on Thu Jun 09 10:24:48 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;the attribute "used" didn't work, but using it in my code did.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;__attribute__ ((used,section (".rodata.$Flash2"))) const char version[] = "V01";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__attribute__ ((used,section (".rodata.$Flash2"))) static const char version[] = "V01";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is that ok?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:39:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Place-constant-data-into-flash-at-specific-address/m-p/540001#M11982</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Place constant data into flash at specific address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Place-constant-data-into-flash-at-specific-address/m-p/540002#M11983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:12:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Place-constant-data-into-flash-at-specific-address/m-p/540002#M11983</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:12:51Z</dc:date>
    </item>
  </channel>
</rss>

