<?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>S12 / MagniV MicrocontrollersのトピックRe: How to differentiate the MCU is secure or not?</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679849#M14233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Stan,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Aaron&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2017 17:12:59 GMT</pubDate>
    <dc:creator>aaronlee</dc:creator>
    <dc:date>2017-07-26T17:12:59Z</dc:date>
    <item>
      <title>How to differentiate the MCU is secure or not?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679843#M14227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Q1. How to differentiate the MCU is secure or not? Have the simple way to do?&lt;/P&gt;&lt;P&gt;Q2. Is it secure or not when i flash MCU done?&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/26596iF54BE5C82E5D256B/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2017 03:21:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679843#M14227</guid>
      <dc:creator>aaronlee</dc:creator>
      <dc:date>2017-07-22T03:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to differentiate the MCU is secure or not?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679844#M14228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I hope I understand you well.&lt;/P&gt;&lt;P&gt;When the device is secured then you are not able to neither load the code into it&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/26978i508D3B47665E80F2/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;nor connect to it and the CW reports it before download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the mcu is secured then you can see after download:&lt;/P&gt;&lt;P&gt;&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/27024iDBF1BE94C09C1E77/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;&lt;/P&gt;&lt;P&gt;The only BDM command which is accessible is mass errase which is able to clear entire memory and set the security bits to the unsecure status. Unsecuring can be performed by CW or external program.&lt;/P&gt;&lt;P&gt;So easily, if you are able to connect to it by BDM before loading the code or hot plugin then it is not secured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to secure the device and then to connect to it? You will see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to secure the device then just add following on the top of your code as a global variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;const unsigned char flash_array[] @ 0xFFFE08 =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // secure the device without backdoor key&lt;BR /&gt;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFF,&amp;nbsp;&amp;nbsp; //0xFFF08 &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFF,&amp;nbsp;&amp;nbsp; //0xFFF09 &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFF,&amp;nbsp;&amp;nbsp; //0xFFF0A&amp;nbsp; RESERVED&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFF,&amp;nbsp;&amp;nbsp; //0xFFF0B&amp;nbsp; RESERVED&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFF,&amp;nbsp;&amp;nbsp; //0xFFF0C&amp;nbsp; FPROT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFF,&amp;nbsp;&amp;nbsp; //0xFFF0D&amp;nbsp; DFPROT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFF,&amp;nbsp;&amp;nbsp; //0xFFF0E&amp;nbsp; FOPT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFC,&amp;nbsp;&amp;nbsp; //0xFFF0F&amp;nbsp; FSEC - SECURED without backdoor key&lt;BR /&gt;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 10:29:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679844#M14228</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2017-07-24T10:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to differentiate the MCU is secure or not?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679845#M14229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to avoid flash programming in case the device is not secured I'd recommend you to rather to attach to a running device instead of Download:&lt;/P&gt;&lt;P&gt;&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/26731i3D69BC691FBD8E1E/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;&lt;/P&gt;&lt;P&gt;If the device is secured you will see invalid content like this:&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/26749iF7E0908F8E1E1E21/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;&lt;/P&gt;&lt;P&gt;If it's unsecured you should see a valid memory dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it &amp;nbsp;helps.&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 14:21:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679845#M14229</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2017-07-24T14:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to differentiate the MCU is secure or not?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679846#M14230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ladislav,&lt;/P&gt;&lt;P&gt;I am a new NXP user. I only know how to Build, Debug &amp;amp; Flash in Commander.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27447i142052668FFB915F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I want to learn how to secure and unsecured. &amp;nbsp;Your reply very detail. Thank you very much. Now, I understand how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another question. How to read unsecured MCU (Ex. S12ZVCA) and save it to PC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 04:48:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679846#M14230</guid>
      <dc:creator>aaronlee</dc:creator>
      <dc:date>2017-07-25T04:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to differentiate the MCU is secure or not?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679847#M14231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's assume there is running code in the MCU.&lt;/P&gt;&lt;P&gt;The easiest way is to create a new bareboard project&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28840i17B47CDE98BFA2E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and do not change anything but:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Open a debug configuration&lt;/P&gt;&lt;P&gt;&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/28716i5AF47A7E3780B747/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;2) Select attach&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/28674iBAC798A1FAB24337/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;3) You can look into a memory window and press export&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/28758iA71E822D0373DDFE/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;4) Select entire memory and the name of the file&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/28794i4B102486B96DC83E/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;Thats all.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 11:19:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679847#M14231</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2017-07-26T11:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to differentiate the MCU is secure or not?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679848#M14232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi Ladislav,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Aaron&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 17:10:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679848#M14232</guid>
      <dc:creator>aaronlee</dc:creator>
      <dc:date>2017-07-26T17:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to differentiate the MCU is secure or not?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679849#M14233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Stan,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Aaron&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 17:12:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-differentiate-the-MCU-is-secure-or-not/m-p/679849#M14233</guid>
      <dc:creator>aaronlee</dc:creator>
      <dc:date>2017-07-26T17:12:59Z</dc:date>
    </item>
  </channel>
</rss>

