MCUXpresso Integrated Development Environment Settings
You can download the MCUXpresso IDE from the official website.
- 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.
- Right-click “GDB SEGGER Interface Debugging” on the configuration tree and select "New Configuration" on the context menu:
If necessary, configuration name can be changed right away, but in this example we will leave it as it is.
- 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:
- 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:
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.
- 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:
- 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.
- Open the “Debug Configurations” window for the created configuration.
- Uncheck “Start Server” on the “JLink Debugger” tab.
- Click “Debug”.