<?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: locking in MKV46F256VLL16 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1248579#M59930</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I am referring to the following TRM and the section which you mentioned 33.4.3.6 doesn't exist in this. For this particular micro controller, how should I go on about the locking?&lt;/P&gt;&lt;P&gt;&lt;A title="mkv46f256vll16 manual" href="https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true" target="_self"&gt;https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. When I disable the SWD/JTAG, how will I be able to unlock it once the locking process it complete? Since the SWD/JTAG is already disabled.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Mar 2021 04:16:17 GMT</pubDate>
    <dc:creator>soaring_sun</dc:creator>
    <dc:date>2021-03-19T04:16:17Z</dc:date>
    <item>
      <title>locking in MKV46F256VLL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1247789#M59921</link>
      <description>&lt;P&gt;Hi, I want the following to be done once I have flashed the program into the micro-controller. I am using TWR-KV46F150M evaluation board. These are the requirements that I am looking for when I say lock and unlock.&lt;/P&gt;&lt;P&gt;1. When the lock is enabled, the micro should not be able to erase the old code and flash new one when tried.&lt;/P&gt;&lt;P&gt;2. When lock is enabled, the micro doesn't let another person to read the information that is flashed before it was locked.&lt;/P&gt;&lt;P&gt;3. After the unlock is done, micro is as good as new and would allow the read/erase the previous flashed code.&lt;/P&gt;&lt;P&gt;do I have to change the clock settings for this? How will I be able to achieve it? Regards&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 04:30:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1247789#M59921</guid>
      <dc:creator>soaring_sun</dc:creator>
      <dc:date>2021-03-18T04:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: locking in MKV46F256VLL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1248550#M59929</link>
      <description>&lt;P&gt;Hi soaring_sun,&lt;/P&gt;
&lt;P&gt;About your requirement,&lt;/P&gt;
&lt;P&gt;1. Yes, please use FRFA_FPROT register (Program Flash Protection Registers), the detail is in section 33.4.3.6 in RM.&lt;/P&gt;
&lt;P&gt;2. If you mean you want to disable SWD/JTAG port, Please use FSEC[SEC] bits. During the reset sequence, the register is loaded with the contents of the flash security byte in the Flash Configuration Field(0x40C) located in program flash memory.&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp;FSEC[KEYEN] controls backdoor. By input correct backdoor key, flash can be unlocked.&lt;/P&gt;
&lt;P&gt;You needn't change clock settings for these functions.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 03:14:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1248550#M59929</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-03-19T03:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: locking in MKV46F256VLL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1248579#M59930</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I am referring to the following TRM and the section which you mentioned 33.4.3.6 doesn't exist in this. For this particular micro controller, how should I go on about the locking?&lt;/P&gt;&lt;P&gt;&lt;A title="mkv46f256vll16 manual" href="https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true" target="_self"&gt;https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. When I disable the SWD/JTAG, how will I be able to unlock it once the locking process it complete? Since the SWD/JTAG is already disabled.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 04:16:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1248579#M59930</guid>
      <dc:creator>soaring_sun</dc:creator>
      <dc:date>2021-03-19T04:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: locking in MKV46F256VLL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1248623#M59931</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;1. Sorry my version is a bit old. please refer to 32.4.3.6.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jingpan_0-1616131873296.png" style="width: 475px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140135i94C0A69CD5CFAA9B/image-dimensions/475x267?v=v2" width="475" height="267" role="button" title="jingpan_0-1616131873296.png" alt="jingpan_0-1616131873296.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. you can send a message to application, let application send Verify Backdoor access Key Command.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jingpan_1-1616132530756.png" style="width: 473px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140136iA5EE96AD53537FE4/image-dimensions/473x319?v=v2" width="473" height="319" role="button" title="jingpan_1-1616132530756.png" alt="jingpan_1-1616132530756.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 05:42:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1248623#M59931</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-03-19T05:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: locking in MKV46F256VLL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1248795#M59932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went through the documents and I have a fair idea of how it works. Do you have an example code for the same MKV46F256VLL16 board in which I will be able to lock and unlock effectively?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 09:40:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1248795#M59932</guid>
      <dc:creator>soaring_sun</dc:creator>
      <dc:date>2021-03-19T09:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: locking in MKV46F256VLL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1249389#M59945</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It's very easy to lock and unlock. This control register's initial value is stored in flash address 0x400. When you want to change them, just modify the startup_kv46f16.s. It is at line 48&lt;/P&gt;
&lt;P&gt;__attribute__ ((used,section(".FlashConfig"))) const struct {&lt;BR /&gt;unsigned int word1;&lt;BR /&gt;unsigned int word2;&lt;BR /&gt;unsigned int word3;&lt;BR /&gt;unsigned int word4;&lt;BR /&gt;} Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFE};&lt;/P&gt;
&lt;P&gt;After you modify it, build the project and download, the setting will take effect immediately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 06:49:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1249389#M59945</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-03-22T06:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: locking in MKV46F256VLL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1250055#M59964</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, in the &lt;SPAN&gt;startup_kv46f16.s at line 48,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFE will be the password that corresponds to the four sections? So, when I have to lock them, I could change the above four to my password and lock them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For unlocking, the same password should be written on the same four flash config and with programming that, it would unlock.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is my understanding right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks and regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 04:15:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1250055#M59964</guid>
      <dc:creator>soaring_sun</dc:creator>
      <dc:date>2021-03-23T04:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: locking in MKV46F256VLL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1251031#M59990</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Section 32.4.1 in reference manual has the detail.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jingpan_0-1616574081856.png" style="width: 581px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140515i2F5629846895DD1A/image-dimensions/581x363?v=v2" width="581" height="363" role="button" title="jingpan_0-1616574081856.png" alt="jingpan_0-1616574081856.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To unlock,&amp;nbsp;Verify Backdoor Access Key command should be send. Section&amp;nbsp;32.5.10.10 has the detail. If the chip is locked, only firmware can do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 08:26:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1251031#M59990</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-03-24T08:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: locking in MKV46F256VLL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1251071#M59991</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 09:06:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/locking-in-MKV46F256VLL16/m-p/1251071#M59991</guid>
      <dc:creator>soaring_sun</dc:creator>
      <dc:date>2021-03-24T09:06:43Z</dc:date>
    </item>
  </channel>
</rss>

