AnsweredAssumed Answered

Command line programming with LPC-Link 2

Question asked by JON MUNOA on Jul 14, 2016
Latest reply on Jul 19, 2016 by soledad



I have a custom design PCB with LPC11C22 microcontroller and so far, I have been using LPCXpresso and LPC-Link 2 debugger with no problems at all.


Now, I don't want to use LPCXpresso IDE, just LPC-Link 2 and Command line.

I program with the following command:

crt_emu_cm_redlink -pLPC11C22/301 -vendor=NXP -flash-load-exec <Programming file location>\my_file.axf


The problem is that I can only program it if I have previously programmed it using LPCXpresso. Otherwise, I get this message:


Ni: LPCXpresso RedlinkMulti Driver v8.1 (Mar 11 2016 13:34:34 - crt_emu_cm_redli

nk build 672)

Ed:02: Failed on connect: Ee(38). Invalid probe index.

Et:31: No connection to emulator device


It looks to me like LPCXpresso does some kind of configuration (connection, whatever..) that enables the use of command line afterwards.


Does someone know why is this happening? Do I have to use any configuration command before I program  using crt_emu_cm_redlink?


Thank you in advance.