<?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: Code Readout protection on MKE04Z8 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1937350#M66697</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As you change the flash configure from .long 0xFFFEFFFF to .long 0xFFFDFFFF, it means that only the FTMRE_FSEC register has chnanged, especially, SEC bits change from 10 in binary(unsecure mode) to 01 in binary(secure mode). After reset, the chip is in secure mode, the SWD port is blocked, you can not read code/data from SWD port.&lt;/P&gt;
&lt;P&gt;But the secure or unsecure mode does &lt;FONT color="#FF0000"&gt;NOT&lt;/FONT&gt; take effect on the chip running.&lt;/P&gt;
&lt;P&gt;As a test, after you restore to unsecure mode after mass erasing and redownloading, can the KE04 run fine again?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1724233868901.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/294518iE92D94A12E500C18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1724233868901.png" alt="xiangjun_rong_0-1724233868901.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;BR /&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2024 10:00:01 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2024-08-21T10:00:01Z</dc:date>
    <item>
      <title>Code Readout protection on MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1932911#M66667</link>
      <description>&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an MKE04Z8 and use Keil to program it. The&amp;nbsp;MKE04Z4_DFP Package have Version 14.0.0.&lt;/P&gt;&lt;P&gt;How can I turn on the code readout protection in the device?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I tried:&lt;/P&gt;&lt;P&gt;When I try to set the read out protection the MCU does not start anymore. I tried the following:&lt;/P&gt;&lt;P&gt;In "startup_MKE04K4.S" I altered the flash config from&lt;/P&gt;&lt;P&gt;/* Flash Configuration */&lt;BR /&gt;.section .FlashConfig, "a"&lt;BR /&gt;.long 0xFFFFFFFF&lt;BR /&gt;.long 0xFFFFFFFF&lt;BR /&gt;.long 0xFFFFFFFF&lt;BR /&gt;.long 0xFFFEFFFF&lt;/P&gt;&lt;P&gt;.text&lt;BR /&gt;.thumb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Flash Configuration */&lt;BR /&gt;.section .FlashConfig, "a"&lt;BR /&gt;.long 0xFFFFFFFF&lt;BR /&gt;.long 0xFFFFFFFF&lt;BR /&gt;.long 0xFFFFFFFF&lt;BR /&gt;.long 0xFFFDFFFF&lt;/P&gt;&lt;P&gt;.text&lt;BR /&gt;.thumb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where's my mistake?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 11:00:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1932911#M66667</guid>
      <dc:creator>Chrigolat</dc:creator>
      <dc:date>2024-08-15T11:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Code Readout protection on MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1933580#M66678</link>
      <description>&lt;P&gt;hi,&lt;A id="link_6" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/238937" target="_self" aria-label="View Profile of Chrigolat"&gt;&lt;SPAN class=""&gt;Chrigolat&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sorry for replying to your email so late. I have received your question and will deal with it as soon as possible.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Xu Zhang&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 09:46:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1933580#M66678</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2024-08-16T09:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Code Readout protection on MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1935861#M66691</link>
      <description>&lt;P&gt;Dear XuZhang&lt;/P&gt;&lt;P&gt;Thank you for working on the question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As to my understanding, this is something every Product in the market needs to have. I tried different flags but I was not successful. Maybe you could ask the designer of the startup file.&lt;/P&gt;&lt;P&gt;Just to add.. It worked in previous versions of the library.&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 05:49:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1935861#M66691</guid>
      <dc:creator>Chrigolat</dc:creator>
      <dc:date>2024-08-20T05:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Code Readout protection on MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1937350#M66697</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As you change the flash configure from .long 0xFFFEFFFF to .long 0xFFFDFFFF, it means that only the FTMRE_FSEC register has chnanged, especially, SEC bits change from 10 in binary(unsecure mode) to 01 in binary(secure mode). After reset, the chip is in secure mode, the SWD port is blocked, you can not read code/data from SWD port.&lt;/P&gt;
&lt;P&gt;But the secure or unsecure mode does &lt;FONT color="#FF0000"&gt;NOT&lt;/FONT&gt; take effect on the chip running.&lt;/P&gt;
&lt;P&gt;As a test, after you restore to unsecure mode after mass erasing and redownloading, can the KE04 run fine again?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1724233868901.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/294518iE92D94A12E500C18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1724233868901.png" alt="xiangjun_rong_0-1724233868901.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;BR /&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 10:00:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1937350#M66697</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-08-21T10:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Code Readout protection on MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1937517#M66698</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;XiangJun Rong&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer. When I do this, the code does not start anymore.&lt;/P&gt;&lt;P&gt;Do you have a smple project, where it works?&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 14:23:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1937517#M66698</guid>
      <dc:creator>Chrigolat</dc:creator>
      <dc:date>2024-08-21T14:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Code Readout protection on MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1937876#M66699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Pls download SDK from the website for FRDM-KE04 board, there is a lot of examples.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1724292697467.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/294636i9D8AC36E78A48800/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1724292697467.png" alt="xiangjun_rong_0-1724292697467.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 02:13:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1937876#M66699</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-08-22T02:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Code Readout protection on MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1938486#M66700</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;XiangJun Rong&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I followed you advice, but I could not find an example using the Read-Out protection. Could you point me to the one you're talking about?&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 13:05:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1938486#M66700</guid>
      <dc:creator>Chrigolat</dc:creator>
      <dc:date>2024-08-22T13:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Code Readout protection on MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1939019#M66704</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Case 1:&lt;/P&gt;
&lt;P&gt;After you download the SDK package, pls try to load/run the example code without any change, the chip is in unsecurity mode.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1724394057724.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/294946i260560B1ECE4B20F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1724394057724.png" alt="xiangjun_rong_0-1724394057724.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;then run a uart terminal, and check if the terminal can echo the input character.&lt;/P&gt;
&lt;P&gt;Then you can power off and connect for example&amp;nbsp; J-Link device and tools, and check if you can read code or data with J-link via SWD port&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;case2:&lt;/P&gt;
&lt;P&gt;You can change the security to&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 2px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'Consolas'; font-size: 10pt; white-space: pre;"&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;__attribute__&lt;/SPAN&gt;&lt;SPAN&gt; ((used,section(&lt;/SPAN&gt;&lt;SPAN&gt;".FlashConfig"&lt;/SPAN&gt;&lt;SPAN&gt;))) &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;struct&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;unsigned&lt;/SPAN&gt; &lt;SPAN&gt;int&lt;/SPAN&gt; &lt;SPAN&gt;word1&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;unsigned&lt;/SPAN&gt; &lt;SPAN&gt;int&lt;/SPAN&gt; &lt;SPAN&gt;word2&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;unsigned&lt;/SPAN&gt; &lt;SPAN&gt;int&lt;/SPAN&gt; &lt;SPAN&gt;word3&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;unsigned&lt;/SPAN&gt; &lt;SPAN&gt;int&lt;/SPAN&gt; &lt;SPAN&gt;word4&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;} Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFF&lt;FONT color="#FF0000"&gt;FD&lt;/FONT&gt;FFFF};&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;then run a uart terminal, and check if the terminal can echo the input character.&lt;/P&gt;
&lt;P&gt;Then you can power off and connect for example&amp;nbsp; J-Link device and tools, and check if you can read code or data with J-link via SWD port. In the case, because the SWD is blocked, the J-Link device can not be read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xiangjun Rong&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 06:32:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1939019#M66704</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-08-23T06:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Code Readout protection on MKE04Z8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1965142#M66818</link>
      <description>&lt;P&gt;Ok, I found it...&lt;/P&gt;&lt;P&gt;I download the code with KEIL. When I activate the Reaout Protection, Keil cannot start the debug session. It's very peculiar, but Keil then erases the code without special notice. Having done so, the CPU does not have any code to start.&lt;/P&gt;&lt;P&gt;Probably there's some higher sense behind that behaviour. Since I usually work with Crosswoks, I did not expect that at all.&lt;/P&gt;&lt;P&gt;Hope that helps&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 11:31:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-Readout-protection-on-MKE04Z8/m-p/1965142#M66818</guid>
      <dc:creator>Chrigolat</dc:creator>
      <dc:date>2024-10-01T11:31:27Z</dc:date>
    </item>
  </channel>
</rss>

