ON Semiconductor IDE

From SEGGER Wiki
Revision as of 14:57, 9 March 2021 by Sebastian (talk | contribs) (Created page with " '''On Semiconductor IDE''' is a commercial IDE based on Eclipse that comes with J-Link and J-Trace support. In order to use J-Link with On Semiconductor IDE, it is usually...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


On Semiconductor IDE is a commercial IDE based on Eclipse that comes with J-Link and J-Trace support. In order to use J-Link with On Semiconductor IDE, it is usually not necessary to separately install the J-Link software and documentation package since On Semiconductor IDE already comes with a option to install the needed J-Link software, like J-Link GDB Server that is automatically started when starting the debug session. In the following, a short explanation on how to create a simple project for an eval board with On Semiconductor IDE is given:

Creating a simple Project

Used components

IDE Emulator J-Link SW Version Evalboard
On Semiconductor IDE V3.4.0.48 J-LInk V6.98 AXMOF343-256

Getting started

Creating a J-Link Debug Configuration

  • Open Run -> Debug Configurations...
  • Double click GDB SEGGER J-Link Debugging
  • OnSemiconducorIDE CreateJLinkDebugConf.png
  • On Semiconductor IDE will create a New Debug Configuration and set setting to defaults based on the workspace and project
  • OnSemiconducorIDE JLinkDebugConfDefault.png


Configuring the target interface type

  • Open Run -> Debug Configurations...
  • On the left side, select the used Debug configuration in the group GDB SEGGER J-Link Debugging
  • Switch to the tab Debugger
  • The target interface can be selected in the area marked below
  • OnSemiconducorIDE JLinkDebugConf Debugger TargetInterface.png


Configuring the target interface speed

  1. Initial interface speed before/during connect
    • Open Run -> Debug Configurations...
    • On the left side, select the used Debug configuration in the group GDB SEGGER J-Link Debugging
    • Switch to the tab Debugger
    • The interface speed before connect can be specified in the field Initial speed marked below
    • OnSemiconducorIDE JLinkDebugConf Debugger TargetInterfaceSpeed Initial.png
  2. Interface speed after connect to target before/during reset & halt
    • Open Run -> Debug Configurations...
    • On the left side, select the used Debug configuration in the group GDB SEGGER J-Link Debugging
    • Switch to the tab Startup
    • The interface speed after connect to target before/during reset & halt can be specified in the field Low speed marked below
    • OnSemiconducorIDE JLinkDebugConf Startup TargetInterfaceSpeed ResetHalt.png
  3. Interface speed after initialization
    • Open Run -> Debug Configurations...
    • On the left side, select the used Debug configuration in the group GDB SEGGER J-Link Debugging
    • Switch to the tab Startup
    • The initial speed can be specified in the area JTAG/SWD Speed marked below
    • OnSemiconducorIDE JLinkDebugConf Startup TargetInterfaceSpeed.png


Specifying the target device

  • Open Run -> Debug Configurations...
  • On the left side, select the used Debug configuration in the group GDB SEGGER J-Link Debugging
  • Switch to the tab Debugger
  • The target device can be specified in the field Device name: marked below
  • OnSemiconducorIDE JLinkDebugConf Debugger TargetDevice.png


Specifying J-Link GDB Server commandline options

For a list of available commandline options, please refer to UM08001. Commandline options for GDB Server can used for various J-Link features, e.g.

  • specifying a J-Link Settings file
  • specifying a J-Link script file
  • specifying a J-Link Command String

Commandline options can be specified by editing the field Other options:

  • Open Run -> Debug Configurations...
  • On the left side, select the used Debug configuration in the group GDB SEGGER J-Link Debugging
  • Switch to the tab Debugger
  • Commandline options can be specified by editing the field Other options marked below
  • OnSemiconducorIDE JLinkDebugConf Debugger GDBServerCLO.png


J-Link Settings File

Please refer to Specifying J-Link GDB Server commandline options

Using J-Link Command Strings

Please refer to Specifying J-Link GDB Server commandline options
Please note that J-Link Command Strings can also be executed from J-Link script files.

Using J-Link script files

Please refer to Specifying J-Link GDB Server commandline options

Connecting to J-Link via J-Link Remote Server

The J-Link Remote Server makes it possible for On Semiconductor IDE/ GDB to connect to a J-Link remotely, without needing a physical connection to the J-Link.

In order to connect to a J-Link Remote Server using On Semiconductor IDE/ GDB follow these instructions:

  • Make sure that a J-Link Debug Configuration is already created, as described above
  • Open Run -> Debug Configurations...
  • Select a J-Link Debug Configuration under GDB SEGGER J-Link Debugging
  • Select the Debugger tab
  • For Connection select IP
  • Edit the IP field:
    • For a remote server running in LAN mode, enter "<RemoteServerIP>".
    • For a remote server running in tunneling mode, enter "tunnel:<SN/Nickname>[:<Pasword>[:tunnelserver[:port]]]"
  • OnSemiconducorIDE ConnectToRemoteServer.png
  • Click Apply

Ready to Go

You can start debugging and use J-Link with On Semiconductor IDE.

OnSemiconductorIDE Tutorial 6.png