<?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: S32K144's MPU issue in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015040#M5868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to change the default MPU setting to my requirements. But, since RGD0 can't be modified during the debug session, and since it allows access to the entire space, how can I debug my new setting (with S32DS)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2020 13:11:19 GMT</pubDate>
    <dc:creator>MPC8313ERDB_h</dc:creator>
    <dc:date>2020-01-16T13:11:19Z</dc:date>
    <item>
      <title>S32K144's MPU issue</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015036#M5864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an issue with the S32K144's MPU. I'm trying to protect an application depended region.&lt;BR /&gt;This implies that RGD0_WORDn should be modified (or disabled) because the default setting, out of reset, permits access to the entire P-flash.&lt;BR /&gt;However, once I try to modify any one of the RGD0_WORDn's registers (which disables RGD0 descriptor), I run to an &lt;STRONG&gt;exception&lt;/STRONG&gt;.&amp;nbsp;Furthermore, I duplicated RGD0 values to RGD1 (the UM says there is 'OR' relationship exists between the 8 descriptors), so that they are fully overlapped. Clearing RGD0_WORD3[valid] bit causes &lt;STRONG&gt;exception&lt;/STRONG&gt;, but clearing RGD1_WORD1[valid] bit causes no exception.&lt;BR /&gt;My quick conclusion is that the descriptors must be sequentially enabled. If this is the case, (which I could not find in the UM) how to modify the default MPU setting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Two notes:&lt;/EM&gt;&lt;BR /&gt;1. All MPU manipulations executed after disabling CESR[valid] bit, meaning MPU is disabled.&lt;BR /&gt;2. After the exception I monitor the MPU registers and all ERDn registers remain cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the MPU setting before 'touching' RGD0 registers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CESR: 0x00814000 @4000d000&lt;BR /&gt;EAR0: 0x00000000 @4000d010&lt;BR /&gt;EDR0: 0x00000000 @4000d014&lt;BR /&gt;EAR1: 0x00000000 @4000d018&lt;BR /&gt;EDR1: 0x00000000 @4000d01c&lt;BR /&gt;EAR2: 0x00000000 @4000d020&lt;BR /&gt;EDR2: 0x00000000 @4000d024&lt;BR /&gt;EAR3: 0x00000000 @4000d028&lt;BR /&gt;EDR3: 0x00000000 @4000d02c&lt;/P&gt;&lt;P&gt;RGD0_WORD0: 0x00000000 @4000d400&lt;BR /&gt;RGD0_WORD1: 0xFFFFFFFF @4000d404&lt;BR /&gt;RGD0_WORD2: 0x0061F7DF @4000d408&lt;BR /&gt;RGD0_WORD3: 0x00000001 @4000d40c&lt;BR /&gt;RGD1_WORD0: 0x00000000 @4000d410&lt;BR /&gt;RGD1_WORD1: 0xFFFFFFFF @4000d414&lt;BR /&gt;RGD1_WORD2: 0x0061F7DF @4000d418&lt;BR /&gt;RGD1_WORD3: 0x00000001 @4000d41c&lt;/P&gt;&lt;P&gt;RGD2_WORD0: 0x00000000 @4000d420&lt;BR /&gt;RGD2_WORD1: 0x0000001F @4000d424&lt;BR /&gt;RGD2_WORD2: 0x00000000 @4000d428&lt;BR /&gt;RGD2_WORD3: 0x00000000 @4000d42c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RGDAAC0: 0x0061F7DF @4000d800&lt;BR /&gt;RGDAAC1: 0x0061F7DF @4000d804&lt;BR /&gt;RGDAAC2: 0x00000000 @4000d808&lt;BR /&gt;RGDAAC3: 0x00000000 @4000d80c&lt;BR /&gt;RGDAAC4: 0x00000000 @4000d810&lt;BR /&gt;RGDAAC5: 0x00000000 @4000d814&lt;BR /&gt;RGDAAC6: 0x00000000 @4000d818&lt;BR /&gt;RGDAAC7: 0x00000000 @4000d81c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2020 15:50:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015036#M5864</guid>
      <dc:creator>MPC8313ERDB_h</dc:creator>
      <dc:date>2020-01-15T15:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's MPU issue</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015037#M5865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;It has been already discussed here on the community.&lt;/P&gt;&lt;P&gt;Could you please refer to these threads first:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/504225"&gt;MPU Region0 &lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/509659"&gt;MPU S32K144 can not change region descriptor (RGD)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 11:17:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015037#M5865</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-01-16T11:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's MPU issue</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015038#M5866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Daniel. Is that imply that I can't debug the MPU during my development phase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 11:35:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015038#M5866</guid>
      <dc:creator>MPC8313ERDB_h</dc:creator>
      <dc:date>2020-01-16T11:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's MPU issue</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015039#M5867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, can you please elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 12:02:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015039#M5867</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-01-16T12:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's MPU issue</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015040#M5868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to change the default MPU setting to my requirements. But, since RGD0 can't be modified during the debug session, and since it allows access to the entire space, how can I debug my new setting (with S32DS)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 13:11:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015040#M5868</guid>
      <dc:creator>MPC8313ERDB_h</dc:creator>
      <dc:date>2020-01-16T13:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's MPU issue</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015041#M5869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the&amp;nbsp;Region Descriptor Alternate Access Control 0 (RGDAAC0) register to&amp;nbsp;change the&amp;nbsp;masters'&amp;nbsp;(but not the debugger's) rights in the first descriptor. For example, you can use Descriptor 1 to give the core access to a part of the memory and then use the&amp;nbsp;RGDAAC0 register to disable the core access in the Descriptor 0. Then, the core can access only the memory defined by Descriptor 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 13:29:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015041#M5869</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-01-16T13:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's MPU issue</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015042#M5870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent. Thank you Daniel!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 14:07:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K144-s-MPU-issue/m-p/1015042#M5870</guid>
      <dc:creator>MPC8313ERDB_h</dc:creator>
      <dc:date>2020-01-16T14:07:53Z</dc:date>
    </item>
  </channel>
</rss>

