<?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 MMU running problem in codewarrior 10.6 environment in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MMU-running-problem-in-codewarrior-10-6-environment/m-p/810098#M7044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello：&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A project （MCU type: MPC5644A） can run normally in codewarrior 2.10 .&amp;nbsp; But in the codewarrior 10.6 environment &amp;nbsp;the program crashes. the program only have one function （MmuSetRam256K） which is about MMU initial. when the program run the instruction " tlbwe " （Write entry defined in MAS0 (Entry0 here) to MMU TLB），the program dies both in FLASH and RAM mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the program is&amp;nbsp; in&amp;nbsp; the attachment，look&amp;nbsp;forward to&amp;nbsp;your reply, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2018 10:03:51 GMT</pubDate>
    <dc:creator>pengjianxin</dc:creator>
    <dc:date>2018-11-28T10:03:51Z</dc:date>
    <item>
      <title>MMU running problem in codewarrior 10.6 environment</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MMU-running-problem-in-codewarrior-10-6-environment/m-p/810098#M7044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello：&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A project （MCU type: MPC5644A） can run normally in codewarrior 2.10 .&amp;nbsp; But in the codewarrior 10.6 environment &amp;nbsp;the program crashes. the program only have one function （MmuSetRam256K） which is about MMU initial. when the program run the instruction " tlbwe " （Write entry defined in MAS0 (Entry0 here) to MMU TLB），the program dies both in FLASH and RAM mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the program is&amp;nbsp; in&amp;nbsp; the attachment，look&amp;nbsp;forward to&amp;nbsp;your reply, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 10:03:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MMU-running-problem-in-codewarrior-10-6-environment/m-p/810098#M7044</guid>
      <dc:creator>pengjianxin</dc:creator>
      <dc:date>2018-11-28T10:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: MMU running problem in codewarrior 10.6 environment</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MMU-running-problem-in-codewarrior-10-6-environment/m-p/810099#M7045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;looking forward to your&amp;nbsp; response,My E@mal is" &lt;A data-content-finding="Community" href="mailto:flesher@126.com"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;flesher@126.com&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; ", thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 10:07:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MMU-running-problem-in-codewarrior-10-6-environment/m-p/810099#M7045</guid>
      <dc:creator>pengjianxin</dc:creator>
      <dc:date>2018-11-28T10:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: MMU running problem in codewarrior 10.6 environment</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MMU-running-problem-in-codewarrior-10-6-environment/m-p/810100#M7046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to reproduce this problem on my side, unfortunately, I have no idea, why the program does not work correct. I checked with Lauterbach debugger and there is no problem with functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only possibility for me is create bug ticket and wait, if this issue will be fixed in future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry for any inconvenience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 12:43:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MMU-running-problem-in-codewarrior-10-6-environment/m-p/810100#M7046</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2018-12-06T12:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: MMU running problem in codewarrior 10.6 environment</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MMU-running-problem-in-codewarrior-10-6-environment/m-p/810101#M7047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try writing to MMU entry&amp;nbsp;that is not zero. You are most likely replacing a previous entry that covered SRAM and/or FLASH and hence debugging fails. E.g. try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e_lis r3, &lt;STRONG&gt;0x1003&lt;/STRONG&gt; // Select TLB1 Entry 1, define R/W replacement control&lt;BR /&gt; ori r3, r3, 0x0000&lt;BR /&gt; mtMAS0 r3 // Load MAS0 with 0x1003 0000 for TLB Entry1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within Codewarrior 2.10, the MMU table is initialized differently using a reset macro script from PEmicro. Within this script, there are multiple entries in the MMU that closely resembles how the BAF initializes the chip. The zeroth entry is Peripheral B and this is why FLASH and SRAM were kept intact and debugging behaved normally. Most likely Lauterbach is similarly setting up the MMU Table in this fashion and hence why there was no issue there as well. However in Codewarrior 10.x and 11.x the reset scripts are handled using NXP's TCL scripts that writes only one entry in the MMU Table at entry 0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Setup MMU entry 0 for entire 32-bit address space: base address = 0x0000_0000&lt;BR /&gt; # 4GB Memory Space, Not Guarded, Cache inhibited, All Access&lt;BR /&gt; if {$booke_vle == "vle"} {&lt;BR /&gt; # VLE page&lt;BR /&gt; reg ${TLB1_GROUP}MMU_CAM0 = 0xB0000008FE0800000000000000000001&lt;BR /&gt; } else {&lt;BR /&gt; # BOOKE page&lt;BR /&gt; reg ${TLB1_GROUP}MMU_CAM0 = 0xB0000008FC0800000000000000000001&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one entry is set to cover the entire memory map. Your entry is replacing this single MMU table entry and therefore you lose access to the flash and SRAM located elsewhere. This is why reading the current MMU table entries before writing to it is probably good practice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, S32 Power IDE does use PEmicro's reset scripts so users will not face this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Takao&amp;nbsp;&lt;/P&gt;&lt;P&gt;PEmicro Design Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2018 20:21:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MMU-running-problem-in-codewarrior-10-6-environment/m-p/810101#M7047</guid>
      <dc:creator>takaoyamada</dc:creator>
      <dc:date>2018-12-07T20:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: MMU running problem in codewarrior 10.6 environment</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MMU-running-problem-in-codewarrior-10-6-environment/m-p/810102#M7048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Takao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for explanation. Now, it makes sense to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it is necessary to edit TCL script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2018 11:24:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MMU-running-problem-in-codewarrior-10-6-environment/m-p/810102#M7048</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2018-12-14T11:24:04Z</dc:date>
    </item>
  </channel>
</rss>

