NXP LPCXpresso Pro Edition
In order to get started with J-Link and LPCXpresso by NXP install the latest SEGGER software and documentation pack. Please verify that your J-Link software is up to date. For detailed instructions on how to install and use LPCXpresso, please refer to the LPCXpresso webpage and the getting started guide by NXP.
Debugging Configuration Options
For LPCXpresso there are two options how to use J-Link support:
- Using the GNU ARM Eclipse Plugin together with LPCXpresso.
- Using LPCXpresso as a vanilla Eclipse IDE by using the generic GDB Hardware Debugging plug-in.
SEGGER recommends the usage of option 1 (GNU ARM Eclipse Plugin) as it provides a much cleaner and more easy to use user front end to configure the J-Link connection in LPCXpresso as the standard Eclipse GDB Hardware Debugging plug-in. In the following, both methods are described.
GNU ARM Eclipse plugin
Please read the instructions for setting up the GNU ARM Eclipse Plugin. In addition to following the instructions on the GNU ARM website, you also have to add one preference.
- Open Window | Preferences
- Select Run/Debug
- Select String Substitution
- Click New
- Enter cross_prefix in the "Name:" field.
- Enter arm-none-eabi- in the "Value:" field.
- Click OK
The added preference allows the plugin to find the correct version of the GDB.
GDB Hardware Debugging Plug-In
- In the "Debugger" tab, the "GDB Command" field needs to be set to the location of the gdb client shipping with LPCXpresso. The default path is C:\nxp\LPCXpresso_VersionNumber\lpcxpresso\tools\bin\arm-none-eabi-gdb.exe.Assuming a local setup, default for "Host name" and "Port number" is "localhost" and "2331". The "Debugger" tab should look as follows: