<?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 Re: [i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1678321#M208317</link>
    <description>&lt;P&gt;I checked again, it seems the cmm you use is for imx8mq, not for imx8mp, so this cmm file only supports 64bits, do you have NDA with NXP? if yes, pls share with me, let me try to get imx8mp cmm for you&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 04:44:27 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2023-06-29T04:44:27Z</dc:date>
    <item>
      <title>[i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1676826#M208207</link>
      <description>&lt;P&gt;To use Secure jtag, I referred to document AN4686 (Secure Debug in i.MX 6/7/8M Family of Applications Processors).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# Environment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The working environment uses &lt;STRONG&gt;imx8mp SoC&lt;/STRONG&gt;, and &lt;STRONG&gt;Trace32 uses the 2023/02 version&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# eFusing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and,&amp;nbsp;The efusing proceeded as follows.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- SJC_RESP (*imx8mp has 128 bits unlike other SoCs)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;fuse prog 8 0 0x55aa1234&lt;BR /&gt;fuse prog 8 1 0x00aa5533&lt;BR /&gt;fuse prog 15 1 0x55aa1234&lt;BR /&gt;fuse prog 15 2 0x00aa5533&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Burn SJC_RESP_LOCK (&amp;lt;- Is it a must-have when testing?)&lt;/STRONG&gt;&lt;BR /&gt;fuse prog 0 0 0x400&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Burn JTAG_SMOD&lt;/STRONG&gt;&lt;BR /&gt;fuse prog 1 3 0x400000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# trace32 - script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;The test was conducted with imx8m script and im6 script.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. imx8m script (T32\demo\arm\hardware\imx8\imx8m\secure-jtag\attachimx8m.cmm)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;: Regardless of whether the response value is modified or not, the message "Keyword is too long" occurs and the script does not run normally.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dhj_0-1687853259150.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/229589iB9A336005640D295/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dhj_0-1687853259150.png" alt="dhj_0-1687853259150.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;dhj_0-1687853259150.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. imx6 script (T32\demo\arm\hardware\imx6\secure-jtag\attachimx.cmm)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;:&amp;nbsp;It doesn't give me the same error as the imx8m script, but it doesn't seem to work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dhj_1-1687853889621.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/229590iE93C10E2B7EF2A53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dhj_1-1687853889621.png" alt="dhj_1-1687853889621.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;dhj_1-1687853889621.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;: Values such as Challenge and SJC ID do not seem to be read normally.&lt;/P&gt;&lt;P&gt;:&amp;nbsp;A "read/write test failed" message appears.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2-1. The response value was modified to match the efusing value. (64bit)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ENTRY &amp;amp;challenge&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;amp;response=0x00aa553355aa1234&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ENDDO &amp;amp;response&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;:&amp;nbsp;But I'm still having problems. So I tried inputting the entire 128bit instead of 64bit.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2-2.&amp;nbsp;The response value was modified to match the efusing value. (128bit)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ENTRY &amp;amp;challenge&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;amp;response=0x00aa553355aa123400aa553355aa1234&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ENDDO &amp;amp;response&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;: However, an error occurred because the size of the response variable could not accept 128 bits.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dhj_2-1687854300544.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/229592i082C26D4F19F1FCD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dhj_2-1687854300544.png" alt="dhj_2-1687854300544.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;dhj_2-1687854300544.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can you tell me what's wrong?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 08:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1676826#M208207</guid>
      <dc:creator>dhj</dc:creator>
      <dc:date>2023-06-27T08:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1676897#M208215</link>
      <description>&lt;P&gt;pls refer to the document as below：&lt;/P&gt;
&lt;P&gt;“&lt;A href="https://community.nxp.com/t5/Blogs/Debug-i-MX8MP-uboot-with-TRACE32/ba-p/1615599”" target="_blank"&gt;https://community.nxp.com/t5/Blogs/Debug-i-MX8MP-uboot-with-TRACE32/ba-p/1615599”&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 09:33:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1676897#M208215</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-06-27T09:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1677314#M208248</link>
      <description>&lt;P&gt;I am also able to debug via trace32 under normal conditions.&lt;/P&gt;&lt;P&gt;What I inquired about is how to enable and use Secure Jtag.&lt;/P&gt;&lt;P&gt;&lt;A title="Secure Debug in i.MX 6/7/8M Family of Applications Processors" href="https://www.nxp.com/webapp/dummycrawl.jsp?code=AN4686" target="_self"&gt;Secure Debug in i.MX 6/7/8M Family of Applications Processors&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 00:17:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1677314#M208248</guid>
      <dc:creator>dhj</dc:creator>
      <dc:date>2023-06-28T00:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1678314#M208316</link>
      <description>&lt;P&gt;could you share your cmm file with me?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 04:32:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1678314#M208316</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-06-29T04:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1678321#M208317</link>
      <description>&lt;P&gt;I checked again, it seems the cmm you use is for imx8mq, not for imx8mp, so this cmm file only supports 64bits, do you have NDA with NXP? if yes, pls share with me, let me try to get imx8mp cmm for you&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 04:44:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1678321#M208317</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-06-29T04:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1678322#M208318</link>
      <description>&lt;P&gt;&lt;EM&gt;I tested with 2 cases (imx6, imx8m).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Each script was based on the demo script supported by T32, and the encrypted *.cmmx file was not touched.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Base:&amp;nbsp;T32\demo\arm\hardware\imx6\secure-jtag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1-1. attachimx.cmm&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RESET
AREA
SYStem.CPU iMX8MQ
CORE.ASSIGN 1
SYStem.Option ResBreak OFF
SYStem.Option WaitReset 1.3s
Trace.METHOD Onchip

; deprecated SYStem.MultiCore.tristate OFF
SYStem.CONFIG.TriState OFF

DO ~~~~/imx6_attach_secured.cmmx ENRESET=OFF
SYStem.JtagClock 10MHz

SYStem.Mode Attach

IF STATE.RUN()
Break

ENDDO&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;1-2.&amp;nbsp;calculateresponse.cmm&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ENTRY &amp;amp;challenge
&amp;amp;response=0x00aa553355aa1234 ;
ENDDO &amp;amp;response&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Base: T32\demo\arm\hardware\imx8\imx8m\secure-jtag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2-1.&amp;nbsp;attachimx8m.cmm&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RESet
SYStem.RESet
SYStem.CPU IMX8MQ
SYStem.JtagClock CTCK 10MHz
SYStem.Option ResBreak OFF
SYStem.Option WaitIDCODE 1.5s
CORE.ASSIGN 1.
Trace.DISable
SYStem.Mode Prepare

DO ~~~~/imx8m_attach_secured.cmmx

;CORE.ASSIGN 1.

SYStem.Mode Attach

IF RUN()
  Break
  
ENDDO&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2-2.&amp;nbsp;calculate_response.cmm&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PRIVATE &amp;amp;nChallenge &amp;amp;nResponse
PARAMETERS &amp;amp;nChallenge

&amp;amp;nResponse=0xaa553355aa1234 ;
;&amp;amp;nResponse=0x55aa1234aa5533 ;

ENDDO "&amp;amp;nResponse"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 04:46:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1678322#M208318</guid>
      <dc:creator>dhj</dc:creator>
      <dc:date>2023-06-29T04:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1678449#M208335</link>
      <description>&lt;P&gt;did you see my last response? your cmm file isn't for imx8mp, if you have NDA, pls share it, let me check if I can share the imx8mp cmm file with you&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 07:05:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1678449#M208335</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-06-29T07:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1680038#M208483</link>
      <description>&lt;P&gt;As you said, I checked the NDA.&lt;BR /&gt;I requested it separately via DM, so please check it please!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 01:57:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1680038#M208483</guid>
      <dc:creator>dhj</dc:creator>
      <dc:date>2023-07-03T01:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1681846#M208681</link>
      <description>&lt;P&gt;I have already submit this to internal team, they will check the NDA and give me the response, any update, I will let you know it ASAP&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 08:42:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1681846#M208681</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-07-05T08:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1682626#M208746</link>
      <description>&lt;P&gt;I was told that the owner is on vacation, she will come back to office on 7/10, so she will handle this script issue after 7/10, pls wait with patience&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 02:59:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1682626#M208746</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-07-06T02:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1687170#M209190</link>
      <description>&lt;P&gt;the owner is still working on this, any update, I will mail to you ASAP&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 06:29:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1687170#M209190</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-07-13T06:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1687394#M209216</link>
      <description>&lt;P&gt;I have mailed to you the script, pls check it and test again&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 09:09:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1687394#M209216</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-07-13T09:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX8M Plus] Is secure-jtag, a trace32 demo script, executed normally?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1688753#M209348</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for sending the script! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, when executing the provided script, unfortunately, it is not possible to perform the attach for debugging successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dhj_0-1689568347191.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/232536i30A50D07261B2DF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dhj_0-1689568347191.png" alt="dhj_0-1689568347191.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;dhj_0-1689568347191.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was able to confirm that reading the Challenge value is functioning correctly. (However, I'm not sure where to read the SJC ID and what it signifies.)&lt;/P&gt;&lt;P&gt;As for the response value, I have modified the script based on the values I wrote. (Just to mention again, the imx8mp soc has a total of 128 bits in the response value.)&lt;/P&gt;&lt;P&gt;Other than the response value, no separate modifications were made, and when running the script, I confirmed that it is still not possible to perform the attach as before.&lt;/P&gt;&lt;P&gt;Am I missing Somthing?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 04:42:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-Is-secure-jtag-a-trace32-demo-script-executed/m-p/1688753#M209348</guid>
      <dc:creator>dhj</dc:creator>
      <dc:date>2023-07-17T04:42:35Z</dc:date>
    </item>
  </channel>
</rss>

