<?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>S32KのトピックRe: A question about s32k144 MPU</title>
    <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2159741#M52224</link>
    <description>&lt;P&gt;&lt;EM&gt;How can I determine which addresses can be set as read disabled and which addresses cannot be set as read disabled to ensure the normal operation of my program&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Aug 2025 07:58:02 GMT</pubDate>
    <dc:creator>pangyun</dc:creator>
    <dc:date>2025-08-28T07:58:02Z</dc:date>
    <item>
      <title>A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2122930#M50231</link>
      <description>&lt;P&gt;My configuration is as follows：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pangyun_1-1750837150230.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344564i9FA07D1DA633A230/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_1-1750837150230.png" alt="pangyun_1-1750837150230.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pangyun_2-1750837174257.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344566i8B695C9E1AB4BBC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_2-1750837174257.png" alt="pangyun_2-1750837174257.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pangyun_3-1750837188264.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344567iD874FFFADD4EA63A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_3-1750837188264.png" alt="pangyun_3-1750837188264.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pangyun_4-1750837203337.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344568iF04CEA67A7C43721/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_4-1750837203337.png" alt="pangyun_4-1750837203337.png" /&gt;&lt;/span&gt;&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="pangyun_5-1750837213366.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344569i56B6CC0DE7E96E7C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_5-1750837213366.png" alt="pangyun_5-1750837213366.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;(void)MPU_EnableRegion(&amp;amp;mpu_pal_config_1_Instance, 3U, false);&lt;/P&gt;&lt;P&gt;//test = *((uint32_t *)ADDRESS_PROTECT);&lt;/P&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;There is no code to read,but it will always go to "void HardFault_Handler(void)".&lt;/P&gt;&lt;P&gt;Change the configuration:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pangyun_6-1750837677892.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344572iC3ED50AE3FAB565A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_6-1750837677892.png" alt="pangyun_6-1750837677892.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I only changed the address.It will be ok! I am confused.&lt;/P&gt;&lt;P&gt;Please tell me the reason,thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 07:49:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2122930#M50231</guid>
      <dc:creator>pangyun</dc:creator>
      <dc:date>2025-06-25T07:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2127277#M50492</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230796"&gt;@pangyun&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you please share the project so that I can test it?&lt;/P&gt;
&lt;P&gt;What do you see in S32_SCB_CFSR and BFAR registers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 13:00:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2127277#M50492</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-07-02T13:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2139807#M51266</link>
      <description>&lt;P&gt;My project's name&amp;nbsp; is "mpu_pal_memory_protection_s32k144"&amp;nbsp; from the example.I only change the adress in the MPU configuration and some code in main.c, I use Debug_Flash,, here‘s&amp;nbsp;&amp;nbsp;the MPU configuration and the code I changed in main.c,&amp;nbsp;you can test.Thank you!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pangyun_2-1753328847511.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/349244i52C018C0C6E23AA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_2-1753328847511.png" alt="pangyun_2-1753328847511.png" /&gt;&lt;/span&gt;&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="pangyun_0-1753328720810.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/349242i0D4C6CCC4B57AAAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_0-1753328720810.png" alt="pangyun_0-1753328720810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pangyun_1-1753328732504.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/349243iAC0DF81C64AE9CF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_1-1753328732504.png" alt="pangyun_1-1753328732504.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 03:49:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2139807#M51266</guid>
      <dc:creator>pangyun</dc:creator>
      <dc:date>2025-07-24T03:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2143606#M51483</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230796"&gt;@pangyun&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm sorry for the delay.&lt;/P&gt;
&lt;P&gt;I have been testing it and I think I can reproduce it, however, it fails during a read operation.&lt;/P&gt;
&lt;P&gt;If I let it run, it ends up in the HardFault_Handler().&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1753884593738.png" style="width: 463px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350271i06C38CE4C7DE2286/image-dimensions/463x542?v=v2" width="463" height="542" role="button" title="danielmartynek_0-1753884593738.png" alt="danielmartynek_0-1753884593738.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;MAP file:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1753884641678.png" style="width: 465px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350272i57B122A9C42D9ACC/image-dimensions/465x78?v=v2" width="465" height="78" role="button" title="danielmartynek_1-1753884641678.png" alt="danielmartynek_1-1753884641678.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_2-1753884796039.png" style="width: 483px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350274i2007F8B32FD73698/image-dimensions/483x339?v=v2" width="483" height="339" role="button" title="danielmartynek_2-1753884796039.png" alt="danielmartynek_2-1753884796039.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_3-1753884826222.png" style="width: 490px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350275i44619BC5A56D831C/image-dimensions/490x64?v=v2" width="490" height="64" role="button" title="danielmartynek_3-1753884826222.png" alt="danielmartynek_3-1753884826222.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you confirm you have the same results?&lt;/P&gt;
&lt;P&gt;If not, please send your complete project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 14:14:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2143606#M51483</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-07-30T14:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2145004#M51539</link>
      <description>&lt;P&gt;Yes ,it is confirmed that I have the same results, but what's the problem?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 08:14:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2145004#M51539</guid>
      <dc:creator>pangyun</dc:creator>
      <dc:date>2025-08-01T08:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2145023#M51541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230796"&gt;@pangyun&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You disabled the descriptor that grants the core access to the flash region, which is now causing read operations to fail. From my perspective, this behavior appears expected, I don't see any problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 08:42:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2145023#M51541</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-08-01T08:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2145042#M51543</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;You disabled the &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;descriptor&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt; that grants the core access to the flash region,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and the read operation is blocked, but&amp;nbsp; the problem also exist,why&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pangyun_0-1754038856041.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350591i0D0DBF919284F966/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_0-1754038856041.png" alt="pangyun_0-1754038856041.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 09:01:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2145042#M51543</guid>
      <dc:creator>pangyun</dc:creator>
      <dc:date>2025-08-01T09:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2145772#M51567</link>
      <description>&lt;P&gt;I know your means,but I want to realize a funtion that when I&amp;nbsp;&lt;SPAN&gt;disable some regions to ignore Core read permission, some read cann't be allowed ,for example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;test = *((uint32_t *)ADDRESS_PROTECT),but some codes like :PINS_DRV_ReadPins(SW_GPIO) &amp;amp; (1U &amp;lt;&amp;lt; SW) ,it will also go to the hard fault too, I don't want this happen,I need it to run normally.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am confused now, when I use MPU, some regions cann't be set&amp;nbsp;read permission,it wil lead a serious problem,I want to know what these regions are?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 02:45:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2145772#M51567</guid>
      <dc:creator>pangyun</dc:creator>
      <dc:date>2025-08-04T02:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2146208#M51582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230796"&gt;@pangyun&lt;/a&gt;,&lt;/P&gt;
&lt;P style="display: block; font-weight: 400; margin: 8px 0px 4px; overflow-wrap: break-word; color: #d6d6d6; font-family: 'Segoe Sans', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #1f1f1f; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-darkreader-inline-color="" data-darkreader-inline-bgcolor=""&gt;Certain SDK functions read constant data stored in flash memory. If the MPU is configured to disable read access to those flash regions, these functions may trigger a HardFault.&lt;/P&gt;
&lt;P style="display: block; font-weight: 400; margin: 8px 0px 4px; overflow-wrap: break-word; color: #d6d6d6; font-family: 'Segoe Sans', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #1f1f1f; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-darkreader-inline-color="" data-darkreader-inline-bgcolor=""&gt;To avoid this, you can restructure your linker file to define&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="font-weight: 600;"&gt;separate memory sections&lt;/STRONG&gt;:&lt;/P&gt;
&lt;OL style="margin: 4px 0px; padding-inline: 24px 0px; box-sizing: border-box; color: #d6d6d6; font-family: 'Segoe Sans', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #1f1f1f; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-darkreader-inline-color="" data-darkreader-inline-bgcolor=""&gt;
&lt;LI style="padding-inline-start: 4px;"&gt;&lt;STRONG style="font-weight: 600;"&gt;Code Section&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;– contains executable functions.&lt;/LI&gt;
&lt;LI style="padding-inline-start: 4px;"&gt;&lt;STRONG style="font-weight: 600;"&gt;Constant Data Section&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;– contains read-only constants used by the SDK.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P style="display: block; font-weight: 400; margin: 8px 0px 4px; overflow-wrap: break-word; color: #d6d6d6; font-family: 'Segoe Sans', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #1f1f1f; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-darkreader-inline-color="" data-darkreader-inline-bgcolor=""&gt;By doing this, you can configure the MPU with more precision:&lt;/P&gt;
&lt;UL style="list-style: disc; margin: 4px 0px; padding: 0px; padding-inline: 24px 0px; box-sizing: border-box; color: #d6d6d6; font-family: 'Segoe Sans', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #1f1f1f; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-darkreader-inline-color="" data-darkreader-inline-bgcolor=""&gt;
&lt;LI style="padding-inline-start: 4px;"&gt;&lt;STRONG style="font-weight: 600;"&gt;Allow execution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the code section.&lt;/LI&gt;
&lt;LI style="padding-inline-start: 4px;"&gt;&lt;STRONG style="font-weight: 600;"&gt;Allow read access&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the constant data section.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P style="display: block; font-weight: 400; margin: 8px 0px 4px; overflow-wrap: break-word; color: #d6d6d6; font-family: 'Segoe Sans', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #1f1f1f; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-darkreader-inline-color="" data-darkreader-inline-bgcolor=""&gt;This separation ensures that functions can execute without faulting, even if read access is disabled in the code region, because the constants they rely on are located in a region where reading is permitted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 13:12:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2146208#M51582</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-08-04T13:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2151961#M51833</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pangyun_2-1755139096252.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352315iE1CB417E07F1C010/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_2-1755139096252.png" alt="pangyun_2-1755139096252.png" /&gt;&lt;/span&gt;&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="pangyun_0-1755138425369.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352312i7104D1EFC55FD674/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_0-1755138425369.png" alt="pangyun_0-1755138425369.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pangyun_1-1755138446002.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352313iD97AAC6AB6B131CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_1-1755138446002.png" alt="pangyun_1-1755138446002.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have done as you said:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Allow read access&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the constant data section.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Allow execution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the code section.&lt;/P&gt;&lt;P&gt;But the problem still exsits, why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 02:39:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2151961#M51833</guid>
      <dc:creator>pangyun</dc:creator>
      <dc:date>2025-08-14T02:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2152717#M51854</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230796"&gt;@pangyun&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you check the location of the constants in the MAP file?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 06:24:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2152717#M51854</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-08-15T06:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2157208#M52113</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pangyun_0-1756084336272.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353854i55F62650E4DE9F6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pangyun_0-1756084336272.png" alt="pangyun_0-1756084336272.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Yes，I checked the MAP file and it is confirmed that the constant&amp;nbsp; had been moved .&lt;/P&gt;&lt;P&gt;The address I need to protect involves the entire program area that&amp;nbsp;start from address 0,I don't know whether this function can be achieved by using MPU。&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 01:17:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2157208#M52113</guid>
      <dc:creator>pangyun</dc:creator>
      <dc:date>2025-08-25T01:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2157367#M52120</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230796"&gt;@pangyun&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you share the project so that I can easily reproduce it?&lt;/P&gt;
&lt;P&gt;If you don't want to share it here, please create a support ticket.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1756105317421.png" style="width: 460px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353898i05E484CA0908D40A/image-dimensions/460x214?v=v2" width="460" height="214" role="button" title="danielmartynek_0-1756105317421.png" alt="danielmartynek_0-1756105317421.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 07:02:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2157367#M52120</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-08-25T07:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2157453#M52127</link>
      <description>&lt;P&gt;I don't know how to share my project with you.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 08:55:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2157453#M52127</guid>
      <dc:creator>pangyun</dc:creator>
      <dc:date>2025-08-25T08:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2157510#M52131</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230796"&gt;@pangyun&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please compress the entire project into a .zip file and attach it either here or to the support ticket.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 10:31:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2157510#M52131</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-08-25T10:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2157849#M52143</link>
      <description>&lt;P&gt;Here my project, you can test, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 00:46:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2157849#M52143</guid>
      <dc:creator>pangyun</dc:creator>
      <dc:date>2025-08-26T00:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2159720#M52219</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230796"&gt;@pangyun&lt;/a&gt; for the project.&lt;/P&gt;
&lt;P&gt;I just tested it.&lt;/P&gt;
&lt;P&gt;First, I compiled it into the flash, because you were testing it in SRAM&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1756365583128.png" style="width: 689px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/354538i2D3470E724B9775E/image-dimensions/689x405?v=v2" width="689" height="405" role="button" title="danielmartynek_0-1756365583128.png" alt="danielmartynek_0-1756365583128.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then I changed&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(void)MPU_EnableRegion(&amp;amp;mpu_pal_config_1_Instance, 2U, false);&lt;/P&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;P&gt;(void)MPU_EnableRegion(&amp;amp;mpu_pal_config_1_Instance, 3U, false);&lt;/P&gt;
&lt;P&gt;So that the descriptor 3 that allows the READ access is disabled only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After debugging I see that the fault is at 0x2F5C.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1756365722681.png" style="width: 680px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/354539i6F290AE77CA59099/image-dimensions/680x288?v=v2" width="680" height="288" role="button" title="danielmartynek_1-1756365722681.png" alt="danielmartynek_1-1756365722681.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is because the code of MPU_GetError() uses a LDR instruction to load R0 with the value at 0x2F5C - so this is a read operation. Execution of the code in the Flash is allowed by the MPU but reading is not.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_2-1756365811410.png" style="width: 720px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/354540i0FF8D99BB57272A0/image-dimensions/720x108?v=v2" width="720" height="108" role="button" title="danielmartynek_2-1756365811410.png" alt="danielmartynek_2-1756365811410.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 07:28:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2159720#M52219</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-08-28T07:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2159738#M52223</link>
      <description>&lt;P&gt;Thank you for your test,but&amp;nbsp;now how can I ensure my project runs normally while preventing flash from being read.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 07:55:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2159738#M52223</guid>
      <dc:creator>pangyun</dc:creator>
      <dc:date>2025-08-28T07:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2159741#M52224</link>
      <description>&lt;P&gt;&lt;EM&gt;How can I determine which addresses can be set as read disabled and which addresses cannot be set as read disabled to ensure the normal operation of my program&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 07:58:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2159741#M52224</guid>
      <dc:creator>pangyun</dc:creator>
      <dc:date>2025-08-28T07:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: A question about s32k144 MPU</title>
      <link>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2159742#M52225</link>
      <description>&lt;P&gt;Our design requirement was to set as much program information as possible to be unreadable, but now it is affecting the normal operation of the program itself. What should I do。&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 08:00:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/A-question-about-s32k144-MPU/m-p/2159742#M52225</guid>
      <dc:creator>pangyun</dc:creator>
      <dc:date>2025-08-28T08:00:42Z</dc:date>
    </item>
  </channel>
</rss>

