Hi,
does anybody know the reason for this? JLink debugging in Eclipse stops every now and then without any user interaction. The only way to get out of this is to stop the debugging session completely and start over. Sometimes the issue happens within seconds or hours. Sometime x times in a row. Do not understand what the error/warning messages are leated to. Guess that address 0xdeadbeee is not taken coincidently.
What to do to avoid this annoying issue?
regards
SPR
Display All
does anybody know the reason for this? JLink debugging in Eclipse stops every now and then without any user interaction. The only way to get out of this is to stop the debugging session completely and start over. Sometimes the issue happens within seconds or hours. Sometime x times in a row. Do not understand what the error/warning messages are leated to. Guess that address 0xdeadbeee is not taken coincidently.
What to do to avoid this annoying issue?
regards
SPR
Shell-Script
- SEGGER J-Link GDB Server V6.88b Command Line Version
- JLinkARM.dll V6.88b (DLL compiled Nov 27 2020 15:44:17)
- Command line: -if swd -device ATSAMD21G18 -endian little -speed auto -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -singlerun -strict -timeout 0 -nogui -rtos GDBServer/RTOSPlugin_FreeRTOS
- -----GDB Server start settings-----
- GDBInit file: none
- GDB Server Listening port: 2331
- SWO raw output listening port: 2332
- Terminal I/O port: 2333
- Accept remote connection: localhost only
- Generate logfile: off
- Verify download: on
- Init regs on start: on
- Silent mode: off
- Single run mode: on
- Target connection timeout: 0 ms
- ------J-Link related settings------
- J-Link Host interface: USB
- J-Link script: none
- J-Link settings file: none
- ------Target related settings------
- Target device: ATSAMD21G18
- Target interface: SWD
- Target interface speed: auto
- Target endian: little
- Connecting to J-Link...
- J-Link is connected.
- Firmware: J-Link V10 compiled Nov 12 2020 10:06:35
- Hardware: V10.10
- S/N: 600105995
- Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
- Checking target voltage...
- Target voltage: 3.11 V
- Listening on TCP/IP port 2331
- Connecting to target...
- Connected to target
- Waiting for GDB connection...Connected to 127.0.0.1
- Reading all registers
- Read 4 bytes @ address 0x00000000 (Data = 0x20002D88)
- Read 2 bytes @ address 0x00000000 (Data = 0x2D88)
- Received monitor command: speed 1000
- Target interface speed set to 1000 kHz
- Received monitor command: clrbp
- Received monitor command: reset
- Resetting target
- Received monitor command: halt
- Halting target CPU...
- ...Target halted (PC = 0x00008408)
- Received monitor command: regs
- R0 = 00000000, R1 = 00002FDF, R2 = 42003000, R3 = 00000001
- R4 = 20002894, R5 = 00000181, R6 = 20002884, R7 = 00000000
- R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
- R12= 00000000, R13= 20002D88, MSP= 20002D88, PSP= 20001740
- R14(LR) = 0001FC3F, R15(PC) = 00008408
- XPSR 21000000, APSR 20000000, EPSR 01000000, IPSR 00000000
- CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
- Reading all registers
- Received monitor command: speed auto
- Select auto target interface speed (2000 kHz)
- Received monitor command: flash breakpoints 1
- Flash breakpoints enabled
- Received monitor command: semihosting enable
- Semi-hosting enabled (Handle on BKPT)
- Received monitor command: semihosting IOClient 1
- Semihosting I/O set to TELNET Client
- Received monitor command: SWO DisableTarget 0xFFFFFFFF
- SWO disabled successfully.
- Received monitor command: SWO EnableTarget 0 0 0x1 0
- SWO enabled successfully.
- Loading RTOS plugin: /Applications/SEGGER/JLink_V688b/GDBServer/RTOSPlugin_FreeRTOS...
- Error: dlopen(/Applications/SEGGER/JLink_V688b/GDBServer/RTOSPlugin_FreeRTOS, 1): image not found
- Loading RTOS plugin: /Applications/SEGGER/JLink_V688b/GDBServer/RTOSPlugin_FreeRTOS.dylib...
- RTOS plugin (API v1.0) loaded successfully
- RTOS plugin: Loaded
- ...
- Received symbol: FreeRTOSDebugConfig (0x00000000)
- All mandatory symbols successfully loaded.
- Read 4 bytes @ address 0x00008408 (Data = 0x49354834)
- All mandatory symbols successfully loaded.
- Downloading 15984 bytes @ address 0x00000000 - Verified OK
- Downloading 15872 bytes @ address 0x00003E70 - Verified OK
- Downloading 15808 bytes @ address 0x00007C70 - Verified OK
- Downloading 16016 bytes @ address 0x0000BA30 - Verified OK
- Downloading 16096 bytes @ address 0x0000F8C0 - Verified OK
- Downloading 15936 bytes @ address 0x000137A0 - Verified OK
- Downloading 15952 bytes @ address 0x000175E0 - Verified OK
- Downloading 15968 bytes @ address 0x0001B430 - Verified OK
- Downloading 16000 bytes @ address 0x0001F290 - Verified OK
- Downloading 15840 bytes @ address 0x00023110 - Verified OK
- Downloading 16064 bytes @ address 0x00026EF0 - Verified OK
- Downloading 16288 bytes @ address 0x0002ADB0 - Verified OK
- Downloading 16336 bytes @ address 0x0002ED50 - Verified OK
- Downloading 2916 bytes @ address 0x00032D20 - Verified OK
- Downloading 8 bytes @ address 0x00033884 - Verified OK
- Downloading 1344 bytes @ address 0x0003388C - Verified OK
- Reading all registers
- Comparing flash [....................] Done.
- Read register 0 (4 bytes) from DLL: 00000000
- Read register 1 (4 bytes) from DLL: DF2F0000
- Read register 2 (4 bytes) from DLL: 00300042
- Read register 3 (4 bytes) from DLL: 01000000
- Read register 4 (4 bytes) from DLL: 94280020
- Read register 5 (4 bytes) from DLL: 81010000
- Read register 6 (4 bytes) from DLL: 84280020
- Read register 7 (4 bytes) from DLL: 00000000
- Read register 8 (4 bytes) from DLL: 00000000
- Read register 9 (4 bytes) from DLL: 00000000
- Read register 10 (4 bytes) from DLL: 00000000
- Read register 11 (4 bytes) from DLL: 00000000
- Read register 12 (4 bytes) from DLL: 00000000
- Read register 13 (4 bytes) from DLL: 882D0020
- Read register 14 (4 bytes) from DLL: 3FFC0100
- Read register 15 (4 bytes) from DLL: 08840000
- Read register 16 (4 bytes) from DLL: 00000021
- Read 4 bytes @ address 0x00008408 (Data = 0x49354834)
- Read 4 bytes @ address 0x00008408 (Data = 0x49354834)
- Reading 64 bytes @ address 0x00013280
- Read 4 bytes @ address 0x000132D0 (Data = 0x0002F074)
- Read 2 bytes @ address 0x000132BA (Data = 0x4805)
- Received monitor command: clrbp
- Received monitor command: reset
- Resetting target
- Received monitor command: halt
- Halting target CPU...
- ...Target halted (PC = 0x00008408)
- Received monitor command: regs
- R0 = 40001000, R1 = 00000000, R2 = 00000000, R3 = 00000000
- R4 = 20000654, R5 = 200006AC, R6 = 200006AC, R7 = 00000000
- R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
- R12= 200005D8, R13= 20002D88, MSP= 20002D88, PSP= 20001740
- R14(LR) = 2000032F, R15(PC) = 00008408
- XPSR 61000000, APSR 60000000, EPSR 01000000, IPSR 00000000
- CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
- Reading all registers
- Read register 0 (4 bytes) from DLL: 00100040
- Read register 1 (4 bytes) from DLL: 00000000
- Read register 2 (4 bytes) from DLL: 00000000
- Read register 3 (4 bytes) from DLL: 00000000
- Read register 4 (4 bytes) from DLL: 54060020
- Read register 5 (4 bytes) from DLL: AC060020
- Read register 6 (4 bytes) from DLL: AC060020
- Read register 7 (4 bytes) from DLL: 00000000
- Read register 8 (4 bytes) from DLL: 00000000
- Read register 9 (4 bytes) from DLL: 00000000
- Read register 10 (4 bytes) from DLL: 00000000
- Read register 11 (4 bytes) from DLL: 00000000
- Read register 12 (4 bytes) from DLL: D8050020
- Read register 13 (4 bytes) from DLL: 882D0020
- Read register 14 (4 bytes) from DLL: 2F030020
- Read register 15 (4 bytes) from DLL: 08840000
- Read register 16 (4 bytes) from DLL: 00000061
- Setting breakpoint @ address 0x000132BA, Size = 2, BPHandle = 0x0001
- Starting target CPU...
- // upto here debugging works normal, suddendly is stops and session is paused
- ERROR: Cannot read register 15 (R15) while CPU is running
- ERROR: Could not read FreeRTOS thread count from target.
- Reading all registers
- ERROR: Cannot read register 0 (R0) while CPU is running
- Read register 0 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 1 (R1) while CPU is running
- Read register 1 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 2 (R2) while CPU is running
- Read register 2 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 3 (R3) while CPU is running
- Read register 3 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 4 (R4) while CPU is running
- Read register 4 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 5 (R5) while CPU is running
- Read register 5 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 6 (R6) while CPU is running
- Read register 6 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 7 (R7) while CPU is running
- Read register 7 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 8 (R8) while CPU is running
- Read register 8 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 9 (R9) while CPU is running
- Read register 9 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 10 (R10) while CPU is running
- Read register 10 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 11 (R11) while CPU is running
- Read register 11 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 12 (R12) while CPU is running
- Read register 12 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 13 (R13) while CPU is running
- Read register 13 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 14 (R14) while CPU is running
- Read register 14 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 15 (R15) while CPU is running
- Read register 15 (4 bytes) from DLL: EFBEADDE
- ERROR: Cannot read register 16 (XPSR) while CPU is running
- Read register 16 (4 bytes) from DLL: EFBEADDE
- Removing breakpoint @ address 0x000132BA, Size = 2
- WARNING: Failed to read memory @ address 0xDEADBEEE
- WARNING: Failed to read memory @ address 0xDEADBEEE
- Setting breakpoint @ address 0x000132BA, Size = 2, BPHandle = 0x0002
- Starting target CPU...
- ERROR: CPU is not halted