<?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: Debugging RT1064 via JLink in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugging-RT1064-via-JLink/m-p/1261651#M13792</link>
    <description>&lt;P&gt;We don't have access to a j link plus, hence the j link base... If anyone can confirm the issue is with the base vs + we'd be happy to update, but u less we can prove its the cause of a problem it seems kind of silly to waste 400$ to update our debuggers when it might not solve anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know the B version is the updated A version, but the SDK only lists the A version. Can you confirm the SDK supports both the A and B version?&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2021 03:26:51 GMT</pubDate>
    <dc:creator>nplayle</dc:creator>
    <dc:date>2021-04-14T03:26:51Z</dc:date>
    <item>
      <title>Debugging RT1064 via JLink</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugging-RT1064-via-JLink/m-p/1261542#M13781</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is kind of a continuation of the previous post (&lt;A href="https://community.nxp.com/t5/i-MX-RT/Debug-without-blowing-efuses-setting-efuses-from-J-Link/m-p/1260893#M13755" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-RT/Debug-without-blowing-efuses-setting-efuses-from-J-Link/m-p/1260893#M13755&lt;/A&gt;).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot get reliable debugging via JLink from MCUXpresso. The behaviour is as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;On launching the debugger for the first time, it will open up the Jlink programming dialog for a few seconds, then it will close and the program will not run.&amp;nbsp;&lt;OL&gt;&lt;LI&gt;The Jlink output script seems to have some errors in it and then an eventual timeout when erasing sectors&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ERROR: Timeout while erasing sectors, RAMCode did not respond in time. (PC = 0x00000000, CPSR = 0x00200300, LR = 0x81000000)!
Failed to erase sectors&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On launching the debugger for the second time, it does correctly program but does have an error in it too?&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Core did not halt on reset vector. Assuming faulty image.
Resetting and halting core on image verification value read.
Core did not halt after reset step 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When this happens, the debugger does not stop at main and seems to randomly pick a breakpoint it wants to stop at (it does successfully stop at breakpoint 3 that was set. restarting the core via MCUXpresso does stop at the first breakpoint.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When debugging, I consistently bounce between these 2 states. For example, after a failed load, the next load will always succeed (insofar as you can call that success). However, the next load will fail in one of two ways:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If I do not change anything in the source files, the debugger gets into a weird state where it stops responding altogether and I have to disconnect / reconnect it from USB and close / reopen MCUXpresso.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;If I do change the source files, I get back into state 1 above, where the load fails due to RAMCode timeout, then the next load 'succeeds'.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is really getting to be annoying, so far it has been 2 days and we don't have a way to reliably hook a debug session to our board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The debugger connections are as follows:&lt;/P&gt;&lt;TABLE border="1" width="518px" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="172px"&gt;Schematic Pin Name&lt;/TD&gt;&lt;TD width="145px"&gt;J Link Pin&lt;/TD&gt;&lt;TD width="100px"&gt;Pin Name&lt;/TD&gt;&lt;TD width="100px"&gt;&lt;DIV&gt;&lt;DIV&gt;NXP RT1064 Pin&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172px"&gt;VDD_3V3&lt;/TD&gt;&lt;TD width="145px"&gt;1&lt;/TD&gt;&lt;TD width="100px"&gt;VTref&lt;/TD&gt;&lt;TD width="100px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172px"&gt;GND&lt;/TD&gt;&lt;TD width="145px"&gt;4&lt;/TD&gt;&lt;TD width="100px"&gt;GND&lt;/TD&gt;&lt;TD width="100px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172px"&gt;NXP_JTAG.TMS&lt;/TD&gt;&lt;TD width="145px"&gt;7&lt;/TD&gt;&lt;TD width="100px"&gt;SWDIO&lt;/TD&gt;&lt;TD width="100px"&gt;GPIO AD B0 06&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172px"&gt;NXP_JTAG.TCK&lt;/TD&gt;&lt;TD width="145px"&gt;9&lt;/TD&gt;&lt;TD width="100px"&gt;SWCLK&lt;/TD&gt;&lt;TD width="100px"&gt;GPIO AD B0 07&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172px"&gt;NXP_JTAG.TDO&lt;/TD&gt;&lt;TD width="145px"&gt;13&lt;/TD&gt;&lt;TD width="100px"&gt;SWO&lt;/TD&gt;&lt;TD width="100px"&gt;GPIO AD B0 10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172px"&gt;Solder to RST node Rt / C16&lt;/TD&gt;&lt;TD width="145px"&gt;15&lt;/TD&gt;&lt;TD width="100px"&gt;RST&lt;/TD&gt;&lt;TD width="100px"&gt;\POR / M7&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I have also tried hooking up the RST pin from the J link to TRSTB /&amp;nbsp;GPIO AD B0 11 on the NXP and that made the debugger unable to connect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a debug launch file that I tried to use, but I have tried various settings in the launch file and they don't seem to have any effect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. both checked / unchecked versions of:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nplayle_0-1618352682678.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/142172iED0BAB64E18C6DF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nplayle_0-1618352682678.png" alt="nplayle_0-1618352682678.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="nplayle_1-1618352703735.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/142173i2340830D3DDE7DE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nplayle_1-1618352703735.png" alt="nplayle_1-1618352703735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something I'm missing? Can anyone confirm they have successfully used MCUXpresso and a JLink to program / debug an RT1064's internal SPI flash?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: More info:&lt;/P&gt;&lt;P&gt;I found someone on the segger forums with the exact same issue as me, but I don't see a resultion:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forum.segger.com/index.php/Thread/7264-ABANDONED-Timeout-while-erasing-sectors/" target="_blank" rel="noopener"&gt;https://forum.segger.com/index.php/Thread/7264-ABANDONED-Timeout-while-erasing-sectors/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm using a J-Link base which doesn't support external memory programming - can anyone confirm if the Jlink base works with the RT1064?&lt;/P&gt;&lt;P&gt;Also, for what it's worth, we're developing with the RT1064CVL5&lt;STRONG&gt;B&lt;/STRONG&gt;, whereas the SDK only has the option for&amp;nbsp;RT1064CVL5&lt;STRONG&gt;A,&amp;nbsp;&lt;/STRONG&gt;though I'm not sure what difference that would make, if any.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 02:08:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugging-RT1064-via-JLink/m-p/1261542#M13781</guid>
      <dc:creator>nplayle</dc:creator>
      <dc:date>2021-04-14T02:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging RT1064 via JLink</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugging-RT1064-via-JLink/m-p/1261635#M13791</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;1) Is there something I'm missing? Can anyone confirm they have successfully used MCUXpresso and a JLink to program/debug an RT1064's internal SPI flash? &lt;BR /&gt;-- It's able to debug the RT1064 in the MCUXpresso with Jlink, so I guess the problem may be related to the Jlink debug tool, you can try a Jlink-plus tool.&lt;BR /&gt;2) RT1064CVL5B is the later version of the RT1064CVL5A.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 02:53:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugging-RT1064-via-JLink/m-p/1261635#M13791</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-04-14T02:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging RT1064 via JLink</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugging-RT1064-via-JLink/m-p/1261651#M13792</link>
      <description>&lt;P&gt;We don't have access to a j link plus, hence the j link base... If anyone can confirm the issue is with the base vs + we'd be happy to update, but u less we can prove its the cause of a problem it seems kind of silly to waste 400$ to update our debuggers when it might not solve anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know the B version is the updated A version, but the SDK only lists the A version. Can you confirm the SDK supports both the A and B version?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 03:26:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugging-RT1064-via-JLink/m-p/1261651#M13792</guid>
      <dc:creator>nplayle</dc:creator>
      <dc:date>2021-04-14T03:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging RT1064 via JLink</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugging-RT1064-via-JLink/m-p/1261718#M13795</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;I try to use a J-link base (V8.00) for a test, it can recognize the Cortex-M7 core in the J-link commander.&lt;BR /&gt;However, it fails to enter debug mode in the MCUXpresso IDE.&lt;BR /&gt;To be prudent, you can contact the Segger to confirming.&lt;/P&gt;
&lt;P&gt;The SDK library definitely&amp;nbsp;&lt;SPAN&gt;supports both the A and B versions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 06:15:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugging-RT1064-via-JLink/m-p/1261718#M13795</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-04-14T06:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging RT1064 via JLink</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugging-RT1064-via-JLink/m-p/1261730#M13796</link>
      <description>&lt;P&gt;Thanks - I'm waiting for my account to be approved in order to ask there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You had previously said that the j link works - does the j link plus with version 8.00 work? Or perhaps it's broken in a recent update and an older version works? I did update my j link but I can't remember from which version (and there were other issues in the way at the time). I'll give some older versions a test tomorrow.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 06:24:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugging-RT1064-via-JLink/m-p/1261730#M13796</guid>
      <dc:creator>nplayle</dc:creator>
      <dc:date>2021-04-14T06:24:54Z</dc:date>
    </item>
  </channel>
</rss>

