GDB Server Hang on OSX when using -select

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

  • GDB Server Hang on OSX when using -select

    Hi,

    I have two JLinks and I was hoping to use -select between the two based on serial number when they are both plugged in.

    The server fails when I use the option and connects properly when I don't.

    I'm running OSX 10.9.2. Other version numbers are included in the output below.

    Thanks for reading,

    Kenny

    Source Code

    1. $ alias gds
    2. alias gds='JLinkGDBServer -device STM32F407VG -if swd -speed 6000 -select usb=156006189'
    3. $ gds
    4. SEGGER J-Link GDB Server V4.84f Command Line Version
    5. JLinkARM.dll V4.84f (DLL compiled May 9 2014 20:17:59)
    6. -----GDB Server start settings-----
    7. GDBInit file: none
    8. GDB Server Listening port: 2331
    9. SWO raw output listening port: 2332
    10. Terminal I/O port: 2333
    11. Accept remote connection: yes
    12. Generate logfile: off
    13. Verify download: off
    14. Init regs on start: on
    15. Silent mode: off
    16. Single run mode: off
    17. Target connection timeout: 5 sec.
    18. ------J-Link related settings------
    19. J-Link Host interface: USB
    20. J-Link script: none
    21. J-Link settings file: none
    22. ------Target related settings------
    23. Target device: STM32F407VG
    24. Target interface: SWD
    25. Target interface speed: 6000kHz
    26. Target endian: little
    27. Connecting to J-Link...
    28. Connecting to J-Link failed. Connected correctly?
    29. GDBServer will be closed...
    30. Shutting down...
    Display All


    Removing the options works:

    Source Code

    1. $ gds
    2. SEGGER J-Link GDB Server V4.84f Command Line Version
    3. JLinkARM.dll V4.84f (DLL compiled May 9 2014 20:17:59)
    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: yes
    10. Generate logfile: off
    11. Verify download: off
    12. Init regs on start: on
    13. Silent mode: off
    14. Single run mode: off
    15. Target connection timeout: 5 sec.
    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: STM32F407VG
    22. Target interface: SWD
    23. Target interface speed: 0kHz
    24. Target endian: little
    25. Connecting to J-Link...
    26. J-Link is connected.
    27. Firmware: J-Link ARM V6 compiled Jun 20 2012 19:43:26
    28. Hardware: V6.00
    29. S/N: 156006189
    30. OEM: IAR
    31. Checking target voltage...
    32. Target voltage: 2.96 V
    33. Listening on TCP/IP port 2331
    34. Connecting to target...WARNING: T-bit of XPSR is 0 but should be 1. Changed to 1.
    35. Connected to target
    36. Waiting for GDB connection...
    Display All
  • Hi,

    Is your J-Link configured properly to be identified by the serial number?
    You are using a *very* old hardware version of the J-Link which has not been shipped with this setting from factory.

    Could you please do me a favor and start J-Link Commander and type:
    J-Link>rconf

    and post the output?


    - Alex
    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.
  • Hi Alex,

    I happened to be on Windows when I issued rconf below. I assume this doesn't matter.

    I have been considering upgrading that hardware but it's actually not all that clear to me what benefits a new device has to offer. It'll probably cost me $300-400USD to upgrade which is fine if there is reasonable value.

    Sorry: I tried to improve the formatting below and failed.

    Thanks,

    Kenny

    Source Code

    1. J-Link>rconf
    2. 00000000 = 00 01 FF FF 01 00 00 00 FF FF FF FF FF FF FF FF
    3. 00000010 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    4. 00000020 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    5. 00000030 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    6. 00000040 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    7. 00000050 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    8. 00000060 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    9. 00000070 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    10. 00000080 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    11. 00000090 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    12. 000000A0 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    13. 000000B0 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    14. 000000C0 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    15. 000000D0 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    16. 000000E0 = FF FF 00 00 FF FF 01 00 00 00 FF FF FF FF FF FF
    17. 000000F0 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    Display All

    The post was edited 2 times, last by Kenny ().

  • Hi,

    Sorry: I tried to improve the formatting below and failed.

    I fixed this for you...

    The configuration looks fine so far.
    Unfortunately, the J-Link model you are using is out of support, so I cannot assign a high priority to this.
    Anyhow, I have added this to the list of investigations to be done within the next weeks in order to check if we can reproduce this problem.


    - Alex
    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.