<?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: region RamLoc32 overflowed</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/region-RamLoc32-overflowed/m-p/580198#M24463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by george079 on Tue Aug 31 23:57:11 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for you reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Mark_O&lt;/STRONG&gt;&lt;BR /&gt;George,&lt;BR /&gt;&lt;BR /&gt;actually, there are 3 SRAM regions: one 32K, and two of 16K, though the 2 peripheral RAM regions are at least contiguous in the address space.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;To directly answer your question, even though there is 64K of RAM on the LPC1768, I don't think you can do what you're trying to do.&amp;nbsp; The reason being that the single array you've defined uses up ALL of the main SRAM block.&amp;nbsp; For that to work, you'd have to push ALL other data items out of that space, and into the peripheral SRAM blocks.&amp;nbsp; Including your stacks.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;I haven't done enough with this processor yet to know if that's possible or not.&amp;nbsp; Perhaps someone else with more experience can jump in.&lt;BR /&gt;&lt;BR /&gt;BTW, since the main SRAM and peripheral SRAM blocks are NOT contiguous in the memory space, there is no possibility of linearly extending one data segment across them.&amp;nbsp; You probably need to evaluate whether you really need a 32KB array, or if you can get by with a smaller, or dynamic structure.&lt;BR /&gt;&lt;BR /&gt;- Mark&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Yes,it is for testing using SRAM over on-chip 32KB SRAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The real case is that i have many arrarys and total of them are over 32KB. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to is how to use the other SRAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;P.S.&amp;nbsp; BTW, this doesn't address the issue that you're going to get truncation of all the entries after the first 255, in your loop here:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;nbsp; test_table[x]=x+1;&lt;BR /&gt;&lt;BR /&gt;since your indices will quickly exceed what will fit into 1 byte.&amp;nbsp; I suspect you're already aware of that.&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Thanks to note this, you read my question very carefully. :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found 2 links about what i'm going to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And it seems that it could be placed to peripheral SRAM now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/OwnLinkScripts&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/PlacingData&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:58:36 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:58:36Z</dc:date>
    <item>
      <title>region RamLoc32 overflowed</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/region-RamLoc32-overflowed/m-p/580196#M24461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by george079 on Tue Aug 31 19:45:44 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi I have a project with LPC1768 as below&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;#define TEST_SIZE 0x8000 /*32KB*/
uint8_t test_table[TEST_SIZE];

int main(void) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t x;

&amp;nbsp;&amp;nbsp;&amp;nbsp; for(x=0;x&amp;lt;TEST_SIZE;x++)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test_table[x]=x+1;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
volatile static int i = 0 ;
&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i++ ;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0 ;
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;and compiled with&amp;nbsp; error&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;region RamLoc32 overflowed by 528 bytes&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;As i know there is 2 block of SRAM&amp;nbsp; ,each with 32KB .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this project , it seems the RamLoc32 SRAM is overflowed,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and how could i assign to another block AHBSRAM ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:58:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/region-RamLoc32-overflowed/m-p/580196#M24461</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: region RamLoc32 overflowed</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/region-RamLoc32-overflowed/m-p/580197#M24462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mark_O on Tue Aug 31 22:20:45 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;George,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;actually, there are 3 SRAM regions: one 32K, and two of 16K, though the 2 peripheral RAM regions are at least contiguous in the address space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To directly answer your question, even though there is 64K of RAM on the LPC1768, I don't think you can do what you're trying to do.&amp;nbsp; The reason being that the single array you've defined uses up ALL of the main SRAM block.&amp;nbsp; For that to work, you'd have to push ALL other data items out of that space, and into the peripheral SRAM blocks.&amp;nbsp; Including your stacks.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't done enough with this processor yet to know if that's possible or not.&amp;nbsp; Perhaps someone else with more experience can jump in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, since the main SRAM and peripheral SRAM blocks are NOT contiguous in the memory space, there is no possibility of linearly extending one data segment across them.&amp;nbsp; You probably need to evaluate whether you really need a 32KB array, or if you can get by with a smaller, or dynamic structure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Mark&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S.&amp;nbsp; BTW, this doesn't address the issue that you're going to get truncation of all the entries after the first 255, in your loop here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;nbsp; test_table[x]=x+1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;since your indices will quickly exceed what will fit into 1 byte.&amp;nbsp; I suspect you're already aware of that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:58:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/region-RamLoc32-overflowed/m-p/580197#M24462</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: region RamLoc32 overflowed</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/region-RamLoc32-overflowed/m-p/580198#M24463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by george079 on Tue Aug 31 23:57:11 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for you reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Mark_O&lt;/STRONG&gt;&lt;BR /&gt;George,&lt;BR /&gt;&lt;BR /&gt;actually, there are 3 SRAM regions: one 32K, and two of 16K, though the 2 peripheral RAM regions are at least contiguous in the address space.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;To directly answer your question, even though there is 64K of RAM on the LPC1768, I don't think you can do what you're trying to do.&amp;nbsp; The reason being that the single array you've defined uses up ALL of the main SRAM block.&amp;nbsp; For that to work, you'd have to push ALL other data items out of that space, and into the peripheral SRAM blocks.&amp;nbsp; Including your stacks.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;I haven't done enough with this processor yet to know if that's possible or not.&amp;nbsp; Perhaps someone else with more experience can jump in.&lt;BR /&gt;&lt;BR /&gt;BTW, since the main SRAM and peripheral SRAM blocks are NOT contiguous in the memory space, there is no possibility of linearly extending one data segment across them.&amp;nbsp; You probably need to evaluate whether you really need a 32KB array, or if you can get by with a smaller, or dynamic structure.&lt;BR /&gt;&lt;BR /&gt;- Mark&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Yes,it is for testing using SRAM over on-chip 32KB SRAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The real case is that i have many arrarys and total of them are over 32KB. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to is how to use the other SRAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;P.S.&amp;nbsp; BTW, this doesn't address the issue that you're going to get truncation of all the entries after the first 255, in your loop here:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;nbsp; test_table[x]=x+1;&lt;BR /&gt;&lt;BR /&gt;since your indices will quickly exceed what will fit into 1 byte.&amp;nbsp; I suspect you're already aware of that.&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Thanks to note this, you read my question very carefully. :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found 2 links about what i'm going to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And it seems that it could be placed to peripheral SRAM now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/OwnLinkScripts&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/PlacingData&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:58:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/region-RamLoc32-overflowed/m-p/580198#M24463</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: region RamLoc32 overflowed</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/region-RamLoc32-overflowed/m-p/580199#M24464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mark_O on Thu Sep 02 02:59:00 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: george079&lt;/STRONG&gt;&lt;BR /&gt;I found 2 links about what i'm going to do.&lt;BR /&gt;And it seems that it could be placed to peripheral SRAM now.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/OwnLinkScripts&lt;/A&gt;&lt;BR /&gt; &lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/PlacingData&lt;/A&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;George,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the links.&amp;nbsp; I suspect I'll find them useful in the future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:58:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/region-RamLoc32-overflowed/m-p/580199#M24464</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:58:37Z</dc:date>
    </item>
  </channel>
</rss>

