<?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 K66 MPU Doesn't Set in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-MPU-Doesn-t-Set/m-p/641885#M38879</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;I have a problem with MPU, MK66FN2M0VLL18. When I try to protect all memory or specific region, protection doesn't set, because I set write protected area, and this area is still unprotected. I didnt understand what is the problem.&lt;/P&gt;&lt;P&gt;could you share MPU example code or document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MPU_CESR &amp;amp;= ~MPU_CESR_VLD_MASK;&lt;/P&gt;&lt;P&gt;for (i = 0; i &amp;lt; CORTEX_MPU_REC; i++) {&lt;BR /&gt; MPU_WORD(i, 2) = 0;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_kinetis_mpu_add_region(0, (unsigned char *)0xffffffff, \&lt;BR /&gt; MPU_WORD_M1SM(MPU_SM_RWX) | MPU_WORD_M1UM(0) | \&lt;BR /&gt; MPU_WORD_M0SM(MPU_SM_RWX) | MPU_WORD_M0UM(0));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MPU_CESR |= MPU_CESR_VLD_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2017 07:15:36 GMT</pubDate>
    <dc:creator>ramazantoprak</dc:creator>
    <dc:date>2017-02-16T07:15:36Z</dc:date>
    <item>
      <title>K66 MPU Doesn't Set</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-MPU-Doesn-t-Set/m-p/641885#M38879</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;I have a problem with MPU, MK66FN2M0VLL18. When I try to protect all memory or specific region, protection doesn't set, because I set write protected area, and this area is still unprotected. I didnt understand what is the problem.&lt;/P&gt;&lt;P&gt;could you share MPU example code or document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MPU_CESR &amp;amp;= ~MPU_CESR_VLD_MASK;&lt;/P&gt;&lt;P&gt;for (i = 0; i &amp;lt; CORTEX_MPU_REC; i++) {&lt;BR /&gt; MPU_WORD(i, 2) = 0;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_kinetis_mpu_add_region(0, (unsigned char *)0xffffffff, \&lt;BR /&gt; MPU_WORD_M1SM(MPU_SM_RWX) | MPU_WORD_M1UM(0) | \&lt;BR /&gt; MPU_WORD_M0SM(MPU_SM_RWX) | MPU_WORD_M0UM(0));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MPU_CESR |= MPU_CESR_VLD_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 07:15:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-MPU-Doesn-t-Set/m-p/641885#M38879</guid>
      <dc:creator>ramazantoprak</dc:creator>
      <dc:date>2017-02-16T07:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: K66 MPU Doesn't Set</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-MPU-Doesn-t-Set/m-p/641886#M38880</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;Please check &lt;A href="https://mcuxpresso.nxp.com/en/welcome"&gt;here&lt;/A&gt; to build the KSDK V2.0 software for FRDM-K66F board.&lt;BR /&gt;After download the software package, you could find the MPU example code located at below default folder:&lt;BR /&gt;..\SDK_2.0_FRDM-K66F\boards\frdmk66f\driver_examples\mpu&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 00:54:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-MPU-Doesn-t-Set/m-p/641886#M38880</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-02-17T00:54:58Z</dc:date>
    </item>
  </channel>
</rss>

