<?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 JTAG Debuger Selection For i.MX 8M Mini in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1177295#M164451</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;This is Milav Soni From Teq Diligent.&lt;/P&gt;&lt;P&gt;I have decided to purchase&amp;nbsp;&lt;SPAN&gt;i.MX 8M Mini EVK for internal development.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But Before that I want to confirm from JTAG Debugging side.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to select JTAG Debugger for i.MX 8M Mini EVK, can you please suggest me any JTAG debugger?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 12:43:20 GMT</pubDate>
    <dc:creator>milav_soni</dc:creator>
    <dc:date>2020-11-03T12:43:20Z</dc:date>
    <item>
      <title>JTAG Debuger Selection For i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1177295#M164451</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;This is Milav Soni From Teq Diligent.&lt;/P&gt;&lt;P&gt;I have decided to purchase&amp;nbsp;&lt;SPAN&gt;i.MX 8M Mini EVK for internal development.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But Before that I want to confirm from JTAG Debugging side.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to select JTAG Debugger for i.MX 8M Mini EVK, can you please suggest me any JTAG debugger?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 12:43:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1177295#M164451</guid>
      <dc:creator>milav_soni</dc:creator>
      <dc:date>2020-11-03T12:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: JTAG Debuger Selection For i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1177306#M164452</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I work with imx8m mini EVK and custom board design, for JTAG I use J-Link Pro from Segger to debug the Cortex-M4 and occasionaly to read registers or memory when attached to Cortex-A53 (no Linux debug yet needed).&lt;/P&gt;&lt;P&gt;Toolchain and workbench is IAR, we had to patch it with NXP configs files.&lt;/P&gt;&lt;P&gt;On EVK board you need an adapter to connect from 20 to 10 pins:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.mouser.fr/ProductDetail/Olimex-Ltd/ARM-JTAG-20-10?qs=DUTFWDROaMbVQp3WoAdijQ%3D%3D&amp;amp;gclid=CjwKCAiAnIT9BRAmEiwANaoE1YKoso911itDs7prVBnetJXsoA6W1cpQuzfB2EX6yfxEsOcYGlhvVRoCTxsQAvD_BwE" target="_blank"&gt;https://www.mouser.fr/ProductDetail/Olimex-Ltd/ARM-JTAG-20-10?qs=DUTFWDROaMbVQp3WoAdijQ%3D%3D&amp;amp;gclid=CjwKCAiAnIT9BRAmEiwANaoE1YKoso911itDs7prVBnetJXsoA6W1cpQuzfB2EX6yfxEsOcYGlhvVRoCTxsQAvD_BwE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;On custom design I have proprietary tests point adapter to connect.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 12:56:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1177306#M164452</guid>
      <dc:creator>matt67</dc:creator>
      <dc:date>2020-11-03T12:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: JTAG Debuger Selection For i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1177329#M164454</link>
      <description>&lt;P&gt;Hello Milav,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;According to section 2.14 [JTAG connector (J902)] of the EVK Board Hardware User's Guide:&lt;BR /&gt;The i.MX 8M Mini applications processor has five JATG signals on the dedicated pins and one hardware &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;reset input signal (POR_B). Those signals are directly connected to the 10-pin 1.27-mm JTAG connector &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;J902. The five JTAG signals used by the processor are:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;• JTAG_TCK—TAP clock&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;• JTAG_TMS—TAP machine state&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;• JTAG_TDI—TAP data in&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;• JTAG_TDO—TAP data out&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;• JTAG_nTRST—TAP reset request (active low)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX8MMEVKHUG" rel="nofollow noopener noreferrer" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=IMX8MMEVKHUG&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; The JTAG connector is based on standard ARM 10 pins Cortex Debug Connector. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;A href="http://infocenter.arm.com/help/topic/com.arm.doc.faqs/attached/13634/cortex_debug_connectors.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;http://infocenter.arm.com/help/topic/com.arm.doc.faqs/attached/13634/cortex_debug_connectors.pdf&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;A href="http://www2.keil.com/coresight/coresight-connectors/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www2.keil.com/coresight/coresight-connectors/&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 13:52:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1177329#M164454</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-11-03T13:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: JTAG Debuger Selection For i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1271809#M173578</link>
      <description>&lt;P&gt;Dear &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61637"&gt;@matt67&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am using the VAR-SOM-MX8M-MINI as System on Module with the i.MX 8M Mini and custom carrier board design. For JTAG I also use the J-Link Pro from Segger, but instead of IAR IDE I use Eclipse IDE.&lt;/P&gt;&lt;P&gt;Can you share your settings for the Cortex-A53 and Cortex-M4? Did you use any script or settings file(s)?&lt;/P&gt;&lt;P&gt;Here is my output for Cortex-A53 (Cortex-M4 not tested yet):&lt;/P&gt;&lt;P&gt;&lt;FONT color="#999999"&gt;SEGGER J-Link GDB Server V6.88a Command Line Version&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#999999"&gt;JLinkARM.dll V6.88a (DLL compiled Nov 18 2020 16:08:10)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#999999"&gt;Command line: -if jtag -device Cortex-A53 -endian little -speed 1000 -port 2331 -swoport 2332 -telnetport 2333 -vd -noreset -noir -localhostonly 1 -singlerun -strict -timeout 0 -nogui&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;-----GDB Server start settings-----&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;GDBInit file: none&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;GDB Server Listening port: 2331&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;SWO raw output listening port: 2332&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Terminal I/O port: 2333&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Accept remote connection: localhost only&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Generate logfile: off&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Verify download: on&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Init regs on start: off&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Silent mode: off&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Single run mode: on&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Target connection timeout: 0 ms&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;------J-Link related settings------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;J-Link Host interface: USB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;J-Link script: none&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;J-Link settings file: none&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;------Target related settings------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Target device: Cortex-A53&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Target interface: JTAG&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Target interface speed: 1000kHz&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Target endian: little&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#999999"&gt;Connecting to J-Link...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;J-Link is connected.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Firmware: J-Link Pro V4 compiled Nov 12 2020 10:08:03&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Hardware: V4.00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;S/N: 174505527&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Checking target voltage...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Target voltage: 3.32 V&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Listening on TCP/IP port 2331&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Connecting to target...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#999999"&gt;J-Link found 1 JTAG device, Total IRLen = 4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;JTAG ID: 0x5BA00477 (Cortex-A53)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Connected to target&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Waiting for GDB connection...Connected to 127.0.0.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Reading all registers&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Read 4 bytes @ address 0x00013DDC (Data = 0x17FFFFFF)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Read 4 bytes @ address 0x00013DD8 (Data = 0xD503207F)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Read 4 bytes @ address 0x00013DDC (Data = 0x17FFFFFF)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Received monitor command: speed 1000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Target interface speed set to 1000 kHz&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Received monitor command: speed auto&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Select auto target interface speed (4000 kHz)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Received monitor command: flash breakpoints 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Flash breakpoints enabled&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Received monitor command: semihosting enable&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Semi-hosting enabled (SVC Addr = 0x08)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Received monitor command: semihosting IOClient 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Semihosting I/O set to TELNET Client&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0x00406BA8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Read 4 bytes @ address 0x00013DDC (Data = 0x17FFFFFF)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Read 4 bytes @ address 0x00013DD8 (Data = 0xD503207F)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Read 4 bytes @ address 0x00013DDC (Data = 0x17FFFFFF)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0x00402DD0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0x00402E38&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0x004053B4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0x00402DD8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0x004053CC&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0x0040558C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Received monitor command: regs&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Unsupported CPU!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Reading all registers&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Read 4 bytes @ address 0x00013DDC (Data = 0x17FFFFFF)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Read 4 bytes @ address 0x00013DD8 (Data = 0xD503207F)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Read 4 bytes @ address 0x00013DDC (Data = 0x17FFFFFF)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Reading 64 bytes @ address 0x00901BC0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0xEF2D77F0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0xEF2D77EC&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0xEF2D77F0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0xEF2D77F0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0xEF2D77EC&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0xEF2D77F0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Reading 320 bytes @ address 0x33004000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0x33004000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0x33004000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;WARNING: Failed to read memory @ address 0x3300413F&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;P.S.: Previously I worked with the i.MX6 Solox, where scriptfiles for Cortex-A9 and Cortex-M4 are available (see &lt;A href="https://wiki.segger.com/i.MX6SoloX" target="_blank" rel="noopener"&gt;https://wiki.segger.com/i.MX6SoloX&lt;/A&gt;).&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Remark:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt; I just found the script for the Cortex-M4 inside the JLINK installation path: ../JLink/Devices/NXP/IMX8M . But there is no file for the Cortex-A53.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks and best regards, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Pierre&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 16:31:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1271809#M173578</guid>
      <dc:creator>Pi93</dc:creator>
      <dc:date>2021-05-04T16:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: JTAG Debuger Selection For i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1274283#M173794</link>
      <description>&lt;P&gt;Hello, do you want to debug the M4 with IAR ? I never tried to debug the A53 Cortex.&lt;/P&gt;&lt;P&gt;Here is the setup for IAR you can probably adapt it for Eclipse :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/144327iB71D36910F6B1366/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.png" alt="1.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="2.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/144328i08C2CF25B8223D6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;  In addition, a jlink script has to be defined in the IAR project file &amp;lt;ProjectName&amp;gt;_Debug.jlink&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[BREAKPOINTS]

ForceImpTypeAny = 0

ShowInfoWin = 1

EnableFlashBP = 2

BPDuringExecution = 0

[CFI]

CFISize = 0x00

CFIAddr = 0x00

[CPU]

MonModeVTableAddr = 0xFFFFFFFF

MonModeDebug = 0

MaxNumAPs = 0

LowPowerHandlingMode = 0

OverrideMemMap = 0

AllowSimulation = 1

ScriptFile="./m4Test_DebugScript.jlink"

[FLASH]

CacheExcludeSize = 0x00

CacheExcludeAddr = 0x00

MinNumBytesFlashDL = 0

SkipProgOnCRCMatch = 1

VerifyDownload = 1

AllowCaching = 1

EnableFlashDL = 2

Override = 1

Device="Cortex-M4"

[GENERAL]

WorkRAMSize = 0x00

WorkRAMAddr = 0x00

RAMUsageLimit = 0x00

[SWO]

SWOLogFile=""

[MEM]

RdOverrideOrMask = 0x00

RdOverrideAndMask = 0xFFFFFFFF

RdOverrideAddr = 0xFFFFFFFF

WrOverrideOrMask = 0x00

WrOverrideAndMask = 0xFFFFFFFF

WrOverrideAddr = 0xFFFFFFFF&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Content of m4Test_DebugScript.jlink for imx8Mmini M4 (and I think content differs from the official script) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/*********************************************************************
*               (c) SEGGER Microcontroller GmbH &amp;amp; Co. KG             *
*                        The Embedded Experts                        *
*                           www.segger.com                           *
**********************************************************************

-------------------------- END-OF-HEADER -----------------------------
*/

/*********************************************************************
*
*       ResetTarget
*/
void ResetTarget(void) {
  //
  // This device requires a special reset as default reset does not work for this device.
  // TBD
  //
}

/*********************************************************************
*
*       InitTarget
*/
void InitTarget(void) {
  int v;
  int Ctrl;
  int CSGPR_ADDR;
  int DP_REG_CTRL_STAT;
  int DP_REG_SELECT;
  int AHBAP_REG_CTRL;
  int AHBAP_REG_ADDR;
  int AHBAP_REG_DATA;

  DP_REG_CTRL_STAT = 1;
  DP_REG_SELECT    = 2;
  AHBAP_REG_CTRL   = 0;
  AHBAP_REG_ADDR   = 1;
  AHBAP_REG_DATA   = 3;

  Report("***************************************************");
  Report("J-Link script: iMX8M Mini Cortex-M4 J-Link script");
  Report("***************************************************");
  JLINK_CORESIGHT_Configure("IRPre=0;DRPre=0;IRPost=0;DRPost=0;IRLenDevice=4");
  CPU = CORTEX_M4;                                                              // Pre-select that we have a Cortex-M4 connected
  JTAG_AllowTAPReset = 0;                                                       // J-Link is allowed to use a TAP reset for JTAG-chain auto-detection

  //
  // Power-up complete DAP
  //
  Ctrl = 0
       | (1 &amp;lt;&amp;lt; 30)    // System power-up
       | (1 &amp;lt;&amp;lt; 28)    // Debug popwer-up
       | (1 &amp;lt;&amp;lt; 5)     // Clear STICKYERR
       ;
  JLINK_CORESIGHT_WriteDP(DP_REG_CTRL_STAT, Ctrl);

  //
  // Select AHB-AP and configure it
  //
  JLINK_CORESIGHT_WriteDP(DP_REG_SELECT, (0 &amp;lt;&amp;lt; 4) | (0 &amp;lt;&amp;lt; 24));
  Ctrl =  0
      | (2 &amp;lt;&amp;lt; 0)    // AP-access size. Fixed to 2: 32-bit
      | (1 &amp;lt;&amp;lt; 4)    // Auto increment TAR after read/write access. Increment is NOT performed on access to banked data registers 0-3.
      | (1 &amp;lt;&amp;lt; 31)   // Enable software access to the Debug APB bus.
      ;
  JLINK_CORESIGHT_WriteAP(AHBAP_REG_CTRL, Ctrl);

  JLINK_CORESIGHT_WriteAP(AHBAP_REG_ADDR, 0x007E0000);
  JLINK_CORESIGHT_WriteAP(AHBAP_REG_DATA, 0x20008000);
  JLINK_CORESIGHT_WriteAP(AHBAP_REG_ADDR, 0x007E0004);
  JLINK_CORESIGHT_WriteAP(AHBAP_REG_DATA, 0x1FFE0009);
  JLINK_CORESIGHT_WriteAP(AHBAP_REG_ADDR, 0x007E0008);
  JLINK_CORESIGHT_WriteAP(AHBAP_REG_DATA, 0xE7FEE7FE);

  //
  // Manually configure which APs are present on the CoreSight device
  //
  JTAG_SetDeviceId(0, 0x5BA00477);  // 4-bits IRLen
  CORESIGHT_AddAP(0, CORESIGHT_AHB_AP);  // AXI-AP
  CORESIGHT_AddAP(1, CORESIGHT_APB_AP);  // APB-AP for CA53
  CORESIGHT_AddAP(2, CORESIGHT_CUSTOM_AP);
  CORESIGHT_AddAP(3, CORESIGHT_CUSTOM_AP);
  CORESIGHT_AddAP(4, CORESIGHT_AHB_AP);  // AHB-AP

  CORESIGHT_IndexAHBAPToUse = 4;
}

/*********************************************************************
*
*       SetupTarget
*/
void SetupTarget(void)
{
  JLINK_MEM_WriteU32(0x3039000C, 0x000000A8);
  JLINK_MEM_WriteU32(0x3039000C, 0x000000AA);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then boot your board, and with u-boot start the M4 core with the command : &lt;STRONG&gt;bootaux 0x0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(Depending on were you want to load your firmware (0x0 is TCM, you have to adapt for DDR or OCRAM, and do the appropriate ICF memory zone arrangement and if DDR also reserved the area in Linux and make sure there is no peripheral conflicts with your dts)&lt;/P&gt;&lt;P&gt;After bootaux, you can load the firmware trough JTAG.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 07:17:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1274283#M173794</guid>
      <dc:creator>matt67</dc:creator>
      <dc:date>2021-05-10T07:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: JTAG Debuger Selection For i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1274621#M173828</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thanks for the provided screenshots and JlinkScript. I got the Cortex-M4 of the I.MX 8M Mini running and I am able to debug it. But I was searching for debugging Cortex-A53 aswell.&lt;/P&gt;&lt;P&gt;I will post the settings for debugging the Cortex-M4 via Eclipse IDE for anyone stumbling over this topic:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eclipse IDE - JTAG Debugger settings" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/144388i1D22C08DE6711CF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMX8MM_Mini-Cortex-M4_debugging.png" alt="Eclipse IDE - JTAG Debugger settings" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Eclipse IDE - JTAG Debugger settings&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eclipse IDE - JTAG Startup" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/144389i01C48E5B029EF971/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMX8MM_Mini-Cortex-M4_debugging2.png" alt="Eclipse IDE - JTAG Startup" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Eclipse IDE - JTAG Startup&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eclipse IDE - JTAG SVD files for peripherial registers" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/144387iEA85655A90E41B6C/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMX8MM_Mini-Cortex-M4_debugging3.png" alt="Eclipse IDE - JTAG SVD files for peripherial registers" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Eclipse IDE - JTAG SVD files for peripherial registers&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;P.S.: See attached files.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 19:30:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1274621#M173828</guid>
      <dc:creator>Pi93</dc:creator>
      <dc:date>2021-05-10T19:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: JTAG Debuger Selection For i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1274624#M173830</link>
      <description>&lt;P&gt;Thanks for sharing the Eclipse settings, It may be usefull.&lt;/P&gt;&lt;P&gt;Are you interested in JTAG debuging A53 running Linux OS or any RTOS ?&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 19:40:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1274624#M173830</guid>
      <dc:creator>matt67</dc:creator>
      <dc:date>2021-05-10T19:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: JTAG Debuger Selection For i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1274831#M173846</link>
      <description>&lt;P&gt;I am interested in debugging Linux OS (Yocto Dunfell Project to be precise). For now I am using remote application debugging using Eclipse IDE via SSH, but I can not access memory or registers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 07:26:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1274831#M173846</guid>
      <dc:creator>Pi93</dc:creator>
      <dc:date>2021-05-11T07:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: JTAG Debuger Selection For i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1274848#M173848</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In fact you can use memtool from Linux to read or write any register or memory from Linux, this is limited to debug code but could help&amp;nbsp;&lt;A href="http://manpages.org/memtool/8" target="_blank"&gt;http://manpages.org/memtool/8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or from JTAG I have with Segger a tool called JMem that allows to attach to the Cortex-A53 and dump all memory (without any specific script to make the debuger work)&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 07:47:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1274848#M173848</guid>
      <dc:creator>matt67</dc:creator>
      <dc:date>2021-05-11T07:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: JTAG Debuger Selection For i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1498383#M193232</link>
      <description>&lt;P&gt;I do. I am&amp;nbsp;working with IMX 8M Mini processor and I am now looking for a debugger. I would like to debug a Linux-based project. This processor has 4 Cortex A53 cores and another one Cortex M4. I am looking for a debugger that can be useful for analyzing memory registers, variables, going through multi-threads... Which one can I use? Which one is the best one to debug a Linux project in Cortex A53 of IMX 8M Mini processor?&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jul 2022 18:23:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1498383#M193232</guid>
      <dc:creator>HAA</dc:creator>
      <dc:date>2022-07-31T18:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: JTAG Debuger Selection For i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1845207#M222393</link>
      <description>&lt;P&gt;Any one tried with J-link Commander Tool to detect the Cortex-M4 of i.mx8m-plus SOM or Solid-Run or Humming Board Pulse ?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 13:25:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JTAG-Debuger-Selection-For-i-MX-8M-Mini/m-p/1845207#M222393</guid>
      <dc:creator>Awindbiker</dc:creator>
      <dc:date>2024-04-11T13:25:45Z</dc:date>
    </item>
  </channel>
</rss>

