<?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 How to use big array in DSP? in CodeWarrior for StarCore</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209672#M355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to dsp. It seems&lt;/P&gt;&lt;P&gt;int array[10000]&lt;/P&gt;&lt;P&gt;can not work properly. Could you anyone tell me how to fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for asking this simple question~&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2011 02:13:53 GMT</pubDate>
    <dc:creator>JackyUM</dc:creator>
    <dc:date>2011-05-26T02:13:53Z</dc:date>
    <item>
      <title>How to use big array in DSP?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209672#M355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to dsp. It seems&lt;/P&gt;&lt;P&gt;int array[10000]&lt;/P&gt;&lt;P&gt;can not work properly. Could you anyone tell me how to fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for asking this simple question~&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 02:13:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209672#M355</guid>
      <dc:creator>JackyUM</dc:creator>
      <dc:date>2011-05-26T02:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use big array in DSP?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209673#M356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please be a bit more specific here/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which processor are you using (MSC8156, MSC8144, ...)?&lt;/P&gt;&lt;P&gt;What is the problem you are seeing?&lt;/P&gt;&lt;P&gt;Are you getting an error message at link time? Which one?&lt;/P&gt;&lt;P&gt;Are you getting a problem at runtime? Which one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 15:10:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209673#M356</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2011-05-26T15:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use big array in DSP?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209674#M357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I did not make it clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use MSC8156EVM board, which is a six-core SC3850 architecture. In my program, I have to use a lot of large arrays.&lt;/P&gt;&lt;P&gt;This, for instance, is what I did,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define SIZE 20000&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;void main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;int din[SIZE];&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;CRC(din,g);&lt;/P&gt;&lt;P&gt;Seg(din,F);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use codewarrior 10.1.5, it gives me this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fatal: LCF configuration: no physical layout result;physical memory M3. Memory size is 0x001000000 and the requested size is 0x00112c00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 21:26:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209674#M357</guid>
      <dc:creator>JackyUM</dc:creator>
      <dc:date>2011-05-26T21:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use big array in DSP?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209675#M358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any reason you are defining the big array as&amp;nbsp;local variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If din needs to be local, you need to increase the stack size in the linker command file (_StackSize defined in common.l3k).&lt;/P&gt;&lt;P&gt;But I would rather recommend to define din as global variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then using pragma data_seg you can place the variable in DDR where you have more room available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 14:29:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209675#M358</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2011-05-27T14:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use big array in DSP?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209676#M359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you suggested, I put it as the global variable. But can you show me how to use the #pragma to put this into DDR? An example would be great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 21:26:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209676#M359</guid>
      <dc:creator>JackyUM</dc:creator>
      <dc:date>2011-05-27T21:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use big array in DSP?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209677#M360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what i tried,&lt;/P&gt;&lt;P&gt;#pragma data_seg_name "Mydata"&lt;/P&gt;&lt;P&gt;I do not know how "Mydata" is mapped to DDR. Can you please show me how to use this pragma as well as how to assign some specific section in DDR? ﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 23:17:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209677#M360</guid>
      <dc:creator>JackyUM</dc:creator>
      <dc:date>2011-05-27T23:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to use big array in DSP?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209678#M361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which version of CodeWarrior are you using?&lt;/P&gt;&lt;P&gt;V3.2?&lt;/P&gt;&lt;P&gt;V10.1.5?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 13:19:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/How-to-use-big-array-in-DSP/m-p/209678#M361</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2011-05-30T13:19:16Z</dc:date>
    </item>
  </channel>
</rss>

