<?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 can I use flash program memory to store large read only data? in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539050#M6340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 21-50 on Wed Sep 12 13:08:54 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this rule apply to all Cortex-M MCU or only NXP?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Isn't it instruction for compiler how to access and for linker where to put data and if so do all Cortex-M compilers/linkers support "const" as a flash location?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:47:21 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:47:21Z</dc:date>
    <item>
      <title>How can I use flash program memory to store large read only data?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539045#M6335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by yssong on Fri Jul 20 20:41:29 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a user of lpc11u14 which has 32kb flash program memory and 4kb data sram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I have large read only data (ex. bitmap font pixel data array) in my program, 4kb data sram may be insufficient. Thus I want to use 32kb flash program memory to store large read only data instead of small data sram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Case of other mcu, these are supported by program library.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, AVR mcu uses prog_uint8_t variable declaration and pgm_read_byte() function to store data in flash memory and read it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I do that in my lpc11u14 board?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I should modify linker script manually, could I get some example codes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(I am not good at embedded programming yet :( )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help me, plz. :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:47:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539045#M6335</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use flash program memory to store large read only data?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539046#M6336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by yanvasilij on Fri Jul 20 23:48:53 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://http://www.nxp.com/documents/application_note/AN11008.pdf"&gt;http://www.nxp.com/documents/applica...te/AN11008.pdf&lt;/A&gt;&lt;SPAN&gt; for storing variables in flash memory.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:47:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539046#M6336</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use flash program memory to store large read only data?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539047#M6337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by yssong on Sat Jul 21 00:43:50 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But where can I get related files of this AN11008 ? (flash_nvol.c etc.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:47:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539047#M6337</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use flash program memory to store large read only data?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539048#M6338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sat Jul 21 01:11:57 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Or just store them as const in flash :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
const unsigned char table[20]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19};
 
const unsigned int c_value = 1234;
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;See:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://knowledgebase.nxp.com/showthread.php?t=1692&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:47:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539048#M6338</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use flash program memory to store large read only data?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539049#M6339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by yssong on Sat Jul 21 01:34:37 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Or just store them as const in flash :confused:&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
const unsigned char table[20]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19};
 
const unsigned int c_value = 1234;
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;See:&amp;nbsp; &lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://knowledgebase.nxp.com/showthread.php?t=1692&lt;/A&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to work well. &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:47:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539049#M6339</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use flash program memory to store large read only data?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539050#M6340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 21-50 on Wed Sep 12 13:08:54 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this rule apply to all Cortex-M MCU or only NXP?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Isn't it instruction for compiler how to access and for linker where to put data and if so do all Cortex-M compilers/linkers support "const" as a flash location?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:47:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539050#M6340</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use flash program memory to store large read only data?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539051#M6341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gbm on Thu Sep 13 12:05:45 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Compilers for MCUs with single address space treat place constants in Flash. All ARM-based chips, Texas MSP430 family, Renesas R8C, M16C, SH series, RX series and many others belong to this category.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not so easy for some 8-bit MCUs with many address spaces, like AVR, PIC and 51 family. In these cases special keywords or pragmas are used to force placement of costant data into ROM.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:47:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-can-I-use-flash-program-memory-to-store-large-read-only-data/m-p/539051#M6341</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:47:22Z</dc:date>
    </item>
  </channel>
</rss>

