<?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中的主题 NXP RT1020 Program/Debug by SWD</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/NXP-RT1020-Program-Debug-by-SWD/m-p/833471#M1519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Today I received my Jlink OB, to try to Program/Debug the RT1020 microcontroller directly, without using OpenSDA/Daplink that installs the evaluation board.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have removed the jumpers that connect SWDIO and SDCLK to OpenSDA (J27--&amp;gt; SWDIO, J28--&amp;gt; SWCLK ), and I have connected those signals and GND to the Jlink OB. MCUXpresso recognizes the Jlink, but fails to connect to the microcontroller.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;There are three more jumpers in the evaluation board (J24, J25 and J26), two are for a UART and one for the RST signal. If I remove these jumpers, and use OpenSDA-DAP Link via USB or JTAG work well, it seems that the UART is not useful to program and debug, I do not know what is the utility of this serial port, but it is not essential for debugging or program.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I also tried to connect my Jlink V9 by SWD directly to the RT1020 and it also fails. I do not understand why I can not connect directly to the RT1020 microcontroller by SWD using a Jlink, when the OpeSDA (based on Kinetis MK20) on the evaluation board is also connected via SWD to the microcontroller.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It seems that OpenSDA sends some special commands by SWD to the microcontroller, but if it connects directly with Jlink it does not do it, or so it seems. I need to be able to program and do Debug, using SWD directly, without OpenSDA as an intermediary, to make my own board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ScreenHunter_013.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28383i98F0FDB3CE7B124B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_013.jpg" alt="ScreenHunter_013.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="foto_004.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28384i9FDECFAAE59429E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="foto_004.jpg" alt="foto_004.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="foto_003.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28390i6CA06F3488FB286D/image-size/large?v=v2&amp;amp;px=999" role="button" title="foto_003.jpg" alt="foto_003.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="foto_002.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28391i1AF5332D21D9E045/image-size/large?v=v2&amp;amp;px=999" role="button" title="foto_002.jpg" alt="foto_002.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="foto_001.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28415i5C120425DC9EFAD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="foto_001.jpg" alt="foto_001.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ScreenHunter_014.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28418iB2613341A7D9CA8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_014.jpg" alt="ScreenHunter_014.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2018 16:44:34 GMT</pubDate>
    <dc:creator>luishs</dc:creator>
    <dc:date>2018-08-08T16:44:34Z</dc:date>
    <item>
      <title>NXP RT1020 Program/Debug by SWD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/NXP-RT1020-Program-Debug-by-SWD/m-p/833471#M1519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Today I received my Jlink OB, to try to Program/Debug the RT1020 microcontroller directly, without using OpenSDA/Daplink that installs the evaluation board.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have removed the jumpers that connect SWDIO and SDCLK to OpenSDA (J27--&amp;gt; SWDIO, J28--&amp;gt; SWCLK ), and I have connected those signals and GND to the Jlink OB. MCUXpresso recognizes the Jlink, but fails to connect to the microcontroller.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;There are three more jumpers in the evaluation board (J24, J25 and J26), two are for a UART and one for the RST signal. If I remove these jumpers, and use OpenSDA-DAP Link via USB or JTAG work well, it seems that the UART is not useful to program and debug, I do not know what is the utility of this serial port, but it is not essential for debugging or program.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I also tried to connect my Jlink V9 by SWD directly to the RT1020 and it also fails. I do not understand why I can not connect directly to the RT1020 microcontroller by SWD using a Jlink, when the OpeSDA (based on Kinetis MK20) on the evaluation board is also connected via SWD to the microcontroller.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It seems that OpenSDA sends some special commands by SWD to the microcontroller, but if it connects directly with Jlink it does not do it, or so it seems. I need to be able to program and do Debug, using SWD directly, without OpenSDA as an intermediary, to make my own board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ScreenHunter_013.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28383i98F0FDB3CE7B124B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_013.jpg" alt="ScreenHunter_013.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="foto_004.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28384i9FDECFAAE59429E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="foto_004.jpg" alt="foto_004.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="foto_003.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28390i6CA06F3488FB286D/image-size/large?v=v2&amp;amp;px=999" role="button" title="foto_003.jpg" alt="foto_003.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="foto_002.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28391i1AF5332D21D9E045/image-size/large?v=v2&amp;amp;px=999" role="button" title="foto_002.jpg" alt="foto_002.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="foto_001.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28415i5C120425DC9EFAD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="foto_001.jpg" alt="foto_001.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ScreenHunter_014.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28418iB2613341A7D9CA8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_014.jpg" alt="ScreenHunter_014.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 16:44:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/NXP-RT1020-Program-Debug-by-SWD/m-p/833471#M1519</guid>
      <dc:creator>luishs</dc:creator>
      <dc:date>2018-08-08T16:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: NXP RT1020 Program/Debug by SWD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/NXP-RT1020-Program-Debug-by-SWD/m-p/833472#M1520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've done a new check right now. I have connected Jlink to JTAG J16, I have removed all jumpers J24 to J28, and it works, I can program and debug.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have reviewed the evaluation board schematic several times, and I do not see how it connects directly from JTAG to RT1020, it seems that all the JTAG lines go to the Kinetis MK20 instead of the RT1020, so I thought that the MK20 was acting intermediary in all cases.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Now I need to know how many pins this JTAG connection needs to program / debug the RT1020. I only want the essential, if it could be by SWD with 2 or 3 pins, better.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I will have to re-check the scheme of the evaluation board, to detect where the lines of the JTAG J16 connector are connected to the RT1020, regardless of the Kinetis MK20.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 21:41:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/NXP-RT1020-Program-Debug-by-SWD/m-p/833472#M1520</guid>
      <dc:creator>luishs</dc:creator>
      <dc:date>2018-08-08T21:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: NXP RT1020 Program/Debug by SWD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/NXP-RT1020-Program-Debug-by-SWD/m-p/833473#M1521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;Yes, J16 was the key, it is where external JTAG should be connected.&lt;/P&gt;&lt;P&gt;In case of having troubles when switching between connections on MCUXpresso IDE, you could try deleting the current connections (.launch files), and creating news on autodetect mode&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;BR /&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>Thu, 09 Aug 2018 20:38:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/NXP-RT1020-Program-Debug-by-SWD/m-p/833473#M1521</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2018-08-09T20:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: NXP RT1020 Program/Debug by SWD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/NXP-RT1020-Program-Debug-by-SWD/m-p/833474#M1522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thanks, Carlos.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I see in the scheme of the evaluation board, that JTAG connects directly to RT1020, and then I can design my own board with a JTAG 2x5 or 2x6 IDC connector and a flat cable to connect to Jlink or Multilink PE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question, please.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can I connect to RT1020 microcontroller by SWD to program and debug? I've tried with SWCLK and SWDIO, but I do not know if I also need the RESET pin because if I remove the RESET jumper of OpenSDA/DAP-Link in the evaluation board, it still works with just those two signals (SWCLK and SWDIO). But when I try to connect with a Jlink OB or Jlink V9, using the same two signals &lt;SPAN&gt;(SWCLK and SWDIO)&lt;/SPAN&gt;, removing J27 and J28, to connect directly to RT1020, then it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can program and debug by JTAG, but it fails when I try to use SWD (with a Jlink OB and Jlink V9), although it seems that OpenSDA is connected by SWD with RT1020. I do not understand how OpenSDA connects by SWD with the microcontroller, and I can not do it using a Jlink V9 or Jlink OB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 04:08:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/NXP-RT1020-Program-Debug-by-SWD/m-p/833474#M1522</guid>
      <dc:creator>luishs</dc:creator>
      <dc:date>2018-08-10T04:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: NXP RT1020 Program/Debug by SWD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/NXP-RT1020-Program-Debug-by-SWD/m-p/833475#M1523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works for me, connecting the SWD cables to the JTAG connector, I do not know why it did not work when I plugged into the J27 and J28 jumpers, in theory both also go to the SWD signals of the JTAG connector.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In any case, I prefer to use JTAG, because someone told me, in the MUConEclipse blog, which is faster than SWD. I will use my Jlink V9, and on my custom board I will put a 2x5 or 2x6 IDC connector, of the 1.27mm step with a flat cable.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;One more question:&lt;BR /&gt;To upload an encrypted firmware image to RT1020, can I use Jlink through JTAG, or do I need to do it via USB with MFG Tools?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FOTO_001.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62585iC39E4E9031E6900A/image-size/large?v=v2&amp;amp;px=999" role="button" title="FOTO_001.jpg" alt="FOTO_001.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Aug 2018 00:26:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/NXP-RT1020-Program-Debug-by-SWD/m-p/833475#M1523</guid>
      <dc:creator>luishs</dc:creator>
      <dc:date>2018-08-11T00:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: NXP RT1020 Program/Debug by SWD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/NXP-RT1020-Program-Debug-by-SWD/m-p/833476#M1524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;The i.MXRT1020 should be able to be debugged with SWD, but you will also need to connect other pins, like the operating voltage. You could take a look at the following link for additional details:&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2014/04/20/using-the-frdm-k64f-with-codewarrior/"&gt;https://mcuoneclipse.com/2014/04/20/using-the-frdm-k64f-with-codewarrior/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;BR /&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, 13 Aug 2018 15:27:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/NXP-RT1020-Program-Debug-by-SWD/m-p/833476#M1524</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2018-08-13T15:27:35Z</dc:date>
    </item>
  </channel>
</rss>

