<?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 S9KEAZ128 Code securing in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702236#M43153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="" data-fulltext="" data-placeholder="Traduzione" dir="ltr" style="text-align: left; height: 240px;"&gt;&lt;SPAN lang="en"&gt;Hi, I need to protect the code of a S9KEAZ128, I read both the user manual and various application
notes but did not find the solution.
To program it I use a PEmicro Multilink Universal and the PROGACMP program, I need a
step-by-step guide to do this.
&lt;/SPAN&gt;&lt;SPAN lang="en"&gt;
It's the first time I use this microprocessor to design.
&lt;/SPAN&gt;&lt;SPAN lang="en"&gt;Thanks to those who will help me.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2017 07:37:52 GMT</pubDate>
    <dc:creator>walfridodalmazz</dc:creator>
    <dc:date>2017-09-13T07:37:52Z</dc:date>
    <item>
      <title>S9KEAZ128 Code securing</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702236#M43153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="" data-fulltext="" data-placeholder="Traduzione" dir="ltr" style="text-align: left; height: 240px;"&gt;&lt;SPAN lang="en"&gt;Hi, I need to protect the code of a S9KEAZ128, I read both the user manual and various application
notes but did not find the solution.
To program it I use a PEmicro Multilink Universal and the PROGACMP program, I need a
step-by-step guide to do this.
&lt;/SPAN&gt;&lt;SPAN lang="en"&gt;
It's the first time I use this microprocessor to design.
&lt;/SPAN&gt;&lt;SPAN lang="en"&gt;Thanks to those who will help me.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 07:37:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702236#M43153</guid>
      <dc:creator>walfridodalmazz</dc:creator>
      <dc:date>2017-09-13T07:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: S9KEAZ128 Code securing</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702237#M43154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Walfrido Damazzo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you want to secure the SWD debug port, then the other people can't read your clock through the SWD interface, or you want to do the flash protection.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please note, flash protection is protect regions in the flash memory from accidental programing or erasing.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please confirm the question at first.&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>Thu, 14 Sep 2017 09:14:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702237#M43154</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-09-14T09:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: S9KEAZ128 Code securing</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702238#M43155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to know both about SWD secure and Flash protection. Please explain me how to do both?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 09:18:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702238#M43155</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2017-09-14T09:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: S9KEAZ128 Code securing</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702239#M43156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi VIGNESH BALAJI,&lt;/P&gt;&lt;P&gt;Please check this figure at first.&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/28871iBAA14F4DE6C4E8D4/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;1. MCU Secure&lt;/P&gt;&lt;P&gt;Flash address: 0X40E&lt;/P&gt;&lt;P&gt;The data meaning&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/28915i87B65B0F7735D888/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;So, if you just want to secure the board, you can set flash address 0X40E address data as: 0XFF&lt;/P&gt;&lt;P&gt;Code location:&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/28968iCD818C1850AB7E51/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;I don't know what the IDE and code you are using, please tell me, then I will tell you the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Flash protection&lt;/P&gt;&lt;P&gt;Flash address 0x40d, the data is determined by reference manual chapter 18.3.6 Protection,&lt;/P&gt;&lt;P&gt;Please read it carefully, you will know how to set the flash protection data.&lt;/P&gt;&lt;P&gt;About the code modification, the same as FSEC, should modify in vector.h or .s, it is determined by your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Thu, 14 Sep 2017 09:37:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702239#M43156</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-09-14T09:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: S9KEAZ128 Code securing</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702240#M43157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Thanks a lot Kerry for your answer, I use the&amp;nbsp; "S32 Design Studio" as IDE and I think that to modify the FSEC register I have to edit the file "SKEAZ1284.h" by changing the value of "#define FTMRE_FSEC_SEC_MASK" from 0x3u to 0x0u.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's right ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;"==============================================="&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;#define FTMRE_FSEC_SEC_MASK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x3u &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;#define FTMRE_FSEC_SEC_SHIFT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;#define FTMRE_FSEC_SEC_WIDTH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;#define FTMRE_FSEC_SEC(x)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((uint8_t)(((uint8_t)(x))&amp;lt;&amp;lt;FTMRE_FSEC_SEC_SHIFT))&amp;amp;FTMRE_FSEC_SEC_MASK) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;#define FTMRE_FSEC_KEYEN_MASK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xC0u &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;#define FTMRE_FSEC_KEYEN_SHIFT&amp;nbsp;&amp;nbsp;&amp;nbsp; 6 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;#define FTMRE_FSEC_KEYEN_WIDTH&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;#define FTMRE_FSEC_KEYEN(x)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (((uint8_t)(((uint8_t)(x))&amp;lt;&amp;lt;FTMRE_FSEC_KEYEN_SHIFT))&amp;amp;FTMRE_FSEC_KEYEN_MASK)&lt;/SPAN&gt;&lt;BR /&gt;"==============================================="&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Thank you again.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 07:49:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702240#M43157</guid>
      <dc:creator>walfridodalmazz</dc:creator>
      <dc:date>2017-09-15T07:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: S9KEAZ128 Code securing</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702241#M43158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Walfrido Dalmazzo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; No, totally wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you are using S32DS, in my memory, you can modify the .s file, please check your project, find out the .s file, then modify the FSEC or the according flash address 0X40E.&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, 18 Sep 2017 06:40:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702241#M43158</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-09-18T06:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: S9KEAZ128 Code securing</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702242#M43159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;BR /&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;I modified the startup_SKEAZ1284.s file as you suggested, changing the value from 0xFE to 0xFC of the FEC register its&amp;nbsp; no longer possible to debug the program but only delete the entire flash memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Many thanks again, you've been really helpful to me.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Walfrido.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 08:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702242#M43159</guid>
      <dc:creator>walfridodalmazz</dc:creator>
      <dc:date>2017-09-18T08:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: S9KEAZ128 Code securing</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702243#M43160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Walfrido,&lt;/P&gt;&lt;P&gt;&amp;nbsp;You are welcome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's good to hear you can realize the secure function.&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, 18 Sep 2017 08:49:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/S9KEAZ128-Code-securing/m-p/702243#M43160</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-09-18T08:49:08Z</dc:date>
    </item>
  </channel>
</rss>

