Difference between revisions of "netX Studio"

From SEGGER Wiki
Jump to: navigation, search
(Creating a New Project)
(Creating a New Project)
Line 86: Line 86:
 
*The new project wizard for netX 90 offers additional options for configuration.
 
*The new project wizard for netX 90 offers additional options for configuration.
 
*Click Next to proceed with the netX 90-specific options of the wizard.
 
*Click Next to proceed with the netX 90-specific options of the wizard.
[[File:CreateProject.jpg|size=200px]] [[File:CreateProject2.jpg|size=200px]]
+
[[File:CreateProject.jpg|460px]] [[File:CreateProject2.jpg|400px]]
   
 
== Debug Settings ==
 
== Debug Settings ==

Revision as of 12:14, 3 April 2024

Installation of netX Studio CDT

The installation process for the netX Studio CDT software on a development PC is described in this section.

Requirements for Installing netX Studio CDT

Before proceeding with the installation, ensure that your system meets the following requirements:

  • General Requirements:
    • Operating system: Windows® 10 or Windows® 11.
    • Internet access is required for downloading third-party development tools like the ARM GNU toolchain and OpenOCD.
  • Specific Requirements (if applicable):
    • Uninstall any previous versions of netX Studio from your development PC.
    • Uninstall HiTOP USB drivers from your development PC before installing the netX Studio CDT software.

Hardware Requirements for Development PC:

  • Processor: Dual-core 2 GHz (or equivalent).
  • RAM: Minimum 2 GB, recommended 4 GB.
  • Free disk space: Approximately 3 GB, SSD recommended.
  • Graphic resolution: 1024 x 768 pixels.

netX Studio CDT Installation Folders

Various folders are involved in the netX Studio CDT installation:

1. Main netX Studio Installation Location:

  * Default: `C:\Program Files (x86)\Hilscher GmbH\netX Studio CDT\`
  * This folder contains the majority of installed files and can be changed during installation.

2. BuildTools Folder:

  * Default: `C:\ProgramData\Hilscher GmbH\netX Studio CDT\BuildTools\`
  * Contains external development tools used in netX Studio CDT, such as the Flasher tool and OpenOCD configurations.

3. User Preferences Folder:

  * Located at `C:\Users\[user]\AppData\Local\Hilscher GmbH\netX Studio CDT\`
  * Contains user-specific preferences for netX Studio CDT and cannot be modified manually.

Running the netX Studio CDT Setup Program

To install netX Studio CDT on your development PC:

1. Double-click the `netX Studio CDT Vx.xxxx.x.xxxx x86 Setup.msi` file. 2. Follow the instructions provided by the netX Studio CDT Setup Wizard:

  * Accept the license agreement.
  * Choose the installation destination folder.
  * Select additional tasks according to preferences.
  * Begin the installation process.
  * Grant necessary permissions if prompted by the User Account Control.

3. Upon successful installation, click "Finish" to complete the setup wizard.

After installing netX Studio CDT, it's essential to complete the installation of required development tools, which will be automatically initiated on launching netX Studio CDT for the first time.

This completes the installation process of netX Studio CDT on your PC, enabling you to proceed with your development tasks efficiently.

Installing drivers for Segger J-Link

Installation

To install drivers for Segger J-Link, follow these steps:

After installing the SEGGER J-Link software, netX Studio CDT automatically adds "SEGGER J-Link" to the preferences page.

  • Open "Edit > Preferences" to view the result.

Creating a New Project

netX Studio CDT comes with built-in project templates that contain the bare minimum resources required for a running application. These templates can serve as a starting point for a new project.

To create a new netX CDT project:

  • Select File > New > netX CDT Project from the main menu.
  • Enter a project name and select the target chip type.
  • Optionally, change the project location.
  • Click "Finish."
  • The project is created and displayed in the Project Explorer.
  • The new project wizard for netX 90 offers additional options for configuration.
  • Click Next to proceed with the netX 90-specific options of the wizard.

CreateProject.jpg CreateProject2.jpg

Debug Settings

Before you start debugging, you can adjust the target debug settings.

Select Debug > Debug Settings from the main menu. By default, netX Studio CDT uses OpenOCD for debugging. As an alternative, netX Studio CDT can use J-Link for debugging.

J-Link Settings

These settings influence the way J-Link is started, how it connects to, and initializes the target device.

JLink Debug settings

Start J-Link GDB Server Automatically

If "Start GDB server automatically" is checked and the option "J-Link GDB Server" is selected, netX Studio CDT will automatically start the J-Link connecting to the specified hardware debugger.

Device Name

The device name offers a drop-down list for the netX chip type. For netX 90, select "netX90_APP".

Interface

The interface drop-down list allows you to select JTAG or SWD.

Connection to J-Link

To connect to the J-Link adapter, you can use USB, USB with serial number, or TCP/IP (with IP address).

Flash Breakpoints

Disables (false) or enables (true) breakpoints to be used in the Flash memory.

Config Script (Advanced)

You can use the field "Config script" to optionally specify a customized, project-specific configuration script for J-Link.

Mode Setting

The option "Mode" determines how netX Studio CDT will connect to the target device:

  • Run: The target will be reset, initialized, and halted at the first instruction.
  • Attach: The target will be halted at the current instruction.

Use the mode "Run" to start debugging an application from the first instruction that is executed after a reset.

Use the mode "Attach" to attach to a running application on the netX, e.g., attach and debug your application once it has been flashed to the device.