<?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: Memory problem overflow in segment in Digital Signal Controllers</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Memory-problem-overflow-in-segment/m-p/379836#M349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The memory segment overflow can be overcome with either of the following:&lt;/P&gt;&lt;P&gt;1) try and disable the FreeMaster Recorder. You can use the scope for debugging. this would help save some memory. you can also try by reducing the buffer size of the recorder.&lt;/P&gt;&lt;P&gt;2) reduce the size of Look-up table for sine wave generation.&lt;/P&gt;&lt;P&gt;3) try and redcue as many constants from your code as possible. If arrays with constant values are used, try using alternate means.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Dec 2014 13:28:57 GMT</pubDate>
    <dc:creator>ankur_kala</dc:creator>
    <dc:date>2014-12-08T13:28:57Z</dc:date>
    <item>
      <title>Memory problem overflow in segment</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Memory-problem-overflow-in-segment/m-p/379835#M348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello to everybody,&lt;/P&gt;&lt;P&gt;i'm trying to complete my project over a MC56f8006 DSC I'm using CW MCU 10.6 eclipse IDE.&lt;/P&gt;&lt;P&gt;I'm using some resources like:&lt;/P&gt;&lt;P&gt;1 PC_master with sci interface&lt;/P&gt;&lt;P&gt;1 timer&lt;/P&gt;&lt;P&gt;1 ADC&lt;/P&gt;&lt;P&gt;1 PWMMC&lt;/P&gt;&lt;P&gt;and the Component: MC1 of type MC_WaveGenerate&lt;/P&gt;&lt;P&gt;Description: Motor Control 3-Phase Wave Generation&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to realize a 3-phase sinusoidals waves with this magic bean as stated in MC_WaveGenerate help page.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I build I have this:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Description&amp;nbsp;&amp;nbsp;&amp;nbsp; Resource&amp;nbsp;&amp;nbsp;&amp;nbsp; Path&amp;nbsp;&amp;nbsp;&amp;nbsp; Location&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&lt;/P&gt;&lt;P&gt;Overflow in segment: .x_Data from section: .ApplicationData Segment reserved byte size is: 0x000007fe -- Overflow of: 0x000001f0 bytes&amp;nbsp;&amp;nbsp;&amp;nbsp; prova1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C/C++ Problem&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i think that I have occupated too much of memory.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where can i find a way to fix this?&lt;/P&gt;&lt;P&gt;how is related the stack and the heap memory to this problem?&lt;/P&gt;&lt;P&gt;if i reduce the minimal size of the system stack the program build and run but freemaster didn't comunicate with the DSP.&lt;/P&gt;&lt;P&gt;How can I use the flash memory ? someone can help me?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 11:41:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Memory-problem-overflow-in-segment/m-p/379835#M348</guid>
      <dc:creator>iamarcoia</dc:creator>
      <dc:date>2014-11-28T11:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problem overflow in segment</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Memory-problem-overflow-in-segment/m-p/379836#M349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The memory segment overflow can be overcome with either of the following:&lt;/P&gt;&lt;P&gt;1) try and disable the FreeMaster Recorder. You can use the scope for debugging. this would help save some memory. you can also try by reducing the buffer size of the recorder.&lt;/P&gt;&lt;P&gt;2) reduce the size of Look-up table for sine wave generation.&lt;/P&gt;&lt;P&gt;3) try and redcue as many constants from your code as possible. If arrays with constant values are used, try using alternate means.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 13:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Memory-problem-overflow-in-segment/m-p/379836#M349</guid>
      <dc:creator>ankur_kala</dc:creator>
      <dc:date>2014-12-08T13:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problem overflow in segment</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Memory-problem-overflow-in-segment/m-p/379837#M350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;Thank You for the reply, I solve calculating the value at every step without using the LUT.&lt;/P&gt;&lt;P&gt;I'm interested in your 2nd solution How can I reduce the length of the LUT? Seems to be predefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define SINE_TABLE_LENGTH 8&lt;/P&gt;&lt;P&gt;in MC1.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 11:56:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Memory-problem-overflow-in-segment/m-p/379837#M350</guid>
      <dc:creator>iamarcoia</dc:creator>
      <dc:date>2014-12-12T11:56:41Z</dc:date>
    </item>
  </channel>
</rss>

