According to the documentation:
But if another JLink client is running (for example, JLinkGdbServer or JLink Commander) then SystemView fails.
Even something as simple as running JLink Commander and leaving it idle (i.e. not even connecting to the target) is enough to prevent SystemView from working.
The SystemView log is shown below. As can be seen, when JLink Commander is running, SystemView fails - but beforehand and aftewards, SystemView has no problem.
(Running JLInkGdbServer instead of JLink Commander produces similar results.)
Is this a known issue, or a misunderstanding on my part?
Display All
I'm running SystemView on Windows 10, and when no other JLink client is running I can monitor the target (RP2040) with no problem.Q: Can I use the SystemView Application while I am debugging my application?
A: Yes. SystemView can run in parallel to a debugger and do continuous recording. To
make sure data can be read fast enough, configure the debugger connection to a high
interface speed (≥ 4 MHz).
But if another JLink client is running (for example, JLinkGdbServer or JLink Commander) then SystemView fails.
Even something as simple as running JLink Commander and leaving it idle (i.e. not even connecting to the target) is enough to prevent SystemView from working.
The SystemView log is shown below. As can be seen, when JLink Commander is running, SystemView fails - but beforehand and aftewards, SystemView has no problem.
(Running JLInkGdbServer instead of JLink Commander produces similar results.)
Is this a known issue, or a misunderstanding on my part?
Source Code
- ---- JLink Commander *not* running ----
- 16:09:55 - JLink: Device "RP2040_M0_0" selected.
- 16:09:55 - JLink: ConfigTargetSettings() start
- 16:09:55 - JLink: J-Link script: ConfigTargetSettings()
- 16:09:55 - JLink: ConfigTargetSettings() end
- 16:09:55 - JLink: Found SW-DP with ID 0x0BC12477
- 16:09:55 - JLink: DPIDR: 0x0BC12477
- 16:09:55 - JLink: Scanning AP map to find all available APs
- 16:09:55 - JLink: AP[1]: Stopped AP scan as end of AP map has been reached
- 16:09:55 - JLink: AP[0]: AHB-AP (IDR: 0x04770031)
- 16:09:55 - JLink: Iterating through AP map to find AHB-AP to use
- 16:09:55 - JLink: AP[0]: Core found
- 16:09:55 - JLink: AP[0]: AHB-AP ROM base: 0xE00FF000
- 16:09:55 - JLink: CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
- 16:09:55 - JLink: Found Cortex-M0 r0p1, Little endian.
- 16:09:55 - JLink: FPUnit: 4 code (BP) slots and 0 literal slots
- 16:09:55 - JLink: CoreSight components:
- 16:09:55 - JLink: ROMTbl[0] @ E00FF000
- 16:09:55 - JLink: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
- 16:09:55 - JLink: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
- 16:09:55 - JLink: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
- 16:09:56 - TRACE START Event recorded.
- 16:09:58 - TRACE STOP Event recorded.
- 16:09:58 - Target stopped recording.
- ---- JLink Commander running, *not* connected ----
- 16:10:24 - JLink: Device "RP2040_M0_0" selected.
- 16:10:24 - JLink: ConfigTargetSettings() start
- 16:10:24 - JLink: J-Link script: ConfigTargetSettings()
- 16:10:24 - JLink: ConfigTargetSettings() end
- 16:10:24 - JLink: Found SW-DP with ID 0x0BC12477
- 16:10:24 - JLink: DPIDR: 0x0BC12477
- 16:10:24 - JLink: Scanning AP map to find all available APs
- 16:10:24 - JLink: AP[1]: Stopped AP scan as end of AP map has been reached
- 16:10:24 - JLink: AP[0]: AHB-AP (IDR: 0x04770031)
- 16:10:24 - JLink: Iterating through AP map to find AHB-AP to use
- 16:10:24 - JLink: AP[0]: Core found
- 16:10:24 - JLink: AP[0]: AHB-AP ROM base: 0xE00FF000
- 16:10:24 - JLink: CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
- 16:10:24 - JLink: Found Cortex-M0 r0p1, Little endian.
- 16:10:24 - JLink: FPUnit: 4 code (BP) slots and 0 literal slots
- 16:10:24 - JLink: CoreSight components:
- 16:10:24 - JLink: ROMTbl[0] @ E00FF000
- 16:10:24 - JLink: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
- 16:10:24 - JLink: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
- 16:10:24 - JLink: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
- 16:10:44 - ERROR: Could not find RTT Control Block.
- Timeout: 20000 ms
- ---- JLink Commander running, connected ----
- 16:11:06 - JLink: Device "RP2040_M0_0" selected.
- 16:11:06 - JLink: ConfigTargetSettings() start
- 16:11:06 - JLink: J-Link script: ConfigTargetSettings()
- 16:11:06 - JLink: ConfigTargetSettings() end
- 16:11:06 - JLink: Found SW-DP with ID 0x0BC12477
- 16:11:06 - JLink: DPIDR: 0x0BC12477
- 16:11:06 - JLink: Scanning AP map to find all available APs
- 16:11:06 - JLink: AP[1]: Stopped AP scan as end of AP map has been reached
- 16:11:06 - JLink: AP[0]: AHB-AP (IDR: 0x04770031)
- 16:11:06 - JLink: Iterating through AP map to find AHB-AP to use
- 16:11:06 - JLink: AP[0]: Core found
- 16:11:06 - JLink: AP[0]: AHB-AP ROM base: 0xE00FF000
- 16:11:06 - JLink: CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
- 16:11:06 - JLink: Found Cortex-M0 r0p1, Little endian.
- 16:11:06 - JLink: FPUnit: 4 code (BP) slots and 0 literal slots
- 16:11:07 - JLink: CoreSight components:
- 16:11:07 - JLink: ROMTbl[0] @ E00FF000
- 16:11:07 - JLink: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
- 16:11:07 - JLink: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
- 16:11:07 - JLink: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
- 16:11:07 - TRACE START Event recorded.
- 16:11:07 - Warning: Failed to get RTT status.
- 16:11:07 - Warning: Recorder encountered an error. Recording stopped.
- 16:11:07 - Warning: Error (-162) during record analysis
- 16:11:07 - ERROR: Error while recording. Recorder stopped.
- ---- Quit JLink Commander ----
- 16:11:29 - JLink: Device "RP2040_M0_0" selected.
- 16:11:29 - JLink: ConfigTargetSettings() start
- 16:11:29 - JLink: J-Link script: ConfigTargetSettings()
- 16:11:29 - JLink: ConfigTargetSettings() end
- 16:11:29 - JLink: Found SW-DP with ID 0x0BC12477
- 16:11:29 - JLink: DPIDR: 0x0BC12477
- 16:11:29 - JLink: Scanning AP map to find all available APs
- 16:11:29 - JLink: AP[1]: Stopped AP scan as end of AP map has been reached
- 16:11:29 - JLink: AP[0]: AHB-AP (IDR: 0x04770031)
- 16:11:29 - JLink: Iterating through AP map to find AHB-AP to use
- 16:11:29 - JLink: AP[0]: Core found
- 16:11:29 - JLink: AP[0]: AHB-AP ROM base: 0xE00FF000
- 16:11:29 - JLink: CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
- 16:11:29 - JLink: Found Cortex-M0 r0p1, Little endian.
- 16:11:29 - JLink: FPUnit: 4 code (BP) slots and 0 literal slots
- 16:11:29 - JLink: CoreSight components:
- 16:11:29 - JLink: ROMTbl[0] @ E00FF000
- 16:11:29 - JLink: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
- 16:11:29 - JLink: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
- 16:11:29 - JLink: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
- 16:11:30 - TRACE START Event recorded.
- 16:11:32 - TRACE STOP Event recorded.
- 16:11:32 - Target stopped recording.