<?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: Global variable problem (the program got stuck after just executing the assignment ) in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Global-variable-problem-the-program-got-stuck-after-just/m-p/1175426#M9744</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808000"&gt;I find the result that the pointer always point to "00001020 e800 se_ B 00001020" after clicking the stop button. I have tried many times, the result never change(PC 00001020 and 00001020 e800 se_ B 00001020). The global variable currentprot is described in Figure 4.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The program is not stuck.&lt;/P&gt;
&lt;P&gt;it just run into endless loop like while(1). uC is working correctly. Please check you source code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best regards,&lt;BR /&gt;Peter&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2020 16:20:25 GMT</pubDate>
    <dc:creator>petervlna</dc:creator>
    <dc:date>2020-10-29T16:20:25Z</dc:date>
    <item>
      <title>Global variable problem (the program got stuck after just executing the assignment )</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Global-variable-problem-the-program-got-stuck-after-just/m-p/1174254#M9725</link>
      <description>&lt;P&gt;HI:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Software version: CodeWarrior 2.10&amp;nbsp;&amp;nbsp; /&amp;nbsp;&amp;nbsp;&amp;nbsp; hardware version: mpc5606b borad&lt;/P&gt;&lt;P&gt;Problem: when I debug the program from step 1 to step 2 by single step debugging(see Figure 1),&amp;nbsp; the program got stuck.&amp;nbsp; The software interface is showed in figure 2 when the program got stuck.&amp;nbsp;&amp;nbsp; I click the stop button,&amp;nbsp;&amp;nbsp; then the software interface is shown in Figure 3.&amp;nbsp;&amp;nbsp; I find the result that the pointer always point to&amp;nbsp; "00001020 e800 se_ B 00001020" after clicking the stop button.&amp;nbsp;&amp;nbsp; I have tried many times, the result never change(PC 00001020 and 00001020 e800 se_ B 00001020).&amp;nbsp; The global variable currentprot is described in Figure 4.&lt;/P&gt;&lt;P&gt;Why the program got stuck after executing the assignment statement of global variable currentprot by single step debugging?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="debug2 - 副本.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/128474i20807FE470109022/image-size/large?v=v2&amp;amp;px=999" role="button" title="debug2 - 副本.JPG" alt="debug2 - 副本.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="debug2-1 - 副本.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/128476i43749D3EC6700AE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="debug2-1 - 副本.JPG" alt="debug2-1 - 副本.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="debug2-2 - 副本.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/128477i9D05120BD633C86A/image-size/large?v=v2&amp;amp;px=999" role="button" title="debug2-2 - 副本.JPG" alt="debug2-2 - 副本.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="list global variables.JPG" style="width: 511px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/128475i1306B3793F404CFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="list global variables.JPG" alt="list global variables.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 06:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Global-variable-problem-the-program-got-stuck-after-just/m-p/1174254#M9725</guid>
      <dc:creator>ycgxy1650601</dc:creator>
      <dc:date>2020-10-28T06:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable problem (the program got stuck after just executing the assignment )</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Global-variable-problem-the-program-got-stuck-after-just/m-p/1175426#M9744</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808000"&gt;I find the result that the pointer always point to "00001020 e800 se_ B 00001020" after clicking the stop button. I have tried many times, the result never change(PC 00001020 and 00001020 e800 se_ B 00001020). The global variable currentprot is described in Figure 4.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The program is not stuck.&lt;/P&gt;
&lt;P&gt;it just run into endless loop like while(1). uC is working correctly. Please check you source code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best regards,&lt;BR /&gt;Peter&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 16:20:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Global-variable-problem-the-program-got-stuck-after-just/m-p/1175426#M9744</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2020-10-29T16:20:25Z</dc:date>
    </item>
  </channel>
</rss>

