hi @running_gao
You may refer to the following steps.
1 Make sure that your board does have a SWD debug header and check if requires any configuration to be programmed by an external debugger like LPC link 2.
2 Ensure to have the proper jumper settings in the LPC link 2:
- A) Close the JP1 jumper. This will allow the debugger operation mode.
- C) Check if your board has its own power supply. If don´t, configure the LPC link 2 to provide power by fitting the JP2.
3 Connect only the LPC link to your computer USB port. Probably you will heard an enumeration bong. You can open devices and printers (in Windows) to see how the debugger is being enumerated, it should something like CMSIS or J-link,
4 Disconnect the LPC link from your computer.
5 Connect one end of an SWD flat cable to the J7 header in the LPC link 2. Then connect the other end in to the SWD header of your target board, please, make sure to do this in the proper orientation.
6 Connect the LPC link to the USB port of your computer.
7 Open your preferred project in MCUXpresso to debug and hit the blue debug button. If everything went ok the IDE will dicover the LPC link 2 as debugger. Please see: 11.1.1 Debug Launch chapter in the MCUXpresso User guide.
If you have any issues, or any other question , please do not hesitate to let me know.
I hope this helps.
Regards,
Diego.