<?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: S32K MPU implementation to realize the SW partition in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1507315#M17151</link>
    <description>&lt;P&gt;Hi Joan,&lt;/P&gt;
&lt;P&gt;there's one more option which can be used for this purpose - Process ID (PID) which is also mentioned in the table you shared.&lt;/P&gt;
&lt;P&gt;Let me share some screenshots from the reference manual:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1660722491678.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190474i27A15182F2F96F9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1660722491678.png" alt="lukaszadrapa_0-1660722491678.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="lukaszadrapa_1-1660722509467.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190475i1F3689D700CCBD7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1660722509467.png" alt="lukaszadrapa_1-1660722509467.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And Region Descriptor n, Word 3 (RGD1_WORD3 - RGD15_WORD3):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_2-1660722538435.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190476iCE2E0944B6463D43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_2-1660722538435.png" alt="lukaszadrapa_2-1660722538435.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for reference only - I wrote simple example for MPC5748G which shows how PID works:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5748G-SMPU-initialization-Process-ID-test-GHS614/ta-p/1104607" target="_blank"&gt;https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5748G-SMPU-initialization-Process-ID-test-GHS614/ta-p/1104607&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It's different device, different MPU but I'm sharing it to see the principle. Just see the test case in main function.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2022 07:51:49 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2022-08-17T07:51:49Z</dc:date>
    <item>
      <title>S32K MPU implementation to realize the SW partition</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1506111#M17080</link>
      <description>&lt;P&gt;Hi , Team&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; we are using the NXP S32K144/146 chips in our design, when implementation the SW partition to isolated the ASIL and QM memory and tasks using MPU&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the description in the reference manual, we have 3 ways to realize the partition, but in our application , we only have one master (Core), the usable method are TIP2 and TIP 3;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joan_ni_0-1660554090770.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190189i5C7501FBE3358F7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joan_ni_0-1660554090770.png" alt="joan_ni_0-1660554090770.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;TIP 2:&amp;nbsp; change the user/supervisor mode&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIP 3: dynamic change the access right .&lt;/P&gt;&lt;P&gt;what is suggest way to realize the SW partition ? and if possible , please also help to list the disadvantages of each methods&amp;nbsp;&lt;/P&gt;&lt;P&gt;or if you have better way to use MPU, please let us know , thank you very much ~~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joan&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 09:06:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1506111#M17080</guid>
      <dc:creator>joan_ni</dc:creator>
      <dc:date>2022-08-15T09:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MPU implementation to realize the SW partition</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1507315#M17151</link>
      <description>&lt;P&gt;Hi Joan,&lt;/P&gt;
&lt;P&gt;there's one more option which can be used for this purpose - Process ID (PID) which is also mentioned in the table you shared.&lt;/P&gt;
&lt;P&gt;Let me share some screenshots from the reference manual:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1660722491678.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190474i27A15182F2F96F9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1660722491678.png" alt="lukaszadrapa_0-1660722491678.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="lukaszadrapa_1-1660722509467.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190475i1F3689D700CCBD7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1660722509467.png" alt="lukaszadrapa_1-1660722509467.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And Region Descriptor n, Word 3 (RGD1_WORD3 - RGD15_WORD3):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_2-1660722538435.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190476iCE2E0944B6463D43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_2-1660722538435.png" alt="lukaszadrapa_2-1660722538435.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for reference only - I wrote simple example for MPC5748G which shows how PID works:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5748G-SMPU-initialization-Process-ID-test-GHS614/ta-p/1104607" target="_blank"&gt;https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5748G-SMPU-initialization-Process-ID-test-GHS614/ta-p/1104607&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It's different device, different MPU but I'm sharing it to see the principle. Just see the test case in main function.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 07:51:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1507315#M17151</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2022-08-17T07:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MPU implementation to realize the SW partition</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1507360#M17154</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;thanks for your support, actually we research with the PID register, but it can not implement our application. For each region, the assess right (R/W/X) is defined according to the region descriptor register.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Region 0;(Same region)&lt;/P&gt;&lt;P&gt;PID 1 (allow) can visit the region , PID 2 can not visit the region, this can easy realized.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but we want realize below condition&lt;/P&gt;&lt;P&gt;For region0, Process 1 have the assess right (R/X/W), but Process 2 have the assess right (R)[read only ], how to realize this function ?&amp;nbsp; or do you have better solution ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;the solution what we have is list as beginning, so we want know if we do like this , is there any side-effect ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping reply form your side.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joan&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 08:45:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1507360#M17154</guid>
      <dc:creator>joan_ni</dc:creator>
      <dc:date>2022-08-17T08:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MPU implementation to realize the SW partition</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1507547#M17165</link>
      <description>&lt;P&gt;You can do that with PID. The idea is following: you will configure two descriptors covering the same region. You will also enable the PID in both descriptors, so these descriptors are not considered as overlapping because also PID will be used to check if there's a hit or not. So, you can configure access rights for each process ID separately.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 14:02:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1507547#M17165</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2022-08-17T14:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MPU implementation to realize the SW partition</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1507851#M17168</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great thanks , it make sense ~~&lt;/P&gt;&lt;P&gt;Joan&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 00:50:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1507851#M17168</guid>
      <dc:creator>joan_ni</dc:creator>
      <dc:date>2022-08-18T00:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MPU implementation to realize the SW partition</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1507883#M17169</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;As my understanding , according your solution we should dynamic change MCM_PID content.&lt;/P&gt;&lt;P&gt;we have&amp;nbsp;&lt;SPAN&gt;descriptor 1(With PID 1,r/w/x) and&amp;nbsp;descriptor 2(with PID 2,r). and when executing task1 set MCM_PID=1,&amp;nbsp; and&amp;nbsp;executing task 2 MCM_PID=2, like this for the same region we can have different assess right. If there is something wrong, please let me know .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but how to understand ''System software loads this register before passing control to a given user mode&lt;BR /&gt;process.'' this words in RM, if the interrupt comes, (with supervisor assess right ,like PendSV)&amp;nbsp; also need setting the PID ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;or PID only used in user mode ?&lt;/P&gt;&lt;P&gt;another problem is when in task1 , a interrupt happened , will the interrupt still using the same assess right with Task 1?&amp;nbsp; and when the interrupt finished, back to task1, how to judgement the assess right ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you have better solution, please share with us , thank you ~~&lt;/P&gt;&lt;P&gt;Joan&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 01:56:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1507883#M17169</guid>
      <dc:creator>joan_ni</dc:creator>
      <dc:date>2022-08-18T01:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MPU implementation to realize the SW partition</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1508564#M17192</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&lt;/P&gt;&lt;P&gt;i am waiting for your reply, Can you share us with some suggestions ,thank you very much ~~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joan &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 05:27:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1508564#M17192</guid>
      <dc:creator>joan_ni</dc:creator>
      <dc:date>2022-08-19T05:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MPU implementation to realize the SW partition</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1509307#M17218</link>
      <description>&lt;P&gt;Hi Joan,&lt;/P&gt;
&lt;P&gt;I'm sorry for late response.&lt;/P&gt;
&lt;P&gt;PID takes effect in both user and supervisor mode.&lt;/P&gt;
&lt;P&gt;The best option is to have ISR handlers in another part of flash memory which is covered by separate descriptor. Then just disable PID for this descriptor, so it doesn't matter what the current state of MCM_PID is. When you come back from interrupt, the MCM_PID and access rights will be still valid.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 07:55:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MPU-implementation-to-realize-the-SW-partition/m-p/1509307#M17218</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2022-08-22T07:55:40Z</dc:date>
    </item>
  </channel>
</rss>

