<?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>Kinetis MicrocontrollersのトピックRe: toggling program flash protection mk22fn1m0vlh12</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/toggling-program-flash-protection-mk22fn1m0vlh12/m-p/633397#M38162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. NV_FPROTn is an address in Flash and so &lt;SPAN style="text-decoration: underline;"&gt;you can't write to it from your code&lt;/SPAN&gt; (it gives you your hard fault).&lt;BR /&gt;2. You can "enable" protection also by writing the FPROTn register (in the FTFE module itself - address 0x40020010..13)&lt;BR /&gt;3. Once protection has been enabled YOU CAN NOT DISABLE it (without either reprogramming the values in the Flash Configuration area, or by a reset if set manually).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For full details see the video:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2Fc9GRYXFs9LU" rel="nofollow" target="_blank"&gt;https://youtu.be/c9GRYXFs9LU&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jan 2017 17:16:10 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2017-01-21T17:16:10Z</dc:date>
    <item>
      <title>toggling program flash protection mk22fn1m0vlh12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/toggling-program-flash-protection-mk22fn1m0vlh12/m-p/633396#M38161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i'm trying to turn on and off flash protection. i can see how to do it in PE or by using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Flash configuration field */&lt;BR /&gt; __attribute__ ((section (".cfmconfig"))) const uint8_t _cfm[0x10] = {&lt;BR /&gt; /* NV_BACKKEY3: KEY=0xFF */&lt;BR /&gt; 0xFFU,&lt;BR /&gt; /* NV_BACKKEY2: KEY=0xFF */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how do i change the following field in my application:&lt;/P&gt;&lt;P&gt;/* NV_FPROT3: PROT=0xFF */&lt;BR /&gt; 0xFFU,&lt;BR /&gt; /* NV_FPROT2: PROT=0xFF */&lt;BR /&gt; 0xFFU,&lt;BR /&gt; /* NV_FPROT1: PROT=0xFF */&lt;BR /&gt; 0xFFU,&lt;BR /&gt; /* NV_FPROT0: PROT=0x7F */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;NV_FPROT3 = 0xFF;&lt;BR /&gt; NV_FPROT2 = 0xFF;&lt;BR /&gt; NV_FPROT1 = 0xFF;&lt;BR /&gt; NV_FPROT0 = 0x7F;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that causes hard fault. i can read from those however.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for help&lt;/P&gt;&lt;P&gt;dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 06:53:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/toggling-program-flash-protection-mk22fn1m0vlh12/m-p/633396#M38161</guid>
      <dc:creator>daafies</dc:creator>
      <dc:date>2017-01-21T06:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: toggling program flash protection mk22fn1m0vlh12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/toggling-program-flash-protection-mk22fn1m0vlh12/m-p/633397#M38162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. NV_FPROTn is an address in Flash and so &lt;SPAN style="text-decoration: underline;"&gt;you can't write to it from your code&lt;/SPAN&gt; (it gives you your hard fault).&lt;BR /&gt;2. You can "enable" protection also by writing the FPROTn register (in the FTFE module itself - address 0x40020010..13)&lt;BR /&gt;3. Once protection has been enabled YOU CAN NOT DISABLE it (without either reprogramming the values in the Flash Configuration area, or by a reset if set manually).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For full details see the video:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2Fc9GRYXFs9LU" rel="nofollow" target="_blank"&gt;https://youtu.be/c9GRYXFs9LU&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 17:16:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/toggling-program-flash-protection-mk22fn1m0vlh12/m-p/633397#M38162</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-21T17:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: toggling program flash protection mk22fn1m0vlh12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/toggling-program-flash-protection-mk22fn1m0vlh12/m-p/633398#M38163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Mark!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 19:33:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/toggling-program-flash-protection-mk22fn1m0vlh12/m-p/633398#M38163</guid>
      <dc:creator>daafies</dc:creator>
      <dc:date>2017-01-24T19:33:58Z</dc:date>
    </item>
  </channel>
</rss>

