<?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 MKE02Z64VLD2 - Flash Security Byte  Address in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z64VLD2-Flash-Security-Byte-Address/m-p/1193431#M59019</link>
    <description>&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;I have a doubt about the Address of FSEC byte mentioned in the reference manual for MKE02Z64VLD2.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fsecMan.PNG" style="width: 703px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131736i7BFCDAD714AE2B75/image-dimensions/703x225?v=v2" width="703" height="225" role="button" title="fsecMan.PNG" alt="fsecMan.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;According to the manual snippet above, the following&amp;nbsp; flash configuration should secure the&amp;nbsp; MCU;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FlashConfig.PNG" style="width: 733px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131737i8CB844F4D8ABE21A/image-dimensions/733x179?v=v2" width="733" height="179" role="button" title="FlashConfig.PNG" alt="FlashConfig.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; But that is not true, the above code gives me the following FTMRH register read out;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ftrmhRegisters.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131739i4E6277AB095A18CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ftrmhRegisters.PNG" alt="ftrmhRegisters.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My FSEC value of 0x7D shows up in the FPROT register instead!&lt;/P&gt;&lt;P&gt;I know that while I am in debug mode the MCU is unsecured, hence I will only see FSEC as 0xFE, but the 0x7D should not go to the FPROT address.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, If I use the following Flash Config, then it appears to secure the MCU correctly;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="secFlashConfig.PNG" style="width: 732px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131742i83B59F0868DEBE13/image-dimensions/732x182?v=v2" width="732" height="182" role="button" title="secFlashConfig.PNG" alt="secFlashConfig.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="secFtrmhRegisters.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131744iD9FB603D39706529/image-size/medium?v=v2&amp;amp;px=400" role="button" title="secFtrmhRegisters.PNG" alt="secFtrmhRegisters.PNG" /&gt;&lt;/span&gt;This only means one thing that the address description in the manual is &lt;STRIKE&gt;incorrect&amp;nbsp;&lt;/STRIKE&gt; correct but my interpretation is incorrect.&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;Seems like it is the&amp;nbsp; classic Little Endian messing with me!!&lt;/LI-SPOILER&gt;&lt;P&gt;Please advice&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Satbir&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 20:39:48 GMT</pubDate>
    <dc:creator>satbir7</dc:creator>
    <dc:date>2020-12-03T20:39:48Z</dc:date>
    <item>
      <title>MKE02Z64VLD2 - Flash Security Byte  Address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z64VLD2-Flash-Security-Byte-Address/m-p/1193431#M59019</link>
      <description>&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;I have a doubt about the Address of FSEC byte mentioned in the reference manual for MKE02Z64VLD2.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fsecMan.PNG" style="width: 703px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131736i7BFCDAD714AE2B75/image-dimensions/703x225?v=v2" width="703" height="225" role="button" title="fsecMan.PNG" alt="fsecMan.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;According to the manual snippet above, the following&amp;nbsp; flash configuration should secure the&amp;nbsp; MCU;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FlashConfig.PNG" style="width: 733px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131737i8CB844F4D8ABE21A/image-dimensions/733x179?v=v2" width="733" height="179" role="button" title="FlashConfig.PNG" alt="FlashConfig.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; But that is not true, the above code gives me the following FTMRH register read out;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ftrmhRegisters.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131739i4E6277AB095A18CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ftrmhRegisters.PNG" alt="ftrmhRegisters.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My FSEC value of 0x7D shows up in the FPROT register instead!&lt;/P&gt;&lt;P&gt;I know that while I am in debug mode the MCU is unsecured, hence I will only see FSEC as 0xFE, but the 0x7D should not go to the FPROT address.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, If I use the following Flash Config, then it appears to secure the MCU correctly;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="secFlashConfig.PNG" style="width: 732px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131742i83B59F0868DEBE13/image-dimensions/732x182?v=v2" width="732" height="182" role="button" title="secFlashConfig.PNG" alt="secFlashConfig.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="secFtrmhRegisters.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131744iD9FB603D39706529/image-size/medium?v=v2&amp;amp;px=400" role="button" title="secFtrmhRegisters.PNG" alt="secFtrmhRegisters.PNG" /&gt;&lt;/span&gt;This only means one thing that the address description in the manual is &lt;STRIKE&gt;incorrect&amp;nbsp;&lt;/STRIKE&gt; correct but my interpretation is incorrect.&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;Seems like it is the&amp;nbsp; classic Little Endian messing with me!!&lt;/LI-SPOILER&gt;&lt;P&gt;Please advice&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Satbir&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 20:39:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z64VLD2-Flash-Security-Byte-Address/m-p/1193431#M59019</guid>
      <dc:creator>satbir7</dc:creator>
      <dc:date>2020-12-03T20:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02Z64VLD2 - Flash Security Byte  Address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z64VLD2-Flash-Security-Byte-Address/m-p/1194029#M59029</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please check the binary file that you are loading to verify that the bytes are at the correct locations in it.&lt;/P&gt;&lt;P&gt;Beware that some debuggers don't allow programming of the values in the image without first unlocking this function (for safety reasons so that people don't inadvertently lock chips).&lt;/P&gt;&lt;P&gt;If you secure the device I expect that after a further reset it would no longer be possible to connect with the debugger to view the registers.&lt;/P&gt;&lt;P&gt;I would recommend testing patterns that don't secure the flash (also in the unused 0x408..0x40b area) and reading them back directly from the flash so that you are sure they are programmed as expected before interpreting the values seen in the FTMRH registers.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 18:03:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z64VLD2-Flash-Security-Byte-Address/m-p/1194029#M59029</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2020-12-04T18:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02Z64VLD2 - Flash Security Byte  Address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z64VLD2-Flash-Security-Byte-Address/m-p/1200742#M59130</link>
      <description>&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;It was&amp;nbsp;&lt;SPAN&gt;the Little Endian messing with me!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I also verified the .bin&amp;nbsp; file and&amp;nbsp; observed the correct placement of the&amp;nbsp; Security Byte.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Satbir&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 22:56:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02Z64VLD2-Flash-Security-Byte-Address/m-p/1200742#M59130</guid>
      <dc:creator>satbir7</dc:creator>
      <dc:date>2020-12-16T22:56:33Z</dc:date>
    </item>
  </channel>
</rss>

