[ABANDONED] GDB connection closed right after connecting

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

  • [ABANDONED] GDB connection closed right after connecting

    Hello there,
    Recently I updated J-Link software. Since then, I am experiencing the following problem: After I start the debug session, it detrimentally ends after the connection is established. here is the output:

    Source Code

    1. SEGGER J-Link GDB Server V6.34 Command Line Version
    2. JLinkARM.dll V6.34 (DLL compiled Aug 7 2018 15:52:23)
    3. Command line: -port 2331 -s -CPU Cortex-M -device STM32L452VE -endian little -speed 1000 -if swd -vd
    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: STM32L452VE
    22. Target interface: SWD
    23. Target interface speed: 1000kHz
    24. Target endian: little
    25. Connecting to J-Link...
    26. J-Link is connected.
    27. Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
    28. Hardware: V8.00
    29. S/N: XXXXXXXX
    31. Feature(s): FlashBP, GDB
    32. Checking target voltage...
    33. Target voltage: 5.05 V (Note: connected through galvanic isolator)
    34. Listening on TCP/IP port 2331
    35. Connecting to target...Connected to target
    36. Waiting for GDB connection...Connected to
    37. GDB closed TCP/IP connection
    38. Restoring target state and closing J-Link connection...
    39. Shutting down...
    Display All
    I would appreciate all help regarding this.
    PS: J-Flash Lite utility works correctly, I can program the target.
  • Hello,

    Thank you for your inquiry.
    For verification could you provide the S/N of the J-Link you are using? Is it the one you registered with?
    Generally the J-Link V8 you are using does not support Cortex-M4 targets: wiki.segger.com/Software_and_Hardware_Features_Overview
    That it works in J-Flash is pure chance.
    Unfortunately the J-Link V8 is out of support and maintenance so we recommend getting a new J-Link V10 model which includes Cortex-M4 debugging and many more new features.

    Best regards,
    Please read the forum rules before posting: Forum Rules

    Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
    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.