[ABANDONED] JLink debugging session stops in Eclipse with 0xdeadbeee

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [ABANDONED] JLink debugging session stops in Eclipse with 0xdeadbeee

    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

    Source Code

    1. last build T-AP-TEST [GDB SEGGER J-Link Debugging]
    2. last_build.elf
    3. Thread #2 (Suspended : Signal : SIGTRAP:Trace/breakpoint trap)
    4. 0xdeadbeee
    5. JLinkGDBServerCLExe
    6. arm-none-eabi-gdb
    7. Semihosting and SWV


    Shell-Script

    1. SEGGER J-Link GDB Server V6.88b Command Line Version
    2. JLinkARM.dll V6.88b (DLL compiled Nov 27 2020 15:44:17)
    3. 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
    4. -----GDB Server start settings-----
    5. GDBInit file: none
    6. GDB Server Listening port: 2331
    7. SWO raw output listening port: 2332
    8. Terminal I/O port: 2333
    9. Accept remote connection: localhost only
    10. Generate logfile: off
    11. Verify download: on
    12. Init regs on start: on
    13. Silent mode: off
    14. Single run mode: on
    15. Target connection timeout: 0 ms
    16. ------J-Link related settings------
    17. J-Link Host interface: USB
    18. J-Link script: none
    19. J-Link settings file: none
    20. ------Target related settings------
    21. Target device: ATSAMD21G18
    22. Target interface: SWD
    23. Target interface speed: auto
    24. Target endian: little
    25. Connecting to J-Link...
    26. J-Link is connected.
    27. Firmware: J-Link V10 compiled Nov 12 2020 10:06:35
    28. Hardware: V10.10
    29. S/N: 600105995
    30. Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    31. Checking target voltage...
    32. Target voltage: 3.11 V
    33. Listening on TCP/IP port 2331
    34. Connecting to target...
    35. Connected to target
    36. Waiting for GDB connection...Connected to 127.0.0.1
    37. Reading all registers
    38. Read 4 bytes @ address 0x00000000 (Data = 0x20002D88)
    39. Read 2 bytes @ address 0x00000000 (Data = 0x2D88)
    40. Received monitor command: speed 1000
    41. Target interface speed set to 1000 kHz
    42. Received monitor command: clrbp
    43. Received monitor command: reset
    44. Resetting target
    45. Received monitor command: halt
    46. Halting target CPU...
    47. ...Target halted (PC = 0x00008408)
    48. Received monitor command: regs
    49. R0 = 00000000, R1 = 00002FDF, R2 = 42003000, R3 = 00000001
    50. R4 = 20002894, R5 = 00000181, R6 = 20002884, R7 = 00000000
    51. R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
    52. R12= 00000000, R13= 20002D88, MSP= 20002D88, PSP= 20001740
    53. R14(LR) = 0001FC3F, R15(PC) = 00008408
    54. XPSR 21000000, APSR 20000000, EPSR 01000000, IPSR 00000000
    55. CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
    56. Reading all registers
    57. Received monitor command: speed auto
    58. Select auto target interface speed (2000 kHz)
    59. Received monitor command: flash breakpoints 1
    60. Flash breakpoints enabled
    61. Received monitor command: semihosting enable
    62. Semi-hosting enabled (Handle on BKPT)
    63. Received monitor command: semihosting IOClient 1
    64. Semihosting I/O set to TELNET Client
    65. Received monitor command: SWO DisableTarget 0xFFFFFFFF
    66. SWO disabled successfully.
    67. Received monitor command: SWO EnableTarget 0 0 0x1 0
    68. SWO enabled successfully.
    69. Loading RTOS plugin: /Applications/SEGGER/JLink_V688b/GDBServer/RTOSPlugin_FreeRTOS...
    70. Error: dlopen(/Applications/SEGGER/JLink_V688b/GDBServer/RTOSPlugin_FreeRTOS, 1): image not found
    71. Loading RTOS plugin: /Applications/SEGGER/JLink_V688b/GDBServer/RTOSPlugin_FreeRTOS.dylib...
    72. RTOS plugin (API v1.0) loaded successfully
    73. RTOS plugin: Loaded
    74. ...
    75. Received symbol: FreeRTOSDebugConfig (0x00000000)
    76. All mandatory symbols successfully loaded.
    77. Read 4 bytes @ address 0x00008408 (Data = 0x49354834)
    78. All mandatory symbols successfully loaded.
    79. Downloading 15984 bytes @ address 0x00000000 - Verified OK
    80. Downloading 15872 bytes @ address 0x00003E70 - Verified OK
    81. Downloading 15808 bytes @ address 0x00007C70 - Verified OK
    82. Downloading 16016 bytes @ address 0x0000BA30 - Verified OK
    83. Downloading 16096 bytes @ address 0x0000F8C0 - Verified OK
    84. Downloading 15936 bytes @ address 0x000137A0 - Verified OK
    85. Downloading 15952 bytes @ address 0x000175E0 - Verified OK
    86. Downloading 15968 bytes @ address 0x0001B430 - Verified OK
    87. Downloading 16000 bytes @ address 0x0001F290 - Verified OK
    88. Downloading 15840 bytes @ address 0x00023110 - Verified OK
    89. Downloading 16064 bytes @ address 0x00026EF0 - Verified OK
    90. Downloading 16288 bytes @ address 0x0002ADB0 - Verified OK
    91. Downloading 16336 bytes @ address 0x0002ED50 - Verified OK
    92. Downloading 2916 bytes @ address 0x00032D20 - Verified OK
    93. Downloading 8 bytes @ address 0x00033884 - Verified OK
    94. Downloading 1344 bytes @ address 0x0003388C - Verified OK
    95. Reading all registers
    96. Comparing flash [....................] Done.
    97. Read register 0 (4 bytes) from DLL: 00000000
    98. Read register 1 (4 bytes) from DLL: DF2F0000
    99. Read register 2 (4 bytes) from DLL: 00300042
    100. Read register 3 (4 bytes) from DLL: 01000000
    101. Read register 4 (4 bytes) from DLL: 94280020
    102. Read register 5 (4 bytes) from DLL: 81010000
    103. Read register 6 (4 bytes) from DLL: 84280020
    104. Read register 7 (4 bytes) from DLL: 00000000
    105. Read register 8 (4 bytes) from DLL: 00000000
    106. Read register 9 (4 bytes) from DLL: 00000000
    107. Read register 10 (4 bytes) from DLL: 00000000
    108. Read register 11 (4 bytes) from DLL: 00000000
    109. Read register 12 (4 bytes) from DLL: 00000000
    110. Read register 13 (4 bytes) from DLL: 882D0020
    111. Read register 14 (4 bytes) from DLL: 3FFC0100
    112. Read register 15 (4 bytes) from DLL: 08840000
    113. Read register 16 (4 bytes) from DLL: 00000021
    114. Read 4 bytes @ address 0x00008408 (Data = 0x49354834)
    115. Read 4 bytes @ address 0x00008408 (Data = 0x49354834)
    116. Reading 64 bytes @ address 0x00013280
    117. Read 4 bytes @ address 0x000132D0 (Data = 0x0002F074)
    118. Read 2 bytes @ address 0x000132BA (Data = 0x4805)
    119. Received monitor command: clrbp
    120. Received monitor command: reset
    121. Resetting target
    122. Received monitor command: halt
    123. Halting target CPU...
    124. ...Target halted (PC = 0x00008408)
    125. Received monitor command: regs
    126. R0 = 40001000, R1 = 00000000, R2 = 00000000, R3 = 00000000
    127. R4 = 20000654, R5 = 200006AC, R6 = 200006AC, R7 = 00000000
    128. R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
    129. R12= 200005D8, R13= 20002D88, MSP= 20002D88, PSP= 20001740
    130. R14(LR) = 2000032F, R15(PC) = 00008408
    131. XPSR 61000000, APSR 60000000, EPSR 01000000, IPSR 00000000
    132. CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
    133. Reading all registers
    134. Read register 0 (4 bytes) from DLL: 00100040
    135. Read register 1 (4 bytes) from DLL: 00000000
    136. Read register 2 (4 bytes) from DLL: 00000000
    137. Read register 3 (4 bytes) from DLL: 00000000
    138. Read register 4 (4 bytes) from DLL: 54060020
    139. Read register 5 (4 bytes) from DLL: AC060020
    140. Read register 6 (4 bytes) from DLL: AC060020
    141. Read register 7 (4 bytes) from DLL: 00000000
    142. Read register 8 (4 bytes) from DLL: 00000000
    143. Read register 9 (4 bytes) from DLL: 00000000
    144. Read register 10 (4 bytes) from DLL: 00000000
    145. Read register 11 (4 bytes) from DLL: 00000000
    146. Read register 12 (4 bytes) from DLL: D8050020
    147. Read register 13 (4 bytes) from DLL: 882D0020
    148. Read register 14 (4 bytes) from DLL: 2F030020
    149. Read register 15 (4 bytes) from DLL: 08840000
    150. Read register 16 (4 bytes) from DLL: 00000061
    151. Setting breakpoint @ address 0x000132BA, Size = 2, BPHandle = 0x0001
    152. Starting target CPU...
    153. // upto here debugging works normal, suddendly is stops and session is paused
    154. ERROR: Cannot read register 15 (R15) while CPU is running
    155. ERROR: Could not read FreeRTOS thread count from target.
    156. Reading all registers
    157. ERROR: Cannot read register 0 (R0) while CPU is running
    158. Read register 0 (4 bytes) from DLL: EFBEADDE
    159. ERROR: Cannot read register 1 (R1) while CPU is running
    160. Read register 1 (4 bytes) from DLL: EFBEADDE
    161. ERROR: Cannot read register 2 (R2) while CPU is running
    162. Read register 2 (4 bytes) from DLL: EFBEADDE
    163. ERROR: Cannot read register 3 (R3) while CPU is running
    164. Read register 3 (4 bytes) from DLL: EFBEADDE
    165. ERROR: Cannot read register 4 (R4) while CPU is running
    166. Read register 4 (4 bytes) from DLL: EFBEADDE
    167. ERROR: Cannot read register 5 (R5) while CPU is running
    168. Read register 5 (4 bytes) from DLL: EFBEADDE
    169. ERROR: Cannot read register 6 (R6) while CPU is running
    170. Read register 6 (4 bytes) from DLL: EFBEADDE
    171. ERROR: Cannot read register 7 (R7) while CPU is running
    172. Read register 7 (4 bytes) from DLL: EFBEADDE
    173. ERROR: Cannot read register 8 (R8) while CPU is running
    174. Read register 8 (4 bytes) from DLL: EFBEADDE
    175. ERROR: Cannot read register 9 (R9) while CPU is running
    176. Read register 9 (4 bytes) from DLL: EFBEADDE
    177. ERROR: Cannot read register 10 (R10) while CPU is running
    178. Read register 10 (4 bytes) from DLL: EFBEADDE
    179. ERROR: Cannot read register 11 (R11) while CPU is running
    180. Read register 11 (4 bytes) from DLL: EFBEADDE
    181. ERROR: Cannot read register 12 (R12) while CPU is running
    182. Read register 12 (4 bytes) from DLL: EFBEADDE
    183. ERROR: Cannot read register 13 (R13) while CPU is running
    184. Read register 13 (4 bytes) from DLL: EFBEADDE
    185. ERROR: Cannot read register 14 (R14) while CPU is running
    186. Read register 14 (4 bytes) from DLL: EFBEADDE
    187. ERROR: Cannot read register 15 (R15) while CPU is running
    188. Read register 15 (4 bytes) from DLL: EFBEADDE
    189. ERROR: Cannot read register 16 (XPSR) while CPU is running
    190. Read register 16 (4 bytes) from DLL: EFBEADDE
    191. Removing breakpoint @ address 0x000132BA, Size = 2
    192. WARNING: Failed to read memory @ address 0xDEADBEEE
    193. WARNING: Failed to read memory @ address 0xDEADBEEE
    194. Setting breakpoint @ address 0x000132BA, Size = 2, BPHandle = 0x0002
    195. Starting target CPU...
    196. ERROR: CPU is not halted
    Display All
  • Hi SPR,
    Thank you for your inquiry and sorry for the delay in response.

    Are you working on an evaluation board or custom hardware?
    If eval board: Which one? If custom HW:
    Does this issue also occur on an evaluation board?
    Do you enable any Low Power Modes, turn of the debug clocks or similar?
    Does this Problem also appear when using a project with a simple do { Cnt++ } while (1); loop?
    If not, the issue is most likely connected to the application.

    Best regards,
    Fabian
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.