<?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のトピックHow to protect flash on MKL17Z256VLH4?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-protect-flash-on-MKL17Z256VLH4/m-p/794464#M48388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone tell me if this would be a proper implementation for protecting the program flash from JTAG reads?&amp;nbsp; The functions used here are taken straight from the Kinetis SDK v2.0 API Reference Manual (KSDK20APIRM).&amp;nbsp; It's got some good information on individual API functions, but not much on wider implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;flash_protection_state_t protectionState;&lt;BR /&gt; stat = FLASH_IsProtected(&amp;amp;Config, 0, 0x40000UL, &amp;amp;protectionState);&lt;BR /&gt; stat = (kStatus_FLASH_Success == stat) ? kStatus_Success : kStatus_Fail;&lt;/P&gt;&lt;P&gt;pstat.valueLow32b = (pflash_protection_status_low_t)UINT32_MAX;&lt;BR /&gt; if ((kStatus_FLASH_Success == stat) &amp;amp;&amp;amp; (kFLASH_ProtectionStateProtected != protectionState))&lt;BR /&gt; stat = FLASH_PflashSetProtection(&amp;amp;Config, &amp;amp;pstat);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2018 16:24:56 GMT</pubDate>
    <dc:creator>pcpro178</dc:creator>
    <dc:date>2018-07-30T16:24:56Z</dc:date>
    <item>
      <title>How to protect flash on MKL17Z256VLH4?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-protect-flash-on-MKL17Z256VLH4/m-p/794464#M48388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone tell me if this would be a proper implementation for protecting the program flash from JTAG reads?&amp;nbsp; The functions used here are taken straight from the Kinetis SDK v2.0 API Reference Manual (KSDK20APIRM).&amp;nbsp; It's got some good information on individual API functions, but not much on wider implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;flash_protection_state_t protectionState;&lt;BR /&gt; stat = FLASH_IsProtected(&amp;amp;Config, 0, 0x40000UL, &amp;amp;protectionState);&lt;BR /&gt; stat = (kStatus_FLASH_Success == stat) ? kStatus_Success : kStatus_Fail;&lt;/P&gt;&lt;P&gt;pstat.valueLow32b = (pflash_protection_status_low_t)UINT32_MAX;&lt;BR /&gt; if ((kStatus_FLASH_Success == stat) &amp;amp;&amp;amp; (kFLASH_ProtectionStateProtected != protectionState))&lt;BR /&gt; stat = FLASH_PflashSetProtection(&amp;amp;Config, &amp;amp;pstat);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 16:24:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-protect-flash-on-MKL17Z256VLH4/m-p/794464#M48388</guid>
      <dc:creator>pcpro178</dc:creator>
      <dc:date>2018-07-30T16:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to protect flash on MKL17Z256VLH4?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-protect-flash-on-MKL17Z256VLH4/m-p/794465#M48389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Actually, this is very simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; In your application project, you just need to modify the flash configuration field in the flash address 0x400.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please tell me what the IDE you are using, then I will give you an example for your reference.&lt;/P&gt;&lt;P&gt;&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: 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>Tue, 31 Jul 2018 10:14:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-protect-flash-on-MKL17Z256VLH4/m-p/794465#M48389</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-07-31T10:14:21Z</dc:date>
    </item>
  </channel>
</rss>

