<?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 Unable to program flash configuration field TRK-KEA128 board in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-program-flash-configuration-field-TRK-KEA128-board/m-p/714267#M43862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am newbie to NXP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying check how to use back-door key command, but I am unable to program FSEC register via flash configuration field. Following are the steps I am following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Flash_Erase_Sector(Sector2); // Erasing sector from address 0x400&lt;/P&gt;&lt;P&gt;2) uint8_t u8keys[8] = {0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA};&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8_t flash_array[8] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xBF,0xFF};&lt;/P&gt;&lt;P&gt;3) Flash_Program(0x400, &amp;amp;u8keys[0], 8); &amp;nbsp;&amp;nbsp; //Programming back-door keys&lt;/P&gt;&lt;P&gt;4) Flash_Program(0x408, &amp;amp;flash_array[0], 8); //Programming rest of flash config field, back-door key access enabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reset, FPROT register value: 0xFF, FSEC register value: 0xFE.&lt;/P&gt;&lt;P&gt;Why the FSEC register value is not changing?, how to program flash configuration field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2017 03:57:08 GMT</pubDate>
    <dc:creator>rajankali</dc:creator>
    <dc:date>2017-09-04T03:57:08Z</dc:date>
    <item>
      <title>Unable to program flash configuration field TRK-KEA128 board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-program-flash-configuration-field-TRK-KEA128-board/m-p/714267#M43862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am newbie to NXP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying check how to use back-door key command, but I am unable to program FSEC register via flash configuration field. Following are the steps I am following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Flash_Erase_Sector(Sector2); // Erasing sector from address 0x400&lt;/P&gt;&lt;P&gt;2) uint8_t u8keys[8] = {0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA};&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8_t flash_array[8] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xBF,0xFF};&lt;/P&gt;&lt;P&gt;3) Flash_Program(0x400, &amp;amp;u8keys[0], 8); &amp;nbsp;&amp;nbsp; //Programming back-door keys&lt;/P&gt;&lt;P&gt;4) Flash_Program(0x408, &amp;amp;flash_array[0], 8); //Programming rest of flash config field, back-door key access enabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reset, FPROT register value: 0xFF, FSEC register value: 0xFE.&lt;/P&gt;&lt;P&gt;Why the FSEC register value is not changing?, how to program flash configuration field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 03:57:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-program-flash-configuration-field-TRK-KEA128-board/m-p/714267#M43862</guid>
      <dc:creator>rajankali</dc:creator>
      <dc:date>2017-09-04T03:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program flash configuration field TRK-KEA128 board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-program-flash-configuration-field-TRK-KEA128-board/m-p/714268#M43863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi raj ankali,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to configure the backdoor and security region,&amp;nbsp; please do the modification in your project.&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/27603i01EAE02CDC020458/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;backdoor is in flash address 0x400-0x407.&lt;/P&gt;&lt;P&gt;Now take S32DS project as an example, you just need to modify the .s file, the according flash address is OK.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27692iCDCBA429A1FF3687/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But if you are using the IAR, you need to add "&lt;SPAN style="font-size: 10.5pt;"&gt;--enable_config_write &lt;/SPAN&gt;" in the options, flashloader configuration windows.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27737iC9D5E5FBFED46445/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27779i6AD42700C7C2BE77/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&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 please let me know!&lt;/P&gt;&lt;P&gt;&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, 05 Sep 2017 03:04:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-program-flash-configuration-field-TRK-KEA128-board/m-p/714268#M43863</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-09-05T03:04:41Z</dc:date>
    </item>
  </channel>
</rss>

