OR   

Home / Learning Center / Development & Debug / GDB Server

PEmicro GDB Server Command List

Commands supported by PEmicro's GDB Server and their effects.

The following is a list of command line parameters for the PEmicro GDB Server.


-attachonly : Do not reset the device on connection (default: OFF)

-alternativealgorithmpath= : Provide the to an alternate programming algorithm

-configfile=config.ini : Specify an ini file to read settings from

-corenum : Sets current device core (default: 0)

-currentalgorithmindex= : Selects the active flash programming algorithm by index (default: 0)

-cyclonecurrentvoltage= : Sets the Cyclone/Tracelink target power voltage/current DAC setting (0 to 255)

-cyclonepowerdowndelay= : Sets the Cyclone/Tracelink target power-down delay in milliseconds

-cyclonepoweroffonexit= : If n=1, the Multilink Universal FX and Cyclone will keep power on after the debug session has ended

-cyclonepowerupdelay= : Sets the Cyclone/Tracelink target power-up delay in milliseconds

/crp : Challenge Response System Activated

-device= : Specify the target name being debugged

-devicelist : Displays valid device name list and terminates

-displayerrormessage= : Write GDB Server termination error message n

/eoe : Exit on error

-extrauserscriptfile= : Runs an extra PEmicro macro script; can be repeated

-firmwareupdate=auto : Set firmware update mode: auto, force

-flashobjectfile= : Specifies the to the object file for FLASH programming

-forcemasserase : Forces a mass erase upon connection. May be used to recover some unresponsive devices.

-gdbmiport= : Enables GDB/MI interface, using port number n

-getportlist : Displays port list (equivalent to -showhardware)

-interface= : Specify PEmicro hardware : USBMULTILINK, CYCLONE, or OPENSDA

-javalinkport= : Replaces the old CORBA identifier ini values for JavaLink/Eclipse communication.

-jtagtapnum= : Sets the selected JTAG TAP number for daisy-chain setups

-jtagnumbitspreir= : Sets the number of JTAG pre-IR bits for daisy-chain setups

-kernel=OS : Enables kernel aware debugging for the specified OS (E.g., freertos). '-kernel=none' will disable kernel awareness.

-listcores= : Displays the cores of a given device and terminates

-multilinkpowerdowndelay= : Sets the Multilink target power-down delay in milliseconds

-multilinkpowerupdelay= : Sets the Multilink target power-up delay in milliseconds

-osstackstructure= : Specify a particular stack structure to use for each core. Format is [corenumber]:[stack structure]. For example: 1:freertos.v6m.v7m.no.vfp,2:freertos.v6m.v7m.no.vfp. Only used for operating system awareness.

-outputdebugfile : Generates a debug .out file in the PEmicro plugin directory

-outputdebugfiletimed : Generates a timed debug .out file in the PEmicro plugin directory

-port= : Specify the debug hardware by USB number (e.g. USB1), serial number, name, or IP address. For USB connections, "USB1" is the default. For Ethernet connections, the IP address should be specified.

-programmingtype= : Specifies FLASH programming steps. 0=erase/program/verify, 1=program/verify, 2=verify, 3=erase.

-quitafterprogramming : GDB Server will automatically quit after FLASH programming is complete

-resetdelay= : Delay n milliseconds after reset

-runafterprogramming : GDB Server will issue a resume after FLASH programming is complete

-serverip= : Specifies the server TCP/IP address

-serverport= : Specifies the server TCP/IP port number (default: 7224)

-showflashstatus : Show flash programming status dialog during programming

-showhardware : Displays list of autodetected PEmicro debug hardware/ports

-singlesession : GDB Server will automatically close after GDB client disconnects

-specifyip= : Tells gdbserver to use a specific Ethernet IP address for Cyclone/Tracelink

-specifynetworkcard= : Specifies the IP address of the host network card used for network discovery

-speed= : Specifies debug shift frequency in KHz (default is 5000 KHz)

-startprogrammer= : Launches Interactive PROG using port number n

-startserver : Start the server listening for a connection from GDB

-streamingport= : Enables Streaming Port, using port number n

-swobaudrateswitchmultilinkvalue= : Restores the saved Multilink-side SWO baud switch value

-swobaudrateswitchtargetvalue= : Restores the saved target-side SWO baud switch value

-swostats= : Sets the base directory for SWO stats output files

-testhardwarereboot=numtimes,timeout : No public documentation available

-traceport : No public documentation available

-uncensorpassword= : Attempts to uncensor processor with password n (hexadecimal)

-use_cyclone_relays= : If n=1, the Multilink Universal FX and Cyclone will provide power to the target (defaults to 0)

-useexternalip : Server TCP/IP IP address is the computer's IP address (instead of localhost)

-usejtag : Sets the communication style to JTAG. (default: OFF)

-verbose : Displays messages of the debug and communications session


How to Get Started

1. If you have an Eclipse-based IDE such as MCUXpresso, S32 Design Studio, etc., install the PEmicro plugin containing the GDB Server using the following guide.

https://www.pemicro.com/learningcenter/contents.cfm?content_id=73

2. Create a Debug Configuration within your project.

3. Select the PEmicro Debugger tab. The server commands can be entered into "Server Parameters" under the "GDB Server Settings" section. Each command should be preceded by the "-" and separated by a space.

4. If you have a non-Eclipse-based IDE such as Visual Studio Code, you cannot install the PEmicro plugin directly but you can configure the IDE to call the PEmicro GDB Server. You can download the PEmicro plugin from it's product page or using the following direct link: 

https://www.pemicro.com/downloads/download_file.cfm?download_id=412

 5. Extract the GDB Server from the plugin using your preferred compression utility such as WinZip or 7-Zip. The executable is located under the path  *\com.pemicro.debug.gdbjtag.pne.updatesite-6.1.8-SNAPSHOT\plugins\com.pemicro.debug.gdbjtag.pne_6.1.8.202603121731\win32\pegdbserver_console.exe