<?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 find out what a local variable in the stack has been overwritten? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-i-find-out-what-a-local-variable-in-the-stack-has-been/m-p/763113#M30725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="296208" data-username="basti" href="https://community.nxp.com/people/basti"&gt;Sebastian Bl&amp;amp;auml;sing&lt;/A&gt;，&lt;/P&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;for the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;Actually, I'm not very clear with your question, so whether you can describe the question in details and attaching corresponding codes will be better☺.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;I'm looking to forward to your reply.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;P&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jan 2018 02:01:43 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2018-01-05T02:01:43Z</dc:date>
    <item>
      <title>How can i find out what a local variable in the stack has been overwritten?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-i-find-out-what-a-local-variable-in-the-stack-has-been/m-p/763112#M30724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using LPC1778 controller with RTOS. A local variable in a subfunction has been overwritten by a overflow. How can i find out what a local variable in the stack has been overwritten?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 12:50:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-i-find-out-what-a-local-variable-in-the-stack-has-been/m-p/763112#M30724</guid>
      <dc:creator>basti</dc:creator>
      <dc:date>2018-01-04T12:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can i find out what a local variable in the stack has been overwritten?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-i-find-out-what-a-local-variable-in-the-stack-has-been/m-p/763113#M30725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="296208" data-username="basti" href="https://community.nxp.com/people/basti"&gt;Sebastian Bl&amp;amp;auml;sing&lt;/A&gt;，&lt;/P&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;for the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;Actually, I'm not very clear with your question, so whether you can describe the question in details and attaching corresponding codes will be better☺.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;I'm looking to forward to your reply.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;P&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 02:01:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-i-find-out-what-a-local-variable-in-the-stack-has-been/m-p/763113#M30725</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-01-05T02:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can i find out what a local variable in the stack has been overwritten?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-i-find-out-what-a-local-variable-in-the-stack-has-been/m-p/763114#M30726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jeremyzhou,&lt;/P&gt;&lt;P&gt;thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;A local variable (in a function) is always stored in the stack, is that correct?&lt;/SPAN&gt; &lt;SPAN class=""&gt;The value of this variable I can read out via the JTAG interface via LPCXpresso, for this I use the breakpoints.&lt;/SPAN&gt; &lt;SPAN class=""&gt;I found out that the value of a local variable (integer) was overridden by another function / task.&lt;/SPAN&gt; &lt;SPAN class=""&gt;Now I want to find out which function / task overwrites this memory area.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;I use the FreeRTOS V7.6 Memory Allocation implementation "heap_2".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 07:53:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-i-find-out-what-a-local-variable-in-the-stack-has-been/m-p/763114#M30726</guid>
      <dc:creator>basti</dc:creator>
      <dc:date>2018-01-05T07:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can i find out what a local variable in the stack has been overwritten?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-i-find-out-what-a-local-variable-in-the-stack-has-been/m-p/763115#M30727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sebastian,&lt;/P&gt;&lt;P&gt;depending on what tool you use for debug you can set breakpoints on memory access in Cortex processors. I use Keil, and setting a breakpoint on a overwrite, it looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/37779i18D652385DE09782/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also define memory areas etc, its just a matter of syntax. If you know an exact place (address) that is being written in the tasks stackarea, set this address as the breakpoint. The processor will then stop at the exact spot where the write (to the illegal address) occurs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 08:26:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-i-find-out-what-a-local-variable-in-the-stack-has-been/m-p/763115#M30727</guid>
      <dc:creator>carstengroen</dc:creator>
      <dc:date>2018-01-05T08:26:12Z</dc:date>
    </item>
  </channel>
</rss>

