<?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のトピックK82 : FLASH_PflashSetProtection &amp; FLASH_PflashGetProtection</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-FLASH-PflashSetProtection-FLASH-PflashGetProtection/m-p/890216#M52610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it be so that those API is not work properly ?&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;if (config-&amp;gt;ftfxConfig[0].flashDesc.feature.hasProtControl)&lt;BR /&gt; {&lt;BR /&gt; if (&lt;STRONG&gt;config-&amp;gt;ftfxConfig[0].flashDesc.feature.ProtRegBits &amp;gt;= 32&lt;/STRONG&gt;)&lt;BR /&gt; {&lt;BR /&gt; *kFPROTL = protectStatus-&amp;gt;protl;&lt;BR /&gt; if (protectStatus-&amp;gt;protl != *kFPROTL)&lt;BR /&gt; {&lt;BR /&gt; return kStatus_FTFx_CommandFailure;&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProtRegBits&amp;nbsp;&lt;/STRONG&gt;need to be set to 32 but no any code in SDK is not exists to do it ? It has value 0 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be set here&amp;nbsp;FLASH_Init(...) but this is not visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rregards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2019 09:58:27 GMT</pubDate>
    <dc:creator>EugeneHiihtaja</dc:creator>
    <dc:date>2019-04-24T09:58:27Z</dc:date>
    <item>
      <title>K82 : FLASH_PflashSetProtection &amp; FLASH_PflashGetProtection</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-FLASH-PflashSetProtection-FLASH-PflashGetProtection/m-p/890216#M52610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it be so that those API is not work properly ?&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;if (config-&amp;gt;ftfxConfig[0].flashDesc.feature.hasProtControl)&lt;BR /&gt; {&lt;BR /&gt; if (&lt;STRONG&gt;config-&amp;gt;ftfxConfig[0].flashDesc.feature.ProtRegBits &amp;gt;= 32&lt;/STRONG&gt;)&lt;BR /&gt; {&lt;BR /&gt; *kFPROTL = protectStatus-&amp;gt;protl;&lt;BR /&gt; if (protectStatus-&amp;gt;protl != *kFPROTL)&lt;BR /&gt; {&lt;BR /&gt; return kStatus_FTFx_CommandFailure;&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProtRegBits&amp;nbsp;&lt;/STRONG&gt;need to be set to 32 but no any code in SDK is not exists to do it ? It has value 0 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be set here&amp;nbsp;FLASH_Init(...) but this is not visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rregards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 09:58:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-FLASH-PflashSetProtection-FLASH-PflashGetProtection/m-p/890216#M52610</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2019-04-24T09:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: K82 : FLASH_PflashSetProtection &amp; FLASH_PflashGetProtection</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-FLASH-PflashSetProtection-FLASH-PflashGetProtection/m-p/890217#M52611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, FLASH_PflashSetProtection API is used to set the protection bit, write the Program Flash Protection Registers&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_18.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80932i158DEF0958D33150/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_18.png" alt="pastedImage_18.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is 4Bytes, just 32bit.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProtRegBits &lt;/STRONG&gt;can be set by yourself in the code, you totally can define it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 10:36:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-FLASH-PflashSetProtection-FLASH-PflashGetProtection/m-p/890217#M52611</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-25T10:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: K82 : FLASH_PflashSetProtection &amp; FLASH_PflashGetProtection</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-FLASH-PflashSetProtection-FLASH-PflashGetProtection/m-p/890218#M52612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I have modified it by myself. But it is clear defect in SDK and have sense to improve it at some point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2019 06:25:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-FLASH-PflashSetProtection-FLASH-PflashGetProtection/m-p/890218#M52612</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2019-04-26T06:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: K82 : FLASH_PflashSetProtection &amp; FLASH_PflashGetProtection</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-FLASH-PflashSetProtection-FLASH-PflashGetProtection/m-p/890219#M52613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This variable normally need to be configured in the main code before you call the according API, so this point is not the SDK bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Any way, next time, when the SDK do the improvement, I will suggest it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2019 09:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-FLASH-PflashSetProtection-FLASH-PflashGetProtection/m-p/890219#M52613</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-26T09:06:56Z</dc:date>
    </item>
  </channel>
</rss>

