J-link GDB Server Command

Source: Internet
Author: User
Tags documentation

J-link GDB Server-segger

Hilden, Germany –september 15th, 2011–segger microcontroller today announced the free
Availability of the J-link gdb-server. As the Gnu-tool-chain gains ground in terms of performance and usability, GDB continues to grow in popularity. Per the numerous requests of this expanding community, SEGGER are now offering their professionally developed gdb-server fo R free to all users of the SEGGER J-link product line. The free Gdb-server are now available for download as part of the J-link software and documentation pack v4.35e.

The Gdb-server the GNU community have easier access to the fastest debug emulator on the market. For a unlimited debug experience we also offer Flash breakpoints. This option was included in our non-commercial J-link EDU, which was especially attractive to educational institutions ", say S Dirk Akemann, Partnership Marketing Manager at SEGGER.

Full product specifications is available at:www.segger.com/jlink.html
The J-link-software is available at:www.segger.com/download_jlink.html.

J-link GDB Server

The J-link GDB server is a remote Server for the GDB which allows to use J-link with GDB or any toolchain which uses GDB a s debugging interface, such as Yagarto and Sourcery g++). The GDB and gdb Server communicate via a TCP/IP connection, using the standard GDB remote serial protocol. The GDB supports a standard set of commands like open elf/bin files, reading/writing memory, etc. Beside this, the GDB also supports so called Monitor commands which is passed to the GDB Server and interpreted By it, allowing it-implement j-link specific commands like reading/writing CP15 registers, enabling flash download via J-link, using Unlimited Flash breakpoints, enabling semihosting, etc. In general, the J-link software and documentation package comes with the versions of the GDB SERVER:A GUI based one and A Command-Line version.

Documentation download

GNU Project Debugger (GDB) Overview

The GNU Project Debugger (GDB) is a freely available Debugger, distributed under the terms of the GNU Public License (GPL) . It connects to an emulator via a TCP/IP connection. It can connect to every emulator for which a GDB server software is available. The latest Unix version of the GDB is freely available from the GNU Committee UNDER:HTTP://WWW.GNU.ORG/SOFTWARE/GDB/DOWNL oad/

Supported cores

Currently, the J-link GDB Server can be used with the following CPU cores:

    • Arm7/9/11
    • Cortex-a5/a8/a9
    • Cortex-m0/m0+/m1/m3/m4/m7
    • Cortex-r4
    • Microchip PIC32
    • Renesas RX610, RX621, rx62n, rx62t, RX630, RX631, rx63n
Availability

J-link GDB Server comes with cross-platform support and are available for Windows, Linux and Mac OS x.

Requirements

To use the J-link GDB Server and you have to meet the following requirements:

    • J-link/j-trace Arm/j-trace for Cortex-m
    • Target Hardware with supported CPU
J-link GDB Server (GUI Version)

The J-link GDB Server ' s user interface shows information about the debugging process and allows the user to configure some Settings like Target endianess, if memory reads should is cached in order to improve performance or if a logfile shall is Generated.

J-link GDB Server (Command line Version)

The command line version of J-link GDB Server was a special version of the J-link GDB server which does not provide any GUI interface and have been especially developed for J-link Linux & MAC support. It basically provides the same features as the GUI Version of the J-link GDB Server. The command line version of the J-link GDB Server was also available for Windows and comes with the regular J-link software and documentation package.

Setting up the J-link GDB Server

Typically, the most of the GDB and target setup was done by the GDB via remote commands (monitor) in the . Gdbinit file. The commands used in the . Gdbinit file is performed before the download of the application into the target Memor Y is performed. This allows the user to perform initialization steps which might is necessary to enable the access to the target memory. The . Gdbinit file also allows to use download into flash memory via J-link and Unlimited flash breakpoints. Nevertheless, some options need to being setup when starting the GDB Server (Target endianess, device name for devices which Need a special connect sequence) since this information are needed to guarantee a proper target connection

Protocol Extensions
      • SWO Support
        GDB Server supports transfer of SWO data (terminal output, instrumentation Trace, PC samples, etc.)
J-link GDB Server

The GNU Project Debugger (GDB) is a freely available and open source Debugger. It can be used in command line mode, but is also integrated in many IDEs like Emide
or Eclipse.
J-link GDB Server is a remote Server for GDB making it possible for gdb-connect to and communicate with the target Devi Ce via J-link.

GDB Server and GDB communicate via a TCP/IP connection, using the standard GDB remote protocol. GDB Server receives the GDB commands, does the J-link communication and replies with the answer to GDB.

With J-link GDB Server debugging in ROM and flash of the target device is possible and the Unlimited Flash breakpoints can be used.

It also comes with some functionality not directly implemented in the GDB. These can be accessed via monitor commands, sent directly via GDB, too.

The GNU Project Debugger (GDB) is a freely available Debugger, distributed under the terms of the GPL. The latest Unix version of the GDB is freely available from the
GNU Committee under:http://www.gnu.org/software/gdb/download/
J-link GDB Server is distributed free of charge.

Setting up GDB Server GUI version

The GUI version of GDB Server is part of the Windows J-link software package (JLinkGDBServer.exe).
When starting GDB Server a configuration dialog pops up letting you select the needed configurations to connect to J-link and the target.

All configurations can optionally is given in the command line options.
Note:

To make sure the connection to the target device can is established corretly, the device, as well as the interface and int Erface speed has given on
Start of GDB Server, either via command line options or the configuration dialog. If the target device option (-device) is given, the configuration dialog won't pop up.

GDB Server User Interface

The J-link GDB Server?s user interface shows information about the debugging process and the target and allows to Configur E some settings during execution.

It shows following information:

    • ? The IP address of host running debugger.
    • ? Connection status of J-link.
    • ? Information about the target core.
    • ? Measured target voltage.
    • ? Bytes that has been downloaded.
    • ? Status of Target.
    • ? Log output of the GDB Server (optional, if Show log window is checked).
    • ? Initial and current target interface speed.
    • ? Target endianess.


These configurations can is made from inside GDB Server:

    • ? Localhost only:if checked only connections from 127.0.0.1 is accepted.
    • ? Stay on top
    • ? Show Log window.
    • ? Generate logfile:if checked, a log file with the gdb <-> gdb Server <-> j-link communication would be created.
    • ? Verify Download:if checked, the memory on the target would be verified afterdownload.
    • ? Init regs on Start:if checked, the register values of the target would be set to a reasonable value before on start of GDB Server.
Supported remote (monitor) commands

J-link gdb Server comes with some functionalities which is not part of the standard GDB.

These functions can be called either via a Gdbinit file passed to GDB Server or via monitor commands passed directly to GD B, forwarding them to GDB Server.

To indicate-to-forward the command to GdB Server ' monitor ' have to is prepended to the call.

For example a reset can is triggered in the Gdbinit file with "reset" or via GDB with "monitor reset".

Following remote commands is available:

Following remote commands is deprecated and only available for backward compability:

Note:the remote commands is case-insensitive.

Note:optional parameters is set into square brackets.

Note:the examples is described as follows:

    • Lines starting with ' # ' is comments and not used in Gdb/gdb Server.
    • Lines starting with ' > ' is input commands from the GDB.
    • Lines starting with ' < ' are the output from GDB Server as printed in GDB.

J-link GDB Server Command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.