<?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>Kinetis Design StudioのトピックRe: 'Device is secure' when trying to flash a custom KV31 PCB</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Device-is-secure-when-trying-to-flash-a-custom-KV31-PCB/m-p/660299#M8699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" class="" data-userid="288325" data-username="spencerpallas" href="https://community.nxp.com/people/spencerpallas" style="color: #5e89c1; background-color: #ffffff; border: 0px; font-weight: 600; font-size: 11.9994px;"&gt;Spencer Pallas&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have faced same issue while bring up our custom devices with three freescale controllers. in our case we have sorted reset pin of all 3 controllers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1] if more than one freescale controller in your custom device and reset pins of &amp;nbsp;controllers are sorted then isolate reset pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2] make sure that reset pin of controller is properly connected to the SWD pin connector. especially pin Num 10 must be connected with RESET pin of controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have followed 2 steps and fixed issue permanently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if any&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Harsh&amp;nbsp;&lt;/P&gt;&lt;P&gt;Einfochips, INDIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2016 11:19:12 GMT</pubDate>
    <dc:creator>harshpatel</dc:creator>
    <dc:date>2016-11-24T11:19:12Z</dc:date>
    <item>
      <title>'Device is secure' when trying to flash a custom KV31 PCB</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Device-is-secure-when-trying-to-flash-a-custom-KV31-PCB/m-p/660296#M8696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to test a custom hardware module with a KV31 MCU. When I try and flash custom firmware using a PEMicro Multilink (mini 10-pin SWD), the project builds fine but I get a message stating 'Device is secure. Erase to unsecure?'. &lt;SPAN style="font-size: 11.0pt;"&gt;I have been clicking ‘No’ because the KV31 has the KMS library stored which we need for the motor control. This brings up a KDS error window stating ‘Error in services launch sequence.’ The console has this message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Connection from "127.0.0.1" via 127.0.0.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Copyright 2012 P&amp;amp;E Microcomputer Systems,Inc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Command Line :C:\Freescale\KDS_3.0.0\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_2.3.7.201602251755\win32\pegdbserver_console -device=NXP_KVx_KV31F512M12 -startserver -singlesession -serverport=7224 -interface=USBMULTILINK -speed=5000 -port=USB1 -confiø&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;CMD&amp;gt;RE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Initializing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Target has been RESET and is active.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;CMD&amp;gt;CM C:\Freescale\KDS_3.0.0\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_2.3.7.201602251755\win32\gdi\P&amp;amp;E\supportFiles_ARM\NXP\KVx\freescale_kv31f512m12_1x32x128k_pflash.arp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Initializing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Initialized.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;;version 1.02, 09/10/2015, Copyright 2015 P&amp;amp;E Microcomputer Systems, Inc. All rights reserved. &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.pemicro.com" rel="nofollow" target="_blank"&gt;www.pemicro.com&lt;/A&gt; [kv_31f512_n_pflash]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;;device freescale, kv31f512m12, 1x32x128k, desc=pflash&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;;begin_cs device=$00000000, length=$00080000, ram=$20000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Loading programming algorithm ... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Done.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;CMD&amp;gt;EM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Erasing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Module could not be erased. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Error Erasing flash of device&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Error occured during Flash programming.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Device is Secure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;PE-ERROR: Error downloading to the device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;PE-ERROR: CAN'T READ REGISTERS. TARGET IS RUNNING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Error setting BP @40c8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Warning - Not all breakpoints could be written.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #5b9bd5;"&gt;Interrupt command received. Halting execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Any idea what may be happening? I tried the same debug configuration on a TWR-KV31 boards and it ran with no errors. I am using the KDS 3.0 and have attached an image of the error as well as the configuration I am using.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 22:02:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Device-is-secure-when-trying-to-flash-a-custom-KV31-PCB/m-p/660296#M8696</guid>
      <dc:creator>spencerpallas</dc:creator>
      <dc:date>2016-11-15T22:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: 'Device is secure' when trying to flash a custom KV31 PCB</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Device-is-secure-when-trying-to-flash-a-custom-KV31-PCB/m-p/660297#M8697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I updated the GNU ARM PEMicro Interface Debugging Support to the latest version (2.7) but I am still seeing the 'Device is secured' message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 18:54:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Device-is-secure-when-trying-to-flash-a-custom-KV31-PCB/m-p/660297#M8697</guid>
      <dc:creator>spencerpallas</dc:creator>
      <dc:date>2016-11-17T18:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: 'Device is secure' when trying to flash a custom KV31 PCB</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Device-is-secure-when-trying-to-flash-a-custom-KV31-PCB/m-p/660298#M8698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Spencer,&lt;/P&gt;&lt;P&gt;- The reason for&amp;nbsp; " device is secure " is in the code have download into flash set&lt;/P&gt;&lt;P&gt;the register of FTFA_FSEC -&amp;gt;SEC =00 , 01 or 11 :&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/8914iBF44965B5AD5C29F/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;When the flash is secured programmer interfaces are only&amp;nbsp; allowed to launch mass erase operations and have no access to memory locations .&lt;/P&gt;&lt;P&gt;So you can&amp;nbsp;&amp;nbsp; set the FTFA_FSEC-SEC to 10 , then you still can use the debugger to accesses it .&lt;/P&gt;&lt;P&gt;- About the detail Flash Security , please check the Reference Manual for KV31: &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/8958i349CE2428CAE8C9F/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;- The FSEC register is read-only register , during the reset sequence, the register is loaded with the contents of the flash security byte in the Flash Configuration Field located in program flash memory.&amp;nbsp; So please configure the Flash configuration field byte Address 0x0_040C .&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/8996iE7E6F61F667EBFCE/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;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&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, 21 Nov 2016 03:18:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Device-is-secure-when-trying-to-flash-a-custom-KV31-PCB/m-p/660298#M8698</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-11-21T03:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: 'Device is secure' when trying to flash a custom KV31 PCB</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Device-is-secure-when-trying-to-flash-a-custom-KV31-PCB/m-p/660299#M8699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" class="" data-userid="288325" data-username="spencerpallas" href="https://community.nxp.com/people/spencerpallas" style="color: #5e89c1; background-color: #ffffff; border: 0px; font-weight: 600; font-size: 11.9994px;"&gt;Spencer Pallas&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have faced same issue while bring up our custom devices with three freescale controllers. in our case we have sorted reset pin of all 3 controllers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1] if more than one freescale controller in your custom device and reset pins of &amp;nbsp;controllers are sorted then isolate reset pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2] make sure that reset pin of controller is properly connected to the SWD pin connector. especially pin Num 10 must be connected with RESET pin of controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have followed 2 steps and fixed issue permanently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if any&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Harsh&amp;nbsp;&lt;/P&gt;&lt;P&gt;Einfochips, INDIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 11:19:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Device-is-secure-when-trying-to-flash-a-custom-KV31-PCB/m-p/660299#M8699</guid>
      <dc:creator>harshpatel</dc:creator>
      <dc:date>2016-11-24T11:19:12Z</dc:date>
    </item>
  </channel>
</rss>

