<?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>MPC5xxx中的主题 Re: MPC5777C Stack overflow exception</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-Stack-overflow-exception/m-p/1418979#M20522</link>
    <description>&lt;P&gt;How did you configured the MMU and where is your stack?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 09:38:43 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2022-02-24T09:38:43Z</dc:date>
    <item>
      <title>MPC5777C Stack overflow exception</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-Stack-overflow-exception/m-p/1417515#M20504</link>
      <description>&lt;P&gt;Dear Mr./ Mrs.&lt;/P&gt;&lt;P&gt;When I checked e200z7 core document, I couldn't find exception for stackover flow. Is not available stackoverflow exception for MPC5777C?&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 13:28:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-Stack-overflow-exception/m-p/1417515#M20504</guid>
      <dc:creator>20Sidar04</dc:creator>
      <dc:date>2022-02-22T13:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C Stack overflow exception</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-Stack-overflow-exception/m-p/1418193#M20513</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;one option is to follow section "60.4 Using Debug Resources for Stack Limit Checking" in reference manual for MPC5744P:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=MPC5744PRM" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=MPC5744PRM&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This is not mentioned in RM for MPC5777C but it's still applicable.&lt;/P&gt;
&lt;P&gt;You can also take a look at this thread for some code:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx/MPC5744P-how-to-use-the-debug-registers-to-realize-the-quot/m-p/648388" target="_blank"&gt;https://community.nxp.com/t5/MPC5xxx/MPC5744P-how-to-use-the-debug-registers-to-realize-the-quot/m-p/648388&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Next option is to use Memory Protection Unit when you can configure small area just below the stack as no writeable.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 10:57:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-Stack-overflow-exception/m-p/1418193#M20513</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2022-02-23T10:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C Stack overflow exception</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-Stack-overflow-exception/m-p/1418283#M20517</link>
      <description>&lt;P&gt;Dear Lukasz,&lt;/P&gt;&lt;P&gt;I cause stackover flow by calling recursive function in main source. But when I put breakpoint in IVOR13_Exception_Handler (IVOR13 - Data TLB Error Interrupt)&amp;nbsp; , it don't stop. I set&amp;nbsp;&amp;nbsp;MSR. I set LED pin to test IVOR13. But not works for during debug mode also standalone mode. I wonder reason.&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 14:19:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-Stack-overflow-exception/m-p/1418283#M20517</guid>
      <dc:creator>20Sidar04</dc:creator>
      <dc:date>2022-02-23T14:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C Stack overflow exception</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-Stack-overflow-exception/m-p/1418979#M20522</link>
      <description>&lt;P&gt;How did you configured the MMU and where is your stack?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 09:38:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-Stack-overflow-exception/m-p/1418979#M20522</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2022-02-24T09:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C Stack overflow exception</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-Stack-overflow-exception/m-p/1420541#M20549</link>
      <description>&lt;P&gt;I used this source code for stack monitoring in main.c;&lt;/P&gt;&lt;P&gt;void config_SRAM(void){&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PPCASM("e_lis %r4, 0x0000");&lt;BR /&gt;PPCASM("e_or2i %r4, 0x0000");&lt;BR /&gt;PPCASM("mtspr 563, %r4");&lt;/P&gt;&lt;P&gt;PPCASM("e_lis %r4, _stack_end@h");&lt;BR /&gt;PPCASM("e_lis %r4,_stack_end@l");&lt;BR /&gt;PPCASM("mtspr 316, %r4");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My function generate for stack overflow;&lt;/P&gt;&lt;P&gt;void generate_stack_overflow(int a) {&lt;BR /&gt;if (a== 0)&lt;BR /&gt;{return;}&lt;BR /&gt;a = 6;&lt;BR /&gt;generate_stack_overflow(a);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;PPCASM("e_lis %r4, __SP_INIT@h");&lt;BR /&gt;PPCASM("e_or2i %r4, __SP_INIT@l");&lt;BR /&gt;PPCASM("mtspr 317, %r4");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 11:25:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-Stack-overflow-exception/m-p/1420541#M20549</guid>
      <dc:creator>20Sidar04</dc:creator>
      <dc:date>2022-02-28T11:25:48Z</dc:date>
    </item>
  </channel>
</rss>

