How to configure IDE MCUXpresso

MCUXpresso Integrated Development Environment Settings

You can download the MCUXpresso IDE from the official website.

Configuring

Instructions

  1. Select a project then select “Debug As->Debug Configurations” on the menu list or on the toolbar:

The project has to be compiled successfully at least once.

1

  1. Right-click “GDB SEGGER Interface Debugging” on the configuration tree and select "New Configuration" on the context menu:

2

If necessary, configuration name can be changed right away, but in this example we will leave it as it is.

  1. If the project was not compiled successfully at least once, the "C/C++ Application" field will be left blank. In this case, close the configuration window, compile the project, then open the configuration window again and run the file by clicking “Search Project”. In the Figure below all fields are filled up correctly:

  1. Configure settings on the “JLink Debugger” tab:
    a. Specify a device name in the corresponding field.
    b. Switch the “JLink Interface” radio-button to "IP".
    c. Specify IP-address and port for the current session as follows: IP:Port.
    d. Make sure the “Target Interface” menu is at "SWD".
    Device name, IP-address and port are shown on the Connection and Tools page.

While using port forwarding, use localhost as the IP-address and <serv_port> as Port. serv_port is shown on the Connection and Tools page.

  1. Click “Debug”.

This configuration can be used more than once. Just select it as the target one during debugging.

If the J-Link GDB Server timed out while starting:

  1. Run Cmd.exe and execute the following commands:
    cd «JLink_Path», where «JLink_Path» is a path to JLinkGDBServerCL.exe
    JLinkGDBServerCL.exe -select IP=<IP>:<Port> -device <STM32F429ZI> -endian little -if SWD -speed 4000 -noir -LocalhostOnly

While using port forwarding, use localhost as the IP-address and <serv_port> as Port.

  1. Open the “Debug Configurations” window for the created configuration.
  2. Uncheck “Start Server” on the “JLink Debugger” tab.
    _10
  3. Click “Debug”.