I’m gonna show you how to use LPC-LINK2.
The LPC-LINK2 is a very handy tool because it can be used as various debug probe, being very cost effective. The license is only allowed to use for NXP MCU’s, Kinetis and LPC microcontroller.
If you have already bought it but you don’t make use of it to the full extent, you can refer to this post. There might be an useful information for you.
Contents
1.For use of development board(EVK)
On LPC-LINK2 is LPC4370 MCU integrated, which is NXP LPC Micro. You can also evaluate LPC43xx series MCU on the board as a purpose of development.
There are many header pins available and it is so compact board.
LPC4370 Block diagram

LPC4370 Features
Triple cores
LPC4370 is not dual core, but triple. Even dual core MCU is very rare in the market. LPC4370 consists of Cortex-M4F and two extra Cortex-M0 cores, those cores are 204MHz at a maximum clock. It is enough performance with the clock frequency.
The Cortex-M0 core is suitable for an application and that is periodically processed and can off-load main CPU core . The other Cortex-M0 core can be used to control such as a SGPIO and SPI peripherals.
HS-USB x2
Two HS-USB(480MHz) USB Interface is available.
What a fast ADC, and it is 80Msys!
Believe or not, what a fast ADC is integrated in LPC4370 and its speed is as much as 80MHz! In general, normal MCU can only support less than 1MHz. LPC4370 is 80Msys! It is incredible! How fast it is.
Thanks to such a fast ADC, 3rd party, Embedded Artist produced a Lab-Tool that can be used as Logic analyzer, Oscilloscope and signal generator. The lab-tool is a extended board for LPC-LINK2. You can get information from here -> Lab-tool.
I will try this tool in the near future.
SDK(Software Development Kit)
SDK for LPC-LINK2 is LPCOpen. You can get it from here. -> LPCOpen libraries
However, if you use MCUXpresso IDE, the LPCOpen libraries are already built-in as a off-the-shelf.
Development environment
Integrated Development Environment (IDE) for LPC-Link2 is available and built in MCUXpresso IDE.
MCUXpresso IDE is a free of charge and no code size limitation. You can import LPC4370 LPCOpen project in the MCUXpresso IDE. Just select the built-in library to import and follow the dialog box.
MCUXpresso IDE can be downloaded from here -> MCUXpresso IDE
2.For use of debug probe
LPC-LINK2 is programable to configure debug interface for many IDE’s and tools by downloading various debug probe images.
Use LPC-LINK2 as CMSIS-DAP interface
CMSIS-DAP is an interface for a debug that ARM specified. If you use CMSIS-DAP interface then you can use various IDE’s available in the market.
For MCUXpresso IDE, you can even measure a dynamic power consumption if you use CMSIS-DAP interface.
Using CMSIS-DAP Link Server, Below article shows you how Power consumption measurement can be done.
Use LPC-LINK2 as J-LINK
You can also use J-Link that is released by Segger.
I think I feel that J-Link is much faster than CMSIS-DAP so that I want to use J-Link usually. However, J-Link is not supported for the power measurement feature of MCUXpresso IDE.
How to program a debug probe image
1.Download LPCScrypt Here -> LPCScrypt
2.Install and follow the dialog
3.For Windows, It requires to install LINK2 USB driver, too. You can download -> LPC-LINK2 USB driver for Windows
3.Remove JP1 jumper on the LPC-LINK2

4.Connect USB-mini to PC and LPC-LINK2
5.Execute script command which is located in Application LPCScrypt folder/Scrypts. You can choose 1) CMSIS-DAP, 2) J-LINK
6.After download the debug probe image done, put back JP1.
Finish.
It is so easy to reprogram a debug probe image and change it as you want.
Please try.