[ABANDONED] cannot execute this command without a live selected thread

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

  • [ABANDONED] cannot execute this command without a live selected thread

    Hi - I'm developing on a STM Nucleo-F413ZH Nucleo-144 Discovery board using STM/Atollic Eclipse. Because Segger doesn't provide a cable to connect my JLink to the debug header STM puts on these boards (please make and sell these!), I'm using the Segger-provided software in the onboard debugger. On this board (but not other boards I use), when I start the debugger it fails in the startup script, and pauses the debugger someplace related to the previous run. How can I get debug launch to work properly?
    Thanks!
    Best Regards, Dave


    [img]https://community.st.com/sfc/servlet.shepherd/version/renditionDownload?rendition=THUMB720BY480&versionId=0680X000006I912&operationContext=CHATTER&contentId=05T0X00000OPfzb&page=0[/img]
  • Hello Dave,

    Thank you for your inquiry.
    Such an issue is not known to us.
    For reference we tried to reproduce the issues with the same board.
    Attached you can find a successful connect session with J-Link Commander and a reference project for Embedded Studio and Ozone that runs out-of-the-box.
    Could you provide the Commander output of a connect session?
    wiki.segger.com/J-Link_cannot_…ty_using_J-Link_Commander
    Does the reference project work on your target hardware using Embedded Studio or Ozone?


    DaveN wrote:

    Because Segger doesn't provide a cable to connect my JLink to the debug header STM puts on these boards (please make and sell these!)
    The demand is simply to low as SWD is connected on Nucleo boards on the arduino headers which can be connected to J-Link via jumper wires.

    Best regards,
    Nino
    Images
    • Capture.PNG

      34.13 kB, 677×630, viewed 515 times
    Files
    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.
  • Apologies Nino if I wasn't clear. Connection is AOK, but the error happens on starting debug.
    I've attached console output below in case that's helpful.
    Thanks again for the help,
    Best Regards, Dave

    Source Code

    1. SEGGER J-Link GDB Server V6.34e Command Line Version
    2. JLinkARM.dll V6.34e (DLL compiled Aug 30 2018 17:36:45)
    3. Command line: -port 2331 -s -CPU Cortex-M -device STM32F413ZH -endian little -speed 3200 -if swd -vd -rtos C:\Program Files (x86)\Atollic\TrueSTUDIO for STM32 9.1.0\Servers\J-Link_gdbserver\GDBServer\RTOSPlugin_FreeRTOS.dll -swoport 2332
    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: off
    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: STM32F413ZH
    22. Target interface: SWD
    23. Target interface speed: 3200kHz
    24. Target endian: little
    25. Connecting to J-Link...
    26. J-Link is connected.
    27. Firmware: J-Link STLink V21 compiled Jun 26 2017 10:35:16
    28. Hardware: V1.00
    29. S/N: 778227718
    30. Checking target voltage...
    31. Target voltage: 3.30 V
    32. Listening on TCP/IP port 2331
    33. Connecting to target...Connected to target
    34. Waiting for GDB connection...Connected to 127.0.0.1
    35. Reading all registers
    36. Read 4 bytes @ address 0x08003080 (Data = 0xD9FB2B01)
    37. Read 4 bytes @ address 0x08002B60 (Data = 0x681B4B0B)
    38. Loading RTOS plugin: C:\Program Files (x86)\Atollic\TrueSTUDIO for STM32 9.1.0\Servers\J-Link_gdbserver\GDBServer\RTOSPlugin_FreeRTOS.dll...
    39. RTOS plugin (API v1.0) loaded successfully
    40. RTOS plugin initialized successfully.
    41. Received symbol: pxCurrentTCB (0x20003C54)
    42. Received symbol: pxReadyTasksLists (0x20003C60)
    43. Received symbol: xDelayedTaskList1 (0x20003D00)
    44. Received symbol: xDelayedTaskList2 (0x20003D14)
    45. Received symbol: pxDelayedTaskList (0x20003C58)
    46. Received symbol: pxOverflowDelayedTaskList (0x20003C5C)
    47. Received symbol: xPendingReadyList (0x20003D34)
    48. Received symbol: xTasksWaitingTermination (0x00000000)
    49. Received symbol: xSuspendedTaskList (0x20003D4C)
    50. Received symbol: uxCurrentNumberOfTasks (0x20003CEC)
    51. Received symbol: uxTopUsedPriority (0x00000000)
    52. Received symbol: uxTopReadyPriority (0x20003CFC)
    53. Received symbol: vPortEnableVFP (0x08002BB4)
    54. Received symbol: FreeRTOSDebugConfig (0x00000000)
    55. All mandatory symbols successfully loaded.
    56. Connected to 127.0.0.1
    57. Reading all registers
    58. Read 4 bytes @ address 0x08003080 (Data = 0xD9FB2B01)
    59. Read 4 bytes @ address 0x08002B60 (Data = 0x681B4B0B)
    60. Received symbol: pxCurrentTCB (0x20003C54)
    61. Received symbol: pxReadyTasksLists (0x20003C60)
    62. Received symbol: xDelayedTaskList1 (0x20003D00)
    63. Received symbol: xDelayedTaskList2 (0x20003D14)
    64. Received symbol: pxDelayedTaskList (0x20003C58)
    65. Received symbol: pxOverflowDelayedTaskList (0x20003C5C)
    66. Received symbol: xPendingReadyList (0x20003D34)
    67. Received symbol: xTasksWaitingTermination (0x00000000)
    68. Received symbol: xSuspendedTaskList (0x20003D4C)
    69. Received symbol: uxCurrentNumberOfTasks (0x20003CEC)
    70. Received symbol: uxTopUsedPriority (0x00000000)
    71. Received symbol: uxTopReadyPriority (0x20003CFC)
    72. Received symbol: vPortEnableVFP (0x08002BB4)
    73. Received symbol: FreeRTOSDebugConfig (0x00000000)
    74. All mandatory symbols successfully loaded.
    75. Received monitor command: WriteDP 0x2 0x000000F0
    76. O.K.
    77. Received monitor command: ReadAP 0x2
    78. O.K.:0xE00FF003
    79. Reading 32 bytes @ address 0xE00FFFD0
    80. Reading all registers
    81. Read 2 bytes @ address 0x08003E44 (Data = 0xB508)
    82. Received monitor command: speed 30
    83. Target interface speed set to 30 kHz
    84. Received monitor command: endian little
    85. Target endianess set to "little endian"
    86. Received monitor command: reset
    87. Resetting target
    88. Received monitor command: speed auto
    89. Select auto target interface speed (2000 kHz)
    90. Received monitor command: flash download = 1
    91. Flash download enabled
    92. Downloading 472 bytes @ address 0x08000000 - Verified OK
    93. Downloading 992 bytes @ address 0x080001E0 - Verified OK
    94. Downloading 976 bytes @ address 0x080005C0 - Verified OK
    95. Downloading 976 bytes @ address 0x08000990 - Verified OK
    96. Downloading 992 bytes @ address 0x08000D60 - Verified OK
    97. Downloading 960 bytes @ address 0x08001140 - Verified OK
    98. Downloading 992 bytes @ address 0x08001500 - Verified OK
    99. Downloading 992 bytes @ address 0x080018E0 - Verified OK
    100. Downloading 992 bytes @ address 0x08001CC0 - Verified OK
    101. Downloading 960 bytes @ address 0x080020A0 - Verified OK
    102. Downloading 976 bytes @ address 0x08002460 - Verified OK
    103. Downloading 976 bytes @ address 0x08002830 - Verified OK
    104. Downloading 992 bytes @ address 0x08002C00 - Verified OK
    105. Downloading 992 bytes @ address 0x08002FE0 - Verified OK
    106. Downloading 976 bytes @ address 0x080033C0 - Verified OK
    107. Downloading 976 bytes @ address 0x08003790 - Verified OK
    108. Downloading 976 bytes @ address 0x08003B60 - Verified OK
    109. Downloading 976 bytes @ address 0x08003F30 - Verified OK
    110. Downloading 960 bytes @ address 0x08004300 - Verified OK
    111. Downloading 404 bytes @ address 0x080046C0 - Verified OK
    112. Downloading 592 bytes @ address 0x08004854 - Verified OK
    113. Downloading 8 bytes @ address 0x08004AA4 - Verified OK
    114. Downloading 4 bytes @ address 0x08004AAC - Verified OK
    115. Downloading 4 bytes @ address 0x08004AB0 - Verified OK
    116. Downloading 24 bytes @ address 0x08004AB4 - Verified OK
    117. Writing register (PC = 0x 8004790)
    118. Read 2 bytes @ address 0x08003E44 (Data = 0xB508)
    119. Received monitor command: reset
    120. Resetting target
    121. Read 2 bytes @ address 0x08003E44 (Data = 0xB508)
    122. Received monitor command: sleep 500 # Erich's suggestion - Does not help...
    123. Sleep 500ms
    124. Read 4 bytes @ address 0x08003080 (Data = 0xD9FB2B01)
    125. Read 4 bytes @ address 0x08002B60 (Data = 0x681B4B0B)
    126. Read 4 bytes @ address 0x08003080 (Data = 0xD9FB2B01)
    127. Read 4 bytes @ address 0x08002B60 (Data = 0x681B4B0B)
    128. Read 4 bytes @ address 0x08003080 (Data = 0xD9FB2B01)
    129. Read 4 bytes @ address 0x08002B60 (Data = 0x681B4B0B)
    130. Read 4 bytes @ address 0x08002B60 (Data = 0x681B4B0B)
    131. Read 4 bytes @ address 0x20004888 (Data = 0x0000F011)
    Display All