Command line programming with LPC-Link 2

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Command line programming with LPC-Link 2

1,510件の閲覧回数
jmunoa
Contributor I

Hi,

 

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.

 

Best,

Jon

0 件の賞賛
2 返答(返信)

852件の閲覧回数
jmunoa
Contributor I

I will answer myself.

It is necessary to boot the LPC-Link 2 first, before programming. I guess LPXpresso does it automatically and that's why I had the issue when I didn't use LPXpresso.

Booting LPC-Link2

0 件の賞賛

852件の閲覧回数
soledad
NXP Employee
NXP Employee

Hi,

Thank you for your input.

Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛