<?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>8-bit Microcontrollers中的主题 Memory problem with MC13213-SRB</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Memory-problem-with-MC13213-SRB/m-p/140563#M5669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I feel like RAM memory runs out sometimes: the UART stops sending&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;correct characters and the MCU seems blocked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I check if I have exhausted my RAM?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I usually initialize a dynamic var and see its address,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then check if it is in the upper part of the RAM: but&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unfortunately sometimes the heap could increase from the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lower part of the RAM and collide with the upper one;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in that case, RAM is exhausted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone solved this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to trash unusued vars from the RAM?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2007 15:48:23 GMT</pubDate>
    <dc:creator>lex4098</dc:creator>
    <dc:date>2007-07-19T15:48:23Z</dc:date>
    <item>
      <title>Memory problem with MC13213-SRB</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Memory-problem-with-MC13213-SRB/m-p/140563#M5669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I feel like RAM memory runs out sometimes: the UART stops sending&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;correct characters and the MCU seems blocked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I check if I have exhausted my RAM?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I usually initialize a dynamic var and see its address,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then check if it is in the upper part of the RAM: but&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unfortunately sometimes the heap could increase from the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lower part of the RAM and collide with the upper one;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in that case, RAM is exhausted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone solved this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to trash unusued vars from the RAM?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 15:48:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Memory-problem-with-MC13213-SRB/m-p/140563#M5669</guid>
      <dc:creator>lex4098</dc:creator>
      <dc:date>2007-07-19T15:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problem with MC13213-SRB</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Memory-problem-with-MC13213-SRB/m-p/140564#M5670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello Lex,&lt;BR /&gt;&lt;BR /&gt;Usually, the variables are allocated from the bottom of the RAM, whilst the stack goes from the TOP.&lt;BR /&gt;I can advise to configure the debug module to interrupt if there is an access in the variable space +1 or the stack space -1.&lt;BR /&gt;I mean, you keep one byte in the middle that should never be accessed, otherwise it means not enough RAM and/or stack corruption.&lt;BR /&gt;&lt;BR /&gt;If the breakpoint is triggered, your break module knows there is something wrong.&lt;BR /&gt;Otherwise, it is very difficult to observe in a real life application.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 17:16:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Memory-problem-with-MC13213-SRB/m-p/140564#M5670</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-07-19T17:16:21Z</dc:date>
    </item>
  </channel>
</rss>

