<?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 MPU configuration error on MPC5777C in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPU-configuration-error-on-MPC5777C/m-p/771672#M11097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am getting exception just after configuring MPU and enabling it.&lt;/P&gt;&lt;P&gt;Please check below code and attached debugger screenshot, guide me how to proceed further&lt;/P&gt;&lt;P&gt;Please share application note and example code for MPU diagnostics for MPC5777C (cobra-55)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[0].WORD0.R = 0x40023000; // start address&lt;BR /&gt; MPU_0.RGD[0].WORD1.R = 0x40023400; // end address&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M0PE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M0SM = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M0UM = 5;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[1].WORD2.B.M1PE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M1SM = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M1UM = 5;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[1].WORD2.B.M2PE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M2SM = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M2UM = 5;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[1].WORD2.B.M3PE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M3SM = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M3UM = 5;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[0].WORD2.B.M7RE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M7WE = 1;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[0].WORD2.B.M6RE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M6WE = 1;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[0].WORD2.B.M5RE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M5WE = 1;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M4RE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M4WE = 1;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[0].WORD3.B.VLD = 1; // enable descriptor[0]&lt;/P&gt;&lt;P&gt;// enable descriptor[0]&lt;BR /&gt; MPU_0.CESR.B.VLD =1;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2018 05:54:21 GMT</pubDate>
    <dc:creator>purushothamredd</dc:creator>
    <dc:date>2018-05-21T05:54:21Z</dc:date>
    <item>
      <title>MPU configuration error on MPC5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPU-configuration-error-on-MPC5777C/m-p/771672#M11097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am getting exception just after configuring MPU and enabling it.&lt;/P&gt;&lt;P&gt;Please check below code and attached debugger screenshot, guide me how to proceed further&lt;/P&gt;&lt;P&gt;Please share application note and example code for MPU diagnostics for MPC5777C (cobra-55)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[0].WORD0.R = 0x40023000; // start address&lt;BR /&gt; MPU_0.RGD[0].WORD1.R = 0x40023400; // end address&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M0PE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M0SM = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M0UM = 5;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[1].WORD2.B.M1PE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M1SM = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M1UM = 5;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[1].WORD2.B.M2PE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M2SM = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M2UM = 5;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[1].WORD2.B.M3PE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M3SM = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M3UM = 5;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[0].WORD2.B.M7RE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M7WE = 1;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[0].WORD2.B.M6RE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M6WE = 1;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[0].WORD2.B.M5RE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M5WE = 1;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M4RE = 1;&lt;BR /&gt; MPU_0.RGD[0].WORD2.B.M4WE = 1;&lt;/P&gt;&lt;P&gt;MPU_0.RGD[0].WORD3.B.VLD = 1; // enable descriptor[0]&lt;/P&gt;&lt;P&gt;// enable descriptor[0]&lt;BR /&gt; MPU_0.CESR.B.VLD =1;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 05:54:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPU-configuration-error-on-MPC5777C/m-p/771672#M11097</guid>
      <dc:creator>purushothamredd</dc:creator>
      <dc:date>2018-05-21T05:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: MPU configuration error on MPC5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPU-configuration-error-on-MPC5777C/m-p/771673#M11098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;be aware that any access to area which is not covered by MPU descriptor leads to bus error. It is considered as access violation. So, before enabling MPU by this command:&lt;/P&gt;&lt;P&gt;MPU_0.CESR.B.VLD =1;&lt;/P&gt;&lt;P&gt;… make sure that all the memory mapped resources are covered by descriptors.&lt;/P&gt;&lt;P&gt;I do not have an example written directly for MPC5777C but you can take a look at this one:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-333962"&gt;https://community.nxp.com/docs/DOC-333962&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a first step, a couple of descriptors are used to cover all the memory resources (flash, RAM, peripheral bridges…).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;In next step, descriptor covering RAM is changed and next descriptor is used to disable access to part of RAM. Then that RAM is accessed to show that bus error is triggered due to access violation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Lukas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 14:08:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPU-configuration-error-on-MPC5777C/m-p/771673#M11098</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2018-05-22T14:08:27Z</dc:date>
    </item>
  </channel>
</rss>

