<?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: Slow debugging with MCULink using many threads in ThreadX in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1925962#M31443</link>
    <description>&lt;P&gt;I enabled "&lt;SPAN&gt;set debug remote 1"&lt;/SPAN&gt;, and now I'm seeing this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;0000018993+00000: -&amp;gt; ~"Thread 7 hit Breakpoint 2, app () at /workspaces/connected2/app/src/app.cpp:652\n"
0000018993+00000: Thread 7 hit Breakpoint 2, app () at /workspaces/connected2/app/src/app.cpp:652
0000018993+00000: -&amp;gt; ~"652\t            auto message = application_queue-&amp;gt;receive(Wait::DontWait());\n"
0000018993+00000: 652	            auto message = application_queue-&amp;gt;receive(Wait::DontWait());
0000018993+00000: -&amp;gt; *stopped,reason="breakpoint-hit",disp="keep",bkptno="2",frame={addr="0x6011da94",func="app",args=[],file="/workspaces/connected2/app/src/app.cpp",fullname="/workspaces/connected2/app/src/app.cpp",line="652",arch="armv7e-m"},thread-id="7",stopped-threads="all"
0000018993+00000: mi2.status = stopped
0000018994+00001: 31-thread-list-ids
0000018994+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $qfThreadInfo#bb\n"
0000018994+00000: [remote] Sending packet: $qfThreadInfo#bb
0000019002+00008: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019002+00000: [remote] Received Ack
0000019002+00000: -&amp;gt; &amp;amp;"[remote] Packet received: m20015AB8,20002230,20002410,20002500,20002320,200028C0,200027D0,200026E0,200025F0,2003A810,20039158,2003B5F0,200029B0,20002AA0,20002B90,20002C80,20002D70,20002E60,20002F50\n"
0000019002+00000: [remote] Packet received: m20015AB8,20002230,20002410,20002500,20002320,200028C0,200027D0,200026E0,200025F0,2003A810,20039158,2003B5F0,200029B0,20002AA0,20002B90,20002C80,20002D70,20002E60,20002F50
0000019002+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $qsThreadInfo#c8\n"
0000019002+00000: [remote] Sending packet: $qsThreadInfo#c8
0000019002+00000: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019002+00000: [remote] Received Ack
0000019002+00000: -&amp;gt; &amp;amp;"[remote] Packet received: lOK\n"
0000019002+00000: [remote] Packet received: lOK
0000019002+00000: -&amp;gt; 31^done,thread-ids={thread-id="2",thread-id="3",thread-id="4",thread-id="5",thread-id="6",thread-id="7",thread-id="8",thread-id="9",thread-id="10",thread-id="11",thread-id="12",thread-id="13",thread-id="14",thread-id="15",thread-id="16",thread-id="17",thread-id="18",thread-id="19",thread-id="20"},current-thread-id="7",number-of-threads="19"
0000019002+00000: 32-thread-info 2
0000019002+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $qfThreadInfo#bb\n"
0000019002+00000: [remote] Sending packet: $qfThreadInfo#bb
0000019008+00006: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019008+00000: [remote] Received Ack
0000019008+00000: -&amp;gt; &amp;amp;"[remote] Packet received: m20015AB8,20002230,20002410,20002500,20002320,200028C0,200027D0,200026E0,200025F0,2003A810,20039158,2003B5F0,200029B0,20002AA0,20002B90,20002C80,20002D70,20002E60,20002F50\n"
0000019008+00000: [remote] Packet received: m20015AB8,20002230,20002410,20002500,20002320,200028C0,200027D0,200026E0,200025F0,2003A810,20039158,2003B5F0,200029B0,20002AA0,20002B90,20002C80,20002D70,20002E60,20002F50
0000019008+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $qsThreadInfo#c8\n"
0000019008+00000: [remote] Sending packet: $qsThreadInfo#c8
0000019008+00000: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019008+00000: [remote] Received Ack
0000019008+00000: -&amp;gt; &amp;amp;"[remote] Packet received: lOK\n"
0000019008+00000: [remote] Packet received: lOK
0000019008+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $qThreadExtraInfo,20002d70#44\n"
0000019008+00000: [remote] Sending packet: $qThreadExtraInfo,20002d70#44
0000019020+00012: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019020+00000: [remote] Received Ack
0000019020+00000: -&amp;gt; &amp;amp;"[remote] Packet received: 226d6f64756c65732f6d6963726f6f63707022203a2054585f534c454550\n"
0000019020+00000: [remote] Packet received: 226d6f64756c65732f6d6963726f6f63707022203a2054585f534c454550
0000019020+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $Hg20002d70#6e\n"
0000019020+00000: [remote] Sending packet: $Hg20002d70#6e
0000019020+00000: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019020+00000: [remote] Received Ack
0000019020+00000: -&amp;gt; &amp;amp;"[remote] Packet received: OK\n"
0000019020+00000: [remote] Packet received: OK
0000019020+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $g#67\n"
0000019020+00000: [remote] Sending packet: $g#67
0000019026+00006: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019026+00000: [remote] Received Ack
0000019026+00000: -&amp;gt; &amp;amp;"[remote] read_frame: Bad checksum, sentsum=0x25, csum=0xe2, buf=000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ce924200000000000000000\\000002B90,20002C80,20002D70,20002E60,20002F50\n"
0000019026+00000: [remote] read_frame: Bad checksum, sentsum=0x25, csum=0xe2, buf=000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ce924200000000000000000\000002B90,20002C80,20002D70,20002E60,20002F50
0000020027+01001: -&amp;gt; &amp;amp;"[remote] getpkt_or_notif_sane_1: Timed out.\n"
0000020027+00000: [remote] getpkt_or_notif_sane_1: Timed out.
0000021028+01001: -&amp;gt; &amp;amp;"[remote] getpkt_or_notif_sane_1: Timed out.\n"
0000021028+00000: [remote] getpkt_or_notif_sane_1: Timed out.
0000021028+00000: -&amp;gt; ~"Ignoring packet error, continuing...\n"
0000021028+00000: Ignoring packet error, continuing...
0000021029+00001: -&amp;gt; 32^done,threads=[{id="2",target-id="Thread 536882544",details="\"modules/microocpp\" : TX_SLEEP",frame={level="0",addr="0x00000000",func="??",args=[],arch="armv7e-m"},state="stopped"}]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2024 05:05:15 GMT</pubDate>
    <dc:creator>dafela</dc:creator>
    <dc:date>2024-08-06T05:05:15Z</dc:date>
    <item>
      <title>Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1924978#M31425</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working on a project with the RT1060, and we're using MCULink and LinkServer:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;daniel@daniel-XPS-15-9530:~/Downloads$ /usr/local/LinkServer/LinkServer --version
LinkServer v1.6.133 [Build 133] [2024-07-03 14:06:32]
daniel@daniel-XPS-15-9530:~/Downloads$ /usr/local/LinkServer/LinkServer probes
  #  Description                       Serial
---  --------------------------------  -------------
  1  MCU-LINK (r0FF) CMSIS-DAP V3.146  RS4JT2HXOZPYH&lt;/LI-CODE&gt;&lt;P&gt;Our OS is ThreadX, and we're using the Cortex-Debug extension in VSCode for debugging. We've recently started experiencing very slow debugging, where hitting a breakpoint takes more than 30s to trigger.&lt;/P&gt;&lt;P&gt;When reducing the number of threads we use in ThreadX to &amp;lt;=14, the debugging experience becomes fast again. When it's &amp;gt;=15 it's slow.&lt;/P&gt;&lt;P&gt;Here's how we run LinkServer&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/usr/local/LinkServer/LinkServer gdbserver --keep-alive work/connected/boards/bursen_c/MIMXRT1060_linkserver_config.json&lt;/LI-CODE&gt;&lt;P&gt;and our config&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "copyright": "Copyright 2023 NXP",
    "license": "SPDX-License-Identifier: BSD-3-Clause",
    "version": "1.0.0",
    "vendor": "NXP",
    "devices": [
      {
        "board": "MIMXRT1060-EVKB",
        "device": {
          "name": "MIMXRT1062xxxxB",
          "family": "MIMXRT1060",
          "memory": [
            {
              "location": "0x20000000",
              "size": "0x00080000",
              "type": "RAM"
            },
            {
              "location": "0x20200000",
              "size": "0x00080000",
              "type": "RAM"
            },
            {
              "location": "0x60000000",
              "size": "0x01000000",
              "type": "ExtFlash",
              "flash-driver": "MIMXRT1060_SFDP_QSPI.cfx"
            }
          ],
          "cores": [
            {
              "type": "cm7",
              "name": "cm7"
            }
          ]
        },
        "debug": {
          "no-packed": true,
          "protocol": "swd",
          "swo": true,
          "connect-script": "RT1060_connect.scp"
        }
      }
    ]
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we experience slow debugging, it seems to be when GDB is trying to get information about the various threads in the system, and we see the following in the log:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;000019946+00000: 33-thread-info 2
0000023961+04015: -&amp;gt; ~"Ignoring packet error, continuing...\n"
0000023961+00000: Ignoring packet error, continuing...
0000023962+00001: -&amp;gt; 33^done,threads=[{id="2",target-id="Thread 536953240",details="\"System Timer Thread\" : TX_SUSPENDED",frame={level="0",addr="0x600dd7a8",func="__get_ipsr_value",args=[],file="/sdk/mcuxsdk/rtos/azure-rtos/threadx/ports/cortex_m7/gnu/inc/tx_port.h",fullname="/sdk/mcuxsdk/rtos/azure-rtos/threadx/ports/cortex_m7/gnu/inc/tx_port.h",line="489",arch="armv7e-m"},state="stopped"}]
0000023962+00000: 34-thread-info 3
0000027984+04022: -&amp;gt; ~"Ignoring packet error, continuing...\n"
0000027985+00001: Ignoring packet error, continuing...
0000027985+00000: -&amp;gt; 34^done,threads=[{id="3",target-id="Thread 536878512",details="\"thread_logging\" : TX_QUEUE_SUSP",frame={level="0",addr="0x600dd7a8",func="__get_ipsr_value",args=[],file="/sdk/mcuxsdk/rtos/azure-rtos/threadx/ports/cortex_m7/gnu/inc/tx_port.h",fullname="/sdk/mcuxsdk/rtos/azure-rtos/threadx/ports/cortex_m7/gnu/inc/tx_port.h",line="489",arch="armv7e-m"},state="stopped"}]&lt;/LI-CODE&gt;&lt;P&gt;with the "Ignoring packet error, continuing" message coming after each thread-info call.&lt;/P&gt;&lt;P&gt;Do you know of anything we can do to fix this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 06:07:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1924978#M31425</guid>
      <dc:creator>dafela</dc:creator>
      <dc:date>2024-08-05T06:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1925286#M31428</link>
      <description>&lt;P&gt;I've tested with a newer version of gdb-multiarch, and arm-none-eabi-gdb from the latest Arm toolchain, and the behavior is the same, so I'm suspecting the issues lies in either MCULink or LinkServer.&lt;/P&gt;&lt;P&gt;I wanted to try using a JLink Plus instead, but have problems getting it working. Even just trying to erase the flash using JFLashExe fails, even though the program is able to connect to the core through the JLink. Any ideas? This is the log I'm getting:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Connecting ...
 - Connecting via USB to probe/ programmer device 0
 - Probe/ Programmer firmware: J-Link V11 compiled Dec  4 2023 10:22:45
 - Probe/ Programmer S/N: 601016349
 - Device "MIMXRT1061XXX5B" selected.
 - Target interface speed: 4000 kHz (Fixed)
 - VTarget = 3.348V
 - InitTarget() start
 - InitTarget() end - Took 1.15ms
 - Found SW-DP with ID 0x0BD11477
 - DPIDR: 0x0BD11477
 - CoreSight SoC-400 or earlier
 - Scanning AP map to find all available APs
 - AP[1]: Stopped AP scan as end of AP map has been reached
 - AP[0]: AHB-AP (IDR: 0x04770041)
 - Iterating through AP map to find AHB-AP to use
 - AP[0]: Core found
 - AP[0]: AHB-AP ROM base: 0xE00FD000
 - CPUID register: 0x411FC271. Implementer code: 0x41 (ARM)
 - Cache: L1 I/D-cache present
 - Found Cortex-M7 r1p1, Little endian.
 - FPUnit: 8 code (BP) slots and 0 literal slots
 - CoreSight components:
 - ROMTbl[0] @ E00FD000
 - [0][0]: E00FE000 CID B105100D PID 000BB4C8 ROM Table
 - ROMTbl[1] @ E00FE000
 - [1][0]: E00FF000 CID B105100D PID 000BB4C7 ROM Table
 - ROMTbl[2] @ E00FF000
 - [2][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7
 - [2][1]: E0001000 CID B105E00D PID 000BB002 DWT
 - [2][2]: E0002000 CID B105E00D PID 000BB00E FPB-M7
 - [2][3]: E0000000 CID B105E00D PID 000BB001 ITM
 - [1][1]: E0041000 CID B105900D PID 001BB975 ETM-M7
 - [1][2]: E0042000 CID B105900D PID 004BB906 CTI
 - [0][1]: E0040000 CID B105900D PID 000BB9A9 TPIU-M7
 - [0][2]: E0043000 CID B105F00D PID 001BB101 TSG
 - I-Cache L1: 32 KB, 512 Sets, 32 Bytes/Line, 2-Way
 - D-Cache L1: 32 KB, 256 Sets, 32 Bytes/Line, 4-Way
 - Executing init sequence ...
  - Initialized successfully
 - Target interface speed: 4000 kHz (Fixed)
 - Found 1 JTAG device. Core ID: 0x0BD11477 (None)
 - Connected successfully
Erasing chip ...
 - 4096 sectors, 1 range, 0x60000000 - 0x6FFFFFFF
 - Start of determining flash info (Bank 0 @ 0x60000000)
 - ERROR: Failed to perform RAMCode-sided Prepare()
 - ERROR: Error while determining flash info (Bank 0 @ 0x60000000)
 - ERROR: Failed to erase chip
Disconnecting ...
 - Disconnected&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 05 Aug 2024 11:49:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1925286#M31428</guid>
      <dc:creator>dafela</dc:creator>
      <dc:date>2024-08-05T11:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1925334#M31430</link>
      <description>&lt;P&gt;I was able to get the JLink working. I put it into "Serial Downloader Mode", and could then erase the flash through JFlashExe.&lt;/P&gt;&lt;P&gt;Upon triggering on the same place in the code I'm immediately put into the interactive debugging, and don't have to wait for all the thread info being read out. However, the reason for this is that it seems the JLink is only aware of the current callstack, and doesn't have knowledge about the other threads in the system, i.e. I'm limited to inspecting the the callstack of the thread where the breakpoint it hit.&lt;/P&gt;&lt;P&gt;So, I think the original question still stands: any idea why it's so slow when using more than 14 threads?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 12:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1925334#M31430</guid>
      <dc:creator>dafela</dc:creator>
      <dc:date>2024-08-05T12:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1925356#M31431</link>
      <description>&lt;P&gt;If I set remotetimeout to be 1 (which seems to be the lowest usable value), it brings me to the breakpoint faster, and everything still works. It's still slow, but it's faster. Could there be a bug in some protocol that's triggered when the number of threads (or something related) gets to a certain number?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 13:06:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1925356#M31431</guid>
      <dc:creator>dafela</dc:creator>
      <dc:date>2024-08-05T13:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1925962#M31443</link>
      <description>&lt;P&gt;I enabled "&lt;SPAN&gt;set debug remote 1"&lt;/SPAN&gt;, and now I'm seeing this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;0000018993+00000: -&amp;gt; ~"Thread 7 hit Breakpoint 2, app () at /workspaces/connected2/app/src/app.cpp:652\n"
0000018993+00000: Thread 7 hit Breakpoint 2, app () at /workspaces/connected2/app/src/app.cpp:652
0000018993+00000: -&amp;gt; ~"652\t            auto message = application_queue-&amp;gt;receive(Wait::DontWait());\n"
0000018993+00000: 652	            auto message = application_queue-&amp;gt;receive(Wait::DontWait());
0000018993+00000: -&amp;gt; *stopped,reason="breakpoint-hit",disp="keep",bkptno="2",frame={addr="0x6011da94",func="app",args=[],file="/workspaces/connected2/app/src/app.cpp",fullname="/workspaces/connected2/app/src/app.cpp",line="652",arch="armv7e-m"},thread-id="7",stopped-threads="all"
0000018993+00000: mi2.status = stopped
0000018994+00001: 31-thread-list-ids
0000018994+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $qfThreadInfo#bb\n"
0000018994+00000: [remote] Sending packet: $qfThreadInfo#bb
0000019002+00008: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019002+00000: [remote] Received Ack
0000019002+00000: -&amp;gt; &amp;amp;"[remote] Packet received: m20015AB8,20002230,20002410,20002500,20002320,200028C0,200027D0,200026E0,200025F0,2003A810,20039158,2003B5F0,200029B0,20002AA0,20002B90,20002C80,20002D70,20002E60,20002F50\n"
0000019002+00000: [remote] Packet received: m20015AB8,20002230,20002410,20002500,20002320,200028C0,200027D0,200026E0,200025F0,2003A810,20039158,2003B5F0,200029B0,20002AA0,20002B90,20002C80,20002D70,20002E60,20002F50
0000019002+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $qsThreadInfo#c8\n"
0000019002+00000: [remote] Sending packet: $qsThreadInfo#c8
0000019002+00000: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019002+00000: [remote] Received Ack
0000019002+00000: -&amp;gt; &amp;amp;"[remote] Packet received: lOK\n"
0000019002+00000: [remote] Packet received: lOK
0000019002+00000: -&amp;gt; 31^done,thread-ids={thread-id="2",thread-id="3",thread-id="4",thread-id="5",thread-id="6",thread-id="7",thread-id="8",thread-id="9",thread-id="10",thread-id="11",thread-id="12",thread-id="13",thread-id="14",thread-id="15",thread-id="16",thread-id="17",thread-id="18",thread-id="19",thread-id="20"},current-thread-id="7",number-of-threads="19"
0000019002+00000: 32-thread-info 2
0000019002+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $qfThreadInfo#bb\n"
0000019002+00000: [remote] Sending packet: $qfThreadInfo#bb
0000019008+00006: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019008+00000: [remote] Received Ack
0000019008+00000: -&amp;gt; &amp;amp;"[remote] Packet received: m20015AB8,20002230,20002410,20002500,20002320,200028C0,200027D0,200026E0,200025F0,2003A810,20039158,2003B5F0,200029B0,20002AA0,20002B90,20002C80,20002D70,20002E60,20002F50\n"
0000019008+00000: [remote] Packet received: m20015AB8,20002230,20002410,20002500,20002320,200028C0,200027D0,200026E0,200025F0,2003A810,20039158,2003B5F0,200029B0,20002AA0,20002B90,20002C80,20002D70,20002E60,20002F50
0000019008+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $qsThreadInfo#c8\n"
0000019008+00000: [remote] Sending packet: $qsThreadInfo#c8
0000019008+00000: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019008+00000: [remote] Received Ack
0000019008+00000: -&amp;gt; &amp;amp;"[remote] Packet received: lOK\n"
0000019008+00000: [remote] Packet received: lOK
0000019008+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $qThreadExtraInfo,20002d70#44\n"
0000019008+00000: [remote] Sending packet: $qThreadExtraInfo,20002d70#44
0000019020+00012: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019020+00000: [remote] Received Ack
0000019020+00000: -&amp;gt; &amp;amp;"[remote] Packet received: 226d6f64756c65732f6d6963726f6f63707022203a2054585f534c454550\n"
0000019020+00000: [remote] Packet received: 226d6f64756c65732f6d6963726f6f63707022203a2054585f534c454550
0000019020+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $Hg20002d70#6e\n"
0000019020+00000: [remote] Sending packet: $Hg20002d70#6e
0000019020+00000: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019020+00000: [remote] Received Ack
0000019020+00000: -&amp;gt; &amp;amp;"[remote] Packet received: OK\n"
0000019020+00000: [remote] Packet received: OK
0000019020+00000: -&amp;gt; &amp;amp;"[remote] Sending packet: $g#67\n"
0000019020+00000: [remote] Sending packet: $g#67
0000019026+00006: -&amp;gt; &amp;amp;"[remote] Received Ack\n"
0000019026+00000: [remote] Received Ack
0000019026+00000: -&amp;gt; &amp;amp;"[remote] read_frame: Bad checksum, sentsum=0x25, csum=0xe2, buf=000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ce924200000000000000000\\000002B90,20002C80,20002D70,20002E60,20002F50\n"
0000019026+00000: [remote] read_frame: Bad checksum, sentsum=0x25, csum=0xe2, buf=000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ce924200000000000000000\000002B90,20002C80,20002D70,20002E60,20002F50
0000020027+01001: -&amp;gt; &amp;amp;"[remote] getpkt_or_notif_sane_1: Timed out.\n"
0000020027+00000: [remote] getpkt_or_notif_sane_1: Timed out.
0000021028+01001: -&amp;gt; &amp;amp;"[remote] getpkt_or_notif_sane_1: Timed out.\n"
0000021028+00000: [remote] getpkt_or_notif_sane_1: Timed out.
0000021028+00000: -&amp;gt; ~"Ignoring packet error, continuing...\n"
0000021028+00000: Ignoring packet error, continuing...
0000021029+00001: -&amp;gt; 32^done,threads=[{id="2",target-id="Thread 536882544",details="\"modules/microocpp\" : TX_SLEEP",frame={level="0",addr="0x00000000",func="??",args=[],arch="armv7e-m"},state="stopped"}]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 05:05:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1925962#M31443</guid>
      <dc:creator>dafela</dc:creator>
      <dc:date>2024-08-06T05:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1927180#M31464</link>
      <description>&lt;P&gt;I received some information on StackOverflow, and it points to there being an issue on your end, either with LinkServer's GDB server, or the FW on the MCULink. See &lt;A href="https://stackoverflow.com/questions/78837355/slow-breakpoint-triggering-with-gdb-and-linkserver-mculink/78842647#78842647" target="_blank"&gt;https://stackoverflow.com/questions/78837355/slow-breakpoint-triggering-with-gdb-and-linkserver-mculink/78842647#78842647&lt;/A&gt; for more details.&lt;/P&gt;&lt;P&gt;It'd be great if this could be investigated, and an update to either LinkServer or MCULink's FW could be provided if an issue is found.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 08:51:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1927180#M31464</guid>
      <dc:creator>dafela</dc:creator>
      <dc:date>2024-08-07T08:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1928194#M31486</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/227255"&gt;@dafela&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks your questions and great inputs about this issue, we will check this issue.&lt;/P&gt;
&lt;P&gt;B.R,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 10:19:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1928194#M31486</guid>
      <dc:creator>Sam_Gao</dc:creator>
      <dc:date>2024-08-08T10:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1931799#M31547</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/227255"&gt;@dafela&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks you questions, we are checking this issue and trying to find the root cause. Let me update the status as below.&lt;/P&gt;
&lt;P&gt;1. We&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;cannot reproduce the problem on a local setup. The IDE seems really decent even with 40+ ThreadX threads (ThreadX example). &lt;STRONG&gt;Is it possible to provide ELF image which can be run on reference RT1060 EVK/EVKB board, we want to reproduct this issue based on yours.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;2.&amp;nbsp;J-Link is another probe with Azure RTOS GDB thread awareness support&amp;nbsp; (check the User Guide),&amp;nbsp;J-Link thread awareness might be faster.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sam_Gao_0-1723623217068.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/293276iE146394170B444C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sam_Gao_0-1723623217068.png" alt="Sam_Gao_0-1723623217068.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 08:15:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1931799#M31547</guid>
      <dc:creator>Sam_Gao</dc:creator>
      <dc:date>2024-08-14T08:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1931841#M31548</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233161"&gt;@Sam_Gao&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;I've attached an ELF that's a modified version of the &lt;EM&gt;threadx_demo&lt;/EM&gt; sample in the SDK for the 1060EVK. Here's how &lt;EM&gt;threadx_demo.c &lt;/EM&gt;looks:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#include "pin_mux.h"
#include "clock_config.h"
#include "board.h"
#include "tx_api.h"
#include "fsl_debug_console.h"

int main()
{
    /* Init board hardware. */
    BOARD_ConfigMPU();
    BOARD_InitBootPins();
    BOARD_InitBootClocks();
    BOARD_InitDebugConsole();

    PRINTF("THREADX example ...\r\n");

    /* Enter the ThreadX kernel.  */
    tx_kernel_enter();

    return 0;
}

#define THREAD_COUNT (14U)
#define THREAD_STACK_SIZE (1024U)
static TX_THREAD threads[THREAD_COUNT];
static uint8_t thread_stacks[THREAD_COUNT][THREAD_STACK_SIZE];

void thread_entry(ULONG thread_input)
{
    while (1)
    {
        PRINTF("Thread %i\r\n", thread_input);
        tx_thread_sleep(100);
    }
}

/* Define what the initial system looks like.  */
void tx_application_define(void *first_unused_memory)
{

    TX_THREAD_NOT_USED(first_unused_memory);

    for (uint32_t i = 0; i &amp;lt; THREAD_COUNT; i++)
    {
        UINT status = tx_thread_create(&amp;amp;threads[i], "thread N", thread_entry, i, thread_stacks[i], THREAD_STACK_SIZE, 1, 1, 1, TX_AUTO_START);
        assert(status == TX_SUCCESS);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;I'm still running this on our custom PCB, through the same setup as before (Cortex-Debug extension in VSCode, MCULink and LinkServer), but I'm now seeing the same issue happening when having 14 threads. At 14 threads the debugging is really slow, while at 13 threads it's fast.&lt;/P&gt;&lt;P&gt;Are you also using an MCULink with MCUXpresso IDE, or are you using a JLink?&lt;/P&gt;&lt;P&gt;For reference, here is our &lt;EM&gt;launch.json&lt;/EM&gt; for Cortex-Debug:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "configurations": [
        {
            "name": "MIMXRT1060-EVKB Blinky LinkServer cortex-debug",
            "type": "cortex-debug",
            "request": "launch",
            "servertype": "external",
            "gdbTarget": "localhost:3334",
            "cwd": "${workspaceFolder}",
            "executable": "boards/evkbmimxrt1060/azure_rtos_examples/threadx_demo/armgcc/flexspi_nor_debug/threadx_demo.elf",
            "armToolchainPath": "/home/daniel/work/nxp/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin",  // needed for the gdb
            "runToEntryPoint": "main", // or "ResetISR"
            "showDevDebugOutput": "raw",
            "showDevDebugTimestamps": true,
            "preLaunchCommands": [
                "show remotetimeout",
                "show remotewritesize"
            ]
        },
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Aug 2024 09:03:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1931841#M31548</guid>
      <dc:creator>dafela</dc:creator>
      <dc:date>2024-08-14T09:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1932905#M31559</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/227255"&gt;@dafela&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We tried the same code &lt;SPAN&gt;with over 15 threads&lt;/SPAN&gt;, but &lt;SPAN&gt;problem not reproducible.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We use RT1060 EVKB with CMSIS-DAP/J-Link(on board, LPCXpresso55S69, default) and 1170-EVK + J-Link(onboard,&amp;nbsp;LPCXpresso55S69).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Using-J-Link-with-MIMXRT1060-EVKB-or-MIMXRT1040-EVK/ta-p/1452717" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Using-J-Link-with-MIMXRT1060-EVKB-or-MIMXRT1040-EVK/ta-p/1452717&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R,Sam&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 10:41:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1932905#M31559</guid>
      <dc:creator>Sam_Gao</dc:creator>
      <dc:date>2024-08-15T10:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1933393#M31566</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233161"&gt;@Sam_Gao&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Right, we haven't tried on an EVK, only our custom PCB + MCULink. We do have a standalone JLink Pro, so I hope to test that sometime next week with our setup. I'll report back here.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 05:01:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1933393#M31566</guid>
      <dc:creator>dafela</dc:creator>
      <dc:date>2024-08-16T05:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1933528#M31568</link>
      <description>&lt;P&gt;Thanks, please let me know if this issue can be reproduced.&lt;/P&gt;
&lt;P&gt;Note: Over 14 thread working well as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sam_Gao_0-1723796398562.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/293599i65F499C9EFCEC4B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sam_Gao_0-1723796398562.png" alt="Sam_Gao_0-1723796398562.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 08:20:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1933528#M31568</guid>
      <dc:creator>Sam_Gao</dc:creator>
      <dc:date>2024-08-16T08:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1935345#M31595</link>
      <description>&lt;P&gt;I'm really struggling getting JLink to work with our setup. It struggles to set breakpoints etc., so it would be very useful if you can test with an MCULink.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 13:08:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1935345#M31595</guid>
      <dc:creator>dafela</dc:creator>
      <dc:date>2024-08-19T13:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1935991#M31603</link>
      <description>&lt;P&gt;So, this is interesting: when debugging with MCULink+LinkServer+VSCode it's slow, but when debugging the same code with MCULink+IDE it's fast, even with 20 threads. This is the same ELF I shared with you.&lt;/P&gt;&lt;P&gt;I believe the IDE also uses LinkServer internally, so is there a way to view what arguments it's using etc.? We run LinkServer like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LinkServer gdbserver --keep-alive work/connected/boards/bursen_c/MIMXRT1060_linkserver_config.json&lt;/LI-CODE&gt;&lt;P&gt;with the JSON file looking like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "copyright": "Copyright 2023 NXP",
    "license": "SPDX-License-Identifier: BSD-3-Clause",
    "version": "1.0.0",
    "vendor": "NXP",
    "devices": [
      {
        "board": "MIMXRT1060-EVKB",
        "device": {
          "name": "MIMXRT1062xxxxB",
          "family": "MIMXRT1060",
          "memory": [
            {
              "location": "0x20000000",
              "size": "0x00080000",
              "type": "RAM"
            },
            {
              "location": "0x20200000",
              "size": "0x00080000",
              "type": "RAM"
            },
            {
              "location": "0x60000000",
              "size": "0x01000000",
              "type": "ExtFlash",
              "flash-driver": "MIMXRT1060_SFDP_QSPI.cfx"
            }
          ],
          "cores": [
            {
              "type": "cm7",
              "name": "cm7"
            }
          ]
        },
        "debug": {
          "no-packed": true,
          "protocol": "swd",
          "swo": true,
          "connect-script": "RT1060_connect.scp"
        }
      }
    ]
  }&lt;/LI-CODE&gt;&lt;P&gt;as we've altered the memory configuration.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 08:00:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1935991#M31603</guid>
      <dc:creator>dafela</dc:creator>
      <dc:date>2024-08-20T08:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1936174#M31605</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/227255"&gt;@dafela&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Got it, I am looking for some tools guys to check the arguments from IDE, please wait for a moment.&lt;/P&gt;
&lt;P&gt;BTW, It works well for both '&lt;SPAN&gt;RT1060 EVKB with CMSIS-DAP(MCU-Link)' and 'RT1170 EVK with J-link', please see below shown. Please note:&amp;nbsp;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;ALL-Stop(default is non-stop) means RTOS thread awareness is enabled. Actually for any rtos.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sam_Gao_2-1724147878174.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/294120i16F9773B78FB7207/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sam_Gao_2-1724147878174.png" alt="Sam_Gao_2-1724147878174.png" /&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sam_Gao_0-1724147862691.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/294118iD8507F0AD1343218/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sam_Gao_0-1724147862691.png" alt="Sam_Gao_0-1724147862691.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;Note&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;All-stop and non-stop refer to something else actually... But that's the effect of using all- vs. non-stop with LinkServer.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://sourceware.org/gdb/current/onlinedocs/gdb.html/non_002dstop-mode.html" href="https://sourceware.org/gdb/current/onlinedocs/gdb.html/Non_002dStop-Mode.html" target="_blank" rel="noreferrer noopener"&gt;Non-Stop Mode (Debugging with GDB) (sourceware.org)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://sourceware.org/gdb/current/onlinedocs/gdb.html/all_002dstop-mode.html#all_002dstop-mode" href="https://sourceware.org/gdb/current/onlinedocs/gdb.html/All_002dStop-Mode.html#All_002dStop-Mode" target="_blank" rel="noreferrer noopener"&gt;All-Stop Mode (Debugging with GDB) (sourceware.org)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;As described in the User Guide, you'll see only the executing thread in Debug view, when RTOS GDB thread awareness is disabled. You'll also see in the User Guide that J-Link needs an extra activation step for RTOS GDB Thread Awareness - see "4.2 SEGGER J-Link probes"&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Would you please try NXP IDE-MCUXpreeso to reproduce it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 10:02:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1936174#M31605</guid>
      <dc:creator>Sam_Gao</dc:creator>
      <dc:date>2024-08-20T10:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1936190#M31606</link>
      <description>&lt;P&gt;Maybe I wasn't clear in my previous comment, but I did test with MCUXpressoIDE, and debugging works fine using the MCULink.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 10:12:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1936190#M31606</guid>
      <dc:creator>dafela</dc:creator>
      <dc:date>2024-08-20T10:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1936209#M31607</link>
      <description>Oh, sorry for that, I got it. the question is VSC + MCULink/LinkServer, it seems need to compare what arguments it's using both of them, I am asking the IDE tools guy to help, any feedback will let you know.</description>
      <pubDate>Tue, 20 Aug 2024 10:37:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1936209#M31607</guid>
      <dc:creator>Sam_Gao</dc:creator>
      <dc:date>2024-08-20T10:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1937313#M31613</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/227255"&gt;@dafela&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I summarize this case as follows, we tried both for NXP RT1060 EVK and RT1170 with same code, but cannot reproduce this issue.&lt;/P&gt;
&lt;P&gt;1. Work well with CMSIS-DAP + MCUXpresso&lt;/P&gt;
&lt;P&gt;2. Work well with J-Link + MCUXpreeso&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;3. W&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;e can't support Cortex-Debug(non-NXP product, that might be the bottleneck),&amp;nbsp; you mentioned before ' .......running a GDB server, and the &lt;STRONG&gt;Cortex-Debug extension in VSCode&lt;/STRONG&gt; for &lt;STRONG&gt;GDB&lt;/STRONG&gt;.'&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;&lt;A href="https://stackoverflow.com/questions/78837355/slow-breakpoint-triggering-with-gdb-and-linkserver-mculink/78842647#78842647" target="_blank"&gt;https://stackoverflow.com/questions/78837355/slow-breakpoint-triggering-with-gdb-and-linkserver-mculink/78842647#78842647&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;4. We recommend to install/use our extension and provide feedback:&amp;nbsp;&lt;A id="menur1b5s" class="fui-Link ___1rxvrpe f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://marketplace.visualstudio.com/items?itemname=nxpsemiconductors.mcuxpresso" href="https://marketplace.visualstudio.com/items?itemName=NXPSemiconductors.mcuxpresso" target="_blank" rel="noreferrer noopener" aria-label="链接 MCUXpresso for VS Code - Visual Studio Marketplace"&gt;MCUXpresso for VS Code - Visual Studio Marketplace&lt;/A&gt;&amp;nbsp;extension + VS Code&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;B.R,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;Sam&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 09:26:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1937313#M31613</guid>
      <dc:creator>Sam_Gao</dc:creator>
      <dc:date>2024-08-21T09:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1937339#M31614</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233161"&gt;@Sam_Gao&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I appreciate your help on this, and we can look at using NXP's extension instead. However, it'd still be great to be able to see which arguments is being used by MCUXpressoIDE to launch LinkServer's GDBServer.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 09:52:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1937339#M31614</guid>
      <dc:creator>dafela</dc:creator>
      <dc:date>2024-08-21T09:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Slow debugging with MCULink using many threads in ThreadX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1939152#M31642</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/227255"&gt;@dafela&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's hard to find the key guys to provide arguments used by IDE to lanuch GDB servers for me because of some reasons, and I would like to suggest to use MCUXpresso-for-VS-Code plugin which is from NXP to debug with, it is also based on similar arguments and give trace log when debugging it.&lt;/P&gt;
&lt;P&gt;Please follow&amp;nbsp;&lt;A href="https://www.nxp.com/design/training/getting-started-with-mcuxpresso-for-visual-studio-code:TIP-GETTING-STARTED-WITH-MCUXPRESSO-FOR-VS-CODE" target="_blank"&gt;https://www.nxp.com/design/training/getting-started-with-mcuxpresso-for-visual-studio-code:TIP-GETTING-STARTED-WITH-MCUXPRESSO-FOR-VS-CODE&lt;/A&gt;&amp;nbsp;to install plugin, it show necessay trace log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 09:37:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Slow-debugging-with-MCULink-using-many-threads-in-ThreadX/m-p/1939152#M31642</guid>
      <dc:creator>Sam_Gao</dc:creator>
      <dc:date>2024-08-23T09:37:43Z</dc:date>
    </item>
  </channel>
</rss>

