<?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: Kl03 Flash issue in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679857#M41840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tiger Lo,&lt;/P&gt;&lt;P&gt;1. As your opinion security FSEC =0xFF it is irrelevant with flash sector erase/write/read which used internal flash code , right ?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes, it just relevant with the Debug interface.&lt;/P&gt;&lt;P&gt;2. &amp;nbsp; As I use the KL03 development system to develop some flash code,&amp;nbsp; I can't set FSEC equal to 0xFF, otherwise it won't let me download code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Actually, after you secure it, when you want to download it, you need to do the mass erase at first, you can use the JLINK command, and input: unlock kinetis&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you are using P&amp;amp;E debugger ,and KDS, in the debug configuration, you can select the mass erase, then you will can download it.&lt;/P&gt;&lt;P&gt;3. Backdoor&lt;/P&gt;&lt;P&gt;&amp;nbsp; It is used for the customer which want to secure the chip, but still leave a backdoor to themselves, then use the key to unlock it.&lt;/P&gt;&lt;P&gt;&amp;nbsp; More detail, I think you can read the reference manual, flash chapter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&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, 25 Jul 2017 09:28:59 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-07-25T09:28:59Z</dc:date>
    <item>
      <title>Kl03 Flash issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679854#M41837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want use 16 byte flash as data that I can write some run time data as parameter even when system power off.&lt;/P&gt;&lt;P&gt;but there are some question I want ask.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1. If system already set FSEC to 0xFF (Protection, as I check the manual, it seems ca only erase all &amp;amp; can't erase&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; block ), there is any other method can archive let 16 byte flash as data that I can write some run time data as&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; parameter even when system power off.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2. Can I set the security bit to disable then do the 16 byte operation when it complete then set the security bit enable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; or&amp;nbsp; can I use the program once file as data to store ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tiger Lo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jul 2017 03:18:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679854#M41837</guid>
      <dc:creator>tigerlo</dc:creator>
      <dc:date>2017-07-23T03:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Kl03 Flash issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679855#M41838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tiger Lo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1. If system already set FSEC to 0xFF (Protection, as I check the manual, it seems ca only erase all &amp;amp; can't erase&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; block ), there is any other method can archive let 16 byte flash as data that I can write some run time data as&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; parameter even when system power off.&lt;/P&gt;&lt;P&gt;Answer: FSEC is used for security, not the flash protect. You can find more details from the KL03 reference manual:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26459i95B098D45B64AE6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can find, flash security is used for the programmer interfaces, if you use the internal code to operate the flash, it won't be influenced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can use your code erase and write the flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2. Can I set the security bit to disable then do the 16 byte operation when it complete then set the security bit enable ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;Answer,&amp;nbsp; security has no relationship with your 16 byte operation, you can use one flash sector as your own data store area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.can I use the program once file as data to store ?&lt;/P&gt;&lt;P&gt;Answer: No, program once area is just can program one times, then you can't modify it. So I suggest you still use one flash sector as your own data area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&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>Mon, 24 Jul 2017 03:01:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679855#M41838</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-07-24T03:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Kl03 Flash issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679856#M41839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; As your opinion security FSEC =0xFF it is irrelevant with flash sector erase/write/read which used internal flash code , right ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; As I use the KL03 development system to develop some flash code,&amp;nbsp; I can't set FSEC equal to 0xFF, otherwise it won't let me download code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; so I can't test this condition, thanks for your opinion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; the other issue is I check the code , there is backdoor enable/disable , what's condition need use backdoor enable/disable function ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Check security status.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = FlashGetSecurityState(&amp;amp;flashSSDConfig, &amp;amp;securityStatus);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (FTFx_OK != result)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error_trap();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Print security status.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch(securityStatus)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case FLASH_NOT_SECURE:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINTF("\r\n Flash is UNSECURE!");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case FLASH_SECURE_BACKDOOR_ENABLED:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINTF("\r\n Flash is SECURE, BACKDOOR is ENABLED!");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case FLASH_SECURE_BACKDOOR_DISABLED:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINTF("\r\n Flash is SECURE, BACKDOOR is DISABLED!");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tiger Lo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 09:14:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679856#M41839</guid>
      <dc:creator>tigerlo</dc:creator>
      <dc:date>2017-07-25T09:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Kl03 Flash issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679857#M41840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tiger Lo,&lt;/P&gt;&lt;P&gt;1. As your opinion security FSEC =0xFF it is irrelevant with flash sector erase/write/read which used internal flash code , right ?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes, it just relevant with the Debug interface.&lt;/P&gt;&lt;P&gt;2. &amp;nbsp; As I use the KL03 development system to develop some flash code,&amp;nbsp; I can't set FSEC equal to 0xFF, otherwise it won't let me download code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Actually, after you secure it, when you want to download it, you need to do the mass erase at first, you can use the JLINK command, and input: unlock kinetis&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you are using P&amp;amp;E debugger ,and KDS, in the debug configuration, you can select the mass erase, then you will can download it.&lt;/P&gt;&lt;P&gt;3. Backdoor&lt;/P&gt;&lt;P&gt;&amp;nbsp; It is used for the customer which want to secure the chip, but still leave a backdoor to themselves, then use the key to unlock it.&lt;/P&gt;&lt;P&gt;&amp;nbsp; More detail, I think you can read the reference manual, flash chapter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&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, 25 Jul 2017 09:28:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679857#M41840</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-07-25T09:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Kl03 Flash issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679858#M41841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks for your help, I try some function.&lt;/P&gt;&lt;P&gt;Tiger Lo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 10:00:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679858#M41841</guid>
      <dc:creator>tigerlo</dc:creator>
      <dc:date>2017-07-25T10:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Kl03 Flash issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679859#M41842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I use P&amp;amp;E debugger ,and Keil , in &amp;nbsp; configure debug tool , there seems no mass erase, or Do I miss in somewhere ?&lt;/P&gt;&lt;P&gt;Tiger Lo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 10:09:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679859#M41842</guid>
      <dc:creator>tigerlo</dc:creator>
      <dc:date>2017-07-25T10:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Kl03 Flash issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679860#M41843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tiger Lo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Yes, in MDK, P&amp;amp;E debugger interface, I also didn't find the mass erase option, the MDK may didn't add this function for P&amp;amp;E tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Maybe you can use the JLINK debugger or KDS with P&amp;amp;E debugger tool to do the mass erase.&lt;/P&gt;&lt;P&gt;Wish it helps you&lt;/P&gt;&lt;P&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>Mon, 31 Jul 2017 01:48:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kl03-Flash-issue/m-p/679860#M41843</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-07-31T01:48:36Z</dc:date>
    </item>
  </channel>
</rss>

