Content originally posted in LPCWare by Tomas Frcek on Fri May 29 04:09:30 MST 2015
Hello,
I have a LPCXpresso LPC-Link 2 board that came with connected LPCXpresso LPC1769 board. I physicaly severed the boards at J4 and connected the GND, JTAG_RESETX, JTAG_TCLK_SWCLKX, JTAG_TMS_SWDIOX and VIO 3V3X pins of the Link 2 board and target board.
Using the LPC-Link 2 Configuration Tool I programmed the LPC-Link 2 board with the LPC-Link2 CMSIS-DAP debugger with bridges image, following the steps described in the configuration tool exactly. The process completed successfuly. During this process I also had the connections to the target LPCXpresso 1769 board severed.
I downloaded LPCOpen examples projects for Keil, opened the workspace with example projects for peripherals, successfuly built all the projects. However, in the "Options for target" window, all these projects had set the ULINK2 debugger (in the Utilities and Debug cards). I simply tried to change these options to CMSIS-DAP Debugger, but when I tried to flash the example program, I received the following error:
AGDI - Cortex-M Error
No Debug Unit Device found
Than I tried to cehck the option "Use External Tool for Flash Programming", because I figured that is what I'm trying to do :) I set the line Command to:
C:\nxp\LPCXpresso_7.6.2_326\lpcxpresso\bin\crt_emu_cm3_nxp.exe
And Arguments to:
-wire=hid -pLPC1769 -load-base=0x0000 -flash-load=C:\Keil_v5\Projects\can_first_uvision_lpc1768\can_first\buildcan_first_LPC1768.bin
Now I tried to download the program, a black command line like window appeared for a moment, but than disappeard. Keil showed no error, but these lines appeared in the output:
Ni: LPCXpresso Debug Driver v7.6 (Jan 28 2015 22:21:02 - crt_emu_cm3_nxp.exe build 50)
Ed:02: Failed on connect: Ee(05). No matching emulator found - make sure power is on and not in use already.
Et:31: No connection to emulator device
So I decided to try the native IDE, the LPC Xpresso. I didnt change the programming of the LPC-Link 2 propgrammer. Like with Keil, I downloaded LPCOpen example projects, but now for the XPresso IDE. I Imported the projects, successfuly built and tried to debug. But I received the following error:
02: Failed on connect
Target marked as not debuggable.
Emu(0): Conn&Reset. Was: None. DpID: 00000000. CpuID: 00000000. Info: (null)
Is there something obviously wrong or something I'm missing in my approach?
Thank you for your advice!