<?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>i.MX RT Crossover MCUsのトピックRe: MIMXRT685-EVK: Getting debug authentication to work</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1506259#M21071</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204966"&gt;@daparker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the additional information!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently reviewing your files and steps.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Diego.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2022 16:11:29 GMT</pubDate>
    <dc:creator>diego_charles</dc:creator>
    <dc:date>2022-08-15T16:11:29Z</dc:date>
    <item>
      <title>MIMXRT685-EVK: Getting debug authentication to work</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1505169#M21035</link>
      <description>&lt;P&gt;Hello, I'm evaluating the debug authentication process in section 48.10 of the RT600 user manual to enable post-launch retail microcontroller debugging for an upcoming product. I'm looking for some pointers or guidance on getting the debug authentication to succeed with with my MIMXRT685-EVK board and NXP tools. So far, I've created the attached project using the MCUXpresso Secure Provisioning SDK 4.1 &lt;STRONG&gt;[secure_provisioning.zip]&lt;/STRONG&gt;. This project is configured to create a secure bootable image based on the &lt;FONT face="courier new,courier"&gt;gpio_led_output&lt;/FONT&gt; demo, write the RKH to OTP, RTKH to shadow registers and disable Hifi4 DSP access unless the debug authentication succeeds. To setup my repro, I use the following steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Build the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;gpio_led_output&lt;/FONT&gt; in MCUXpresso with the&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;P class=""&gt;&lt;FONT face="courier new,courier"&gt;BOOT_HEADER_ENABLE&lt;/FONT&gt; preprocessor define undefined. Then build the image in the SP SDK and click "Show write script" to update the write script used below.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Set to enter serial ISP mode. ISP DIP switches (L,L,H)&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Remove power from the system to clear shadow register config, then plug the link probe and RT685 USB back in.&lt;/LI&gt;&lt;LI&gt;Run these scripts to program the image from the Secure Provisioning project:&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/write_image_mac.sh&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;./gen_scripts/write_shadows.sh&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Set to boot from FlexSPI Port B: (H,L,H), soft reset. Verify the target is&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;booted securely into the &lt;FONT face="courier new,courier"&gt;gpio_led_output&lt;/FONT&gt; demo by making sure the blue user LED is on.&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Generate a DC and attempt authentication with the following commands:&lt;/FONT&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;nxpdebugmbox gendc -c gendc_config.yaml -e gen_sb/mbi_config.json auth.dc --force&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;nxpdebugmbox -vv auth -b 0 -c auth.dc -k dck&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Authentication fails with the attached log&amp;nbsp;&lt;STRONG&gt;[log.txt].&lt;/STRONG&gt; Exerpt:&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;INFO:spsdk.debuggers.debug_probe_pyocd:PyOCD connected via LPC-LINK2 CMSIS-DAP V5.224 probe.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DEBUG:spsdk.debuggers.utils:step T.1: Activate the correct AP&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DEBUG:spsdk.debuggers.utils:step T.2: Set the AP access size and address mode&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DEBUG:spsdk.debuggers.utils:step T.3: Set the initial AHB address to access&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DEBUG:spsdk.debuggers.utils:step T.4: Access the memory system at that address&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DEBUG:spsdk.debuggers.utils:Chip has NOT enabled AHB access.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;INFO:spsdk.apps.nxpdebugmbox:Debug Authentication ends without AHB access.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Is there anyone who can help out with this?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 19:06:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1505169#M21035</guid>
      <dc:creator>daparker</dc:creator>
      <dc:date>2022-08-11T19:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT685-EVK: Getting debug authentication to work</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1505803#M21058</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204966"&gt;@daparker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing well!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am concerned about the debug Credential Key you have DCK.pub , I have not find its associated .pem in your files. &lt;STRONG&gt;Or as it is private, did you put it somewhere else? Or did you verified that the .pub you gave us , corresponds to the .pem you have?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diego_charles_1-1660341873529.png" style="width: 558px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190123iA16622DFBA1F9707/image-dimensions/558x92?v=v2" width="558" height="92" role="button" title="diego_charles_1-1660341873529.png" alt="diego_charles_1-1660341873529.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diego_charles_2-1660345602089.png" style="width: 602px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190127i7F8193031A32BC30/image-dimensions/602x167?v=v2" width="602" height="167" role="button" title="diego_charles_2-1660345602089.png" alt="diego_charles_2-1660345602089.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So what I suggest you to do is:&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT size="2"&gt;&amp;nbsp;generate debugger key pair ( I have not seen this command yet on your files or description)&lt;/FONT&gt;&lt;/H3&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="378"&gt;
&lt;P&gt;nxpkeygen -d debug -k rsa2048 keys\dck.pem&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diego_charles_3-1660345643254.png" style="width: 606px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190128iCCB5E2DF7DF063DE/image-dimensions/606x53?v=v2" width="606" height="53" role="button" title="diego_charles_3-1660345643254.png" alt="diego_charles_3-1660345643254.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diego_charles_4-1660345679898.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190129i01DF0944A8E0877E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="diego_charles_4-1660345679898.png" alt="diego_charles_4-1660345679898.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, when calling the this command give the dck.pem&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;nxpdebugmbox -vv auth -b 0 -c auth.dc -k dck&lt;FONT color="#FF0000"&gt;.pem&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Here is an example with the LPC55&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diego_charles_5-1660345841581.png" style="width: 493px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190130i6B38B27F080F2C7D/image-dimensions/493x163?v=v2" width="493" height="163" role="button" title="diego_charles_5-1660345841581.png" alt="diego_charles_5-1660345841581.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is another tip:&amp;nbsp; I recommend you to load J-Link into your&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;LPC-LINK2. Sometimes when we enable debug authentication, Segger is more reliable to initiate a debug session on the MCUXpresso. I do not why , but I have seen this on the LPC55.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know more details, so we can dig further if needed. Checking if DC keys match to what we expect on the RT600. Or if there is any setting we could do.&lt;/P&gt;
&lt;P&gt;All the best,&lt;/P&gt;
&lt;P&gt;Diego.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 23:23:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1505803#M21058</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2022-08-12T23:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT685-EVK: Getting debug authentication to work</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1505812#M21059</link>
      <description>&lt;P&gt;I have a real JLink. I can just switch to using that instead of the LPC-LINK2. This should be the full set of repro steps now, and both debugger keys should be included. The result is not much different from before, which I attached [nxpdebugmbox.txt]&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;./write_image_mac.sh&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;./gen_scripts/write_shadows.sh&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;nxpdebugmbox -vv auth -b 0 -c auth.dc -k keys/dck.pem&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I think my configuration should be correct, however I'd appreciate some help validating it. I noticed some of the stuff in the yaml appeared to be unused by nxpdebugmbox so I removed it, as I'm passing in an elf2sb file instead. Also, this should be a totally unfused MCU. Are any fuses required to be burned or data written to flash to make debug auth work? I don't think that should be the case, but I'd like to double check.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 01:42:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1505812#M21059</guid>
      <dc:creator>daparker</dc:creator>
      <dc:date>2022-08-13T01:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT685-EVK: Getting debug authentication to work</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1506259#M21071</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204966"&gt;@daparker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the additional information!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently reviewing your files and steps.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Diego.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 16:11:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1506259#M21071</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2022-08-15T16:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT685-EVK: Getting debug authentication to work</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1515735#M21421</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204966"&gt;@daparker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We would need to burn some fuses to get debug authentication.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To avoid assumming things, could you help me to read&amp;nbsp; all the fuses you got on your MCU (if any)?&lt;/P&gt;
&lt;P&gt;Many thanks for your patience,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Diego&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 17:01:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1515735#M21421</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2022-09-01T17:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT685-EVK: Getting debug authentication to work</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1517876#M21494</link>
      <description>&lt;P&gt;Good morning, we're also suspecting fuse config as we were able to get this to work on one of our proto boards. Attached is the fuse config read from SPSDK.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 16:43:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1517876#M21494</guid>
      <dc:creator>daparker</dc:creator>
      <dc:date>2022-09-06T16:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT685-EVK: Getting debug authentication to work</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1518749#M21517</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204966"&gt;@daparker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply!&lt;/P&gt;
&lt;P&gt;Our team&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;double checked the shadow registers required by debug authentication, For SEC_BOOT_CFG[5] (0x40130194), it should be set to 0x80. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We are also checking the reliability of configuration using fuses, I will get back to you as soon I receive more information.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regarding your comment on red : we're also suspecting fuse config as &lt;FONT color="#FF0000"&gt;w&lt;/FONT&gt;&lt;FONT color="#ff0000"&gt;e were able to get this to work on one of our proto boards,&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;to avoid assuming&amp;nbsp;anything could you expand on the text on red?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;Many thanks for your patience,&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;Diego&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 21:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1518749#M21517</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2022-09-07T21:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT685-EVK: Getting debug authentication to work</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1520123#M21572</link>
      <description>&lt;P&gt;Hey Diego, happy Friday. To Clarify in red, I mean we got this working on our own hardware. I'm just not able to get it work on my devkit. Besides that, we would like to use OTP not PUF. I did try your suggestion below and this still doesn't work on my devkit.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 17:50:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MIMXRT685-EVK-Getting-debug-authentication-to-work/m-p/1520123#M21572</guid>
      <dc:creator>daparker</dc:creator>
      <dc:date>2022-09-09T17:50:56Z</dc:date>
    </item>
  </channel>
</rss>

