<?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>S32KのトピックRe: S32K118 Code Protection</title>
    <link>https://community.nxp.com/t5/S32K/S32K118-Code-Protection/m-p/1747358#M28192</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/208739"&gt;@melvinw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the content at the following link. There should be information related to this CSEc that you might find useful.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=AN5401" target="_blank" rel="noopener"&gt;AN5401&lt;/A&gt;: Getting Started with CSEc Security Module&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=AN5401SW&amp;amp;docLang=en" target="_blank" rel="noopener"&gt;AN5401SW&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12130.pdf" target="_blank" rel="noopener"&gt;AN12130&lt;/A&gt;: Production Flash Programming Best Practices for S32K1xx MCUs&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2023 20:49:10 GMT</pubDate>
    <dc:creator>VaneB</dc:creator>
    <dc:date>2023-10-26T20:49:10Z</dc:date>
    <item>
      <title>S32K118 Code Protection</title>
      <link>https://community.nxp.com/t5/S32K/S32K118-Code-Protection/m-p/1745241#M28119</link>
      <description>&lt;P&gt;Currently I'm working on a project with a S32K118 MCU, the S32DS SDK V3.4 IDE and a MULTILINK UNIVERSAL debug probe.&lt;/P&gt;&lt;P&gt;And It's not clear to me how i can enable a code protection feature to prevent reading of code from a custom programmed device.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example for Microchip devices it's possible to enable this feature in the MCC generator.&lt;/P&gt;&lt;P&gt;The questions i have about this topic are:&lt;/P&gt;&lt;P&gt;1. Is this feature even available and how do i implement this? (Or find the correct documentation about this topic?)&lt;/P&gt;&lt;P&gt;2. Is it possible to enable this feature in the MCUExpresso configurator somewhere?&lt;/P&gt;&lt;P&gt;3. Is it possible to flash a S32K118 MCU with the Multilink Universal debug prope with code protection (and how?) or do i need different hardware for this?&lt;/P&gt;&lt;P&gt;Thanks in advance for any support!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 12:15:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K118-Code-Protection/m-p/1745241#M28119</guid>
      <dc:creator>melvinw</dc:creator>
      <dc:date>2023-10-24T12:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: S32K118 Code Protection</title>
      <link>https://community.nxp.com/t5/S32K/S32K118-Code-Protection/m-p/1745388#M28123</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/208739"&gt;@melvinw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The S32K1 family can limit access to Flash right and disable access to the MCU through JTAG. This is by the&amp;nbsp;FSEC[SEC] bit configuration.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you limit the access right to Flash using&amp;nbsp;FSEC[SEC], the r&lt;SPAN&gt;egisters that reside within the JTAG and debug logic can be accessed via the debug port, but no other registers or memory inside the processor.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To enable or disable the JTAG interface. You must manipulate the Flash section in the startup code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;/* Flash Configuration */
.section .FlashConfig, "a"
.long 0xFFFFFFFF     /* 8 bytes backdoor comparison key           */
.long 0xFFFFFFFF     /*                                           */
.long 0xFFFFFFFF     /* 4 bytes program flash protection bytes    */
.long 0xFFFF7FFE     /* FDPROT:FEPROT:FOPT:FSEC(0xFE = unsecured) */&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer to section 36.4.4.1.4 of the S32K1xx Series Reference Manual, Rev. 13.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Also, Check the following application notes.&amp;nbsp;&lt;SPAN&gt;There should be information related to this topic which you might find useful.&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12130.pdf?_gl=1*l1aesj*_ga*MjA5ODE1NzQ3OC4xNjk4MTY2MTUz*_ga_WM5LE0KMSH*MTY5ODE2ODM3Mi4yLjEuMTY5ODE3MDY1My4wLjAuMA.." target="_blank" rel="noopener"&gt;Production Flash Programming Best Practices for S32K1xx MCUs&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=AN5401" target="_blank" rel="noopener"&gt;Getting Started with the CSEc Security Module&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R.&lt;/P&gt;
&lt;P&gt;VaneB&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 18:07:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K118-Code-Protection/m-p/1745388#M28123</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-10-24T18:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: S32K118 Code Protection</title>
      <link>https://community.nxp.com/t5/S32K/S32K118-Code-Protection/m-p/1745792#M28142</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;Thank for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to protect te code by changing the FSEC bits to FF instead of FE. But i ran into another problem regarding this topic.&lt;/P&gt;&lt;P&gt;In our project we are using a SWD interface (with multilink universal debug probe) and aren't able to use JTAG. We also have a bootloader that needs to be able to overwrite previous code protected flash sections and overwrite it with new firmware.&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this moment we can only achieve a programmed module with code protection and the Multilink Universal in the way describe in a previous topic:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K144-Setting-FSEC-bits-to-Secure/m-p/1595694" target="_blank"&gt;https://community.nxp.com/t5/S32K/S32K144-Setting-FSEC-bits-to-Secure/m-p/1595694&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But this means programming the module 2 times. 1 time with the code and a second time with memory preservations to only set the FSEC bits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Isn't there another way to do this instantly with the S32DS Debug Configurations &amp;amp; Multilink Universal Debug probe? ( Or is other hardware required to do this?)&lt;/P&gt;&lt;P&gt;2. How is this done in a mass production setup? Is there other hardware required to flash bootloader + application + FSEC protection in a single go?&lt;/P&gt;&lt;P&gt;Still going to documentation at this time btw.&lt;/P&gt;&lt;P&gt;Thanks again in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 08:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K118-Code-Protection/m-p/1745792#M28142</guid>
      <dc:creator>melvinw</dc:creator>
      <dc:date>2023-10-25T08:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: S32K118 Code Protection</title>
      <link>https://community.nxp.com/t5/S32K/S32K118-Code-Protection/m-p/1745794#M28143</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;Thank for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to protect te code by changing the FSEC bits to FF instead of FE. But i ran into another problem regarding this topic.&lt;/P&gt;&lt;P&gt;In our project we are using a SWD interface (with multilink universal debug probe) and aren't able to use JTAG. We also have a bootloader that needs to be able to overwrite previous code protected flash sections and overwrite it with new firmware.&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this moment we can only achieve a programmed module with code protection and the Multilink Universal in the way describe in a previous topic:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K144-Setting-FSEC-bits-to-Secure/m-p/1595694" target="_blank"&gt;https://community.nxp.com/t5/S32K/S32K144-Setting-FSEC-bits-to-Secure/m-p/1595694&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But this means programming the module 2 times. 1 time with the code and a second time with memory preservations to only set the FSEC bits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Isn't there another way to do this instantly with the S32DS Debug Configurations &amp;amp; Multilink Universal Debug probe? ( Or is other hardware required to do this?)&lt;/P&gt;&lt;P&gt;2. How is this done in a mass production setup? Is there other hardware required to flash bootloader + application + FSEC protection in a single go?&lt;/P&gt;&lt;P&gt;Still going to documentation at this time btw.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 08:57:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K118-Code-Protection/m-p/1745794#M28143</guid>
      <dc:creator>melvinw</dc:creator>
      <dc:date>2023-10-25T08:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: S32K118 Code Protection</title>
      <link>https://community.nxp.com/t5/S32K/S32K118-Code-Protection/m-p/1747358#M28192</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/208739"&gt;@melvinw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the content at the following link. There should be information related to this CSEc that you might find useful.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=AN5401" target="_blank" rel="noopener"&gt;AN5401&lt;/A&gt;: Getting Started with CSEc Security Module&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=AN5401SW&amp;amp;docLang=en" target="_blank" rel="noopener"&gt;AN5401SW&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12130.pdf" target="_blank" rel="noopener"&gt;AN12130&lt;/A&gt;: Production Flash Programming Best Practices for S32K1xx MCUs&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 20:49:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K118-Code-Protection/m-p/1747358#M28192</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-10-26T20:49:10Z</dc:date>
    </item>
  </channel>
</rss>

