PEmicro logo
Cart New Account Login

Logo image
HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
search inside all forums
GDB Server: "Session Ended" on remote connection?
s f. Jan 9, 2014 at 10:31 AM (10:31 hours)
Staff: Takao Y.

  • Hello!
    I'm having some problem with the GDB server (Basic License).
    I manage to successfully start the GDB server (running on dedicated windows XP box) and connect to target device (KL10FX512).
    When I try to connect with the GDB client (command line version running on a separate Debian machine) the server always ends the session immediately.

    The output in the server's log view:
    Connecting to Target...
    windows NT detected
    TRACELINK detected - Flash version 1.300
    Device is K10FX512
    16:12:26 Server Running on
    Session Started
    Session Ended

    ... and from the GDB client output (verbose output enabled):
    Reading symbols from /home/usrname/ws/proj/build/myImg.elf...done.
    Remote debugging using
    Remote connection closed

    Unfortunately, this is not much information to troubleshoot with, so my questions are:
    - Is it possible to obtain more detailed info from the P&E GDB Server on why the session ended?

    - Is there any commands that can be sent to the GDB server with the 'monitor' prefix from the GDB client?
    Example - how do I send a reset command?

    - Have I missed something obvious in the setup?


  • S Frank,

    We are looking into your report now.


  • We are bringing up a commandline Debian GDB client to test against. Let me know if you have any more details about your client. Here is the list of commands we currently support via the Monitor command:

    _reset ; Reset the MCU
    _r0 ... _r15 ; Change CPU register Value (param : longvalue)
    _fill.w ;Fill memory words (params : startaddr endaddr wordvalue)
    _fill.l ;Fill memory longwords (params : startaddr endaddr longwordvalue)
    _pc ;Set program counter (param: longvalue)

    Otherwise we support the GDB API which allows us to debug, modify registersm program flash, load to ram, etc.

    We will be updating the documentation and commandset in the next few days. Let me know if there is some specific functionality you are interested in via the monitor command.

  • Greetings,

    Has this issue been resolved? Please check out our website on the GDB server and grab the latest version that we have. We have updated it in mid-February:

    Takao Yamada

  • hello, I am having the same problem with my copy of the P&E GDB Server for Multilink. 

    P&E log window (running in Windows Parallel virtual machine)

    12:34:00 PM Server Stopped...
    12:34:03 PM Server running on
    Session Started
    Session Ended

    GDB (running on Mac OSX Yosemiti):
    (gdb) target remote
    Remote debugging using
    Remote communication error. Target disconnected.: Connection reset by peer.

    1) The Eclipse plug-in (in CodeWarrior) works fine so I don't think it's a problem with my Multi-link USB.

    2) I had GDB and the server working a week ago, it just seems to have stopped working.

    3) I downloaded the current version (10.28859.1093492) but it doesn't seem to make a difference.

    Please help as I'm stuck without this!

  • Greetings,

    Sorry for the delayed response. Were you able to resolve this issue? Something that used to work is probably an issue with settings that you may have changed.

    You should give me more details like what other settings you are using. Is your debug shift frequency too high? Did you select SWD or are you using JTAG?

    Takao Yamada

Add comment

   Want to comment? Please login or create a new PEmicro account.

© 2021 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement