Command Line programming

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Command Line programming

514 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by blasiis on Thu Nov 27 02:59:46 MST 2014
Dear all,
I need to program a LPC4076 by a comand line.
1) Connect
C:\nxp\LPCXpresso_5.2.6_2137\lpcxpresso\bin\Scripts\bootLPCXpresso.cmd  winusb

2) I have used this command:

C:\nxp\LPCXpresso_5.2.6_2137\lpcxpresso\bin\crt_emu_cm3_nxp -g -2 -vendor=NXP -pLPC4076 -s250 -flash-load-exec "\\xxxxx\xxxxxx\xxxxx\xxxxx.axf"  -wire=winusb

the output is:

C:\WINDOWS>C:\nxp\LPCXpresso_5.2.6_2137\lpcxpresso\bin\crt_emu_cm3_nxp -g -2 -ve
ndor=NXP -pLPC4076 -s250 -flash-load-exec "\\xxxxx\xxxxxx\xxxxx\xxxxx.axf"  -wire=winusb
Ni: LPCXpresso Debug Driver v5.2 (Jul  5 2013 11:31:15 - crt_emu_cm3_nxp build 1
5)
Pc: (  0) Reading remote configuration
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_5.2.6_2137/lpcxpresso/bin/LPC4
076.xml

Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_5.2.6_2137/lpcxpre
sso/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/nxp/LPCXpresso_5.2.6_2137/lpcxpresso/
bin/crt_directory.xml

Pc: (  5) Remote configuration complete
Xe:
Pc: ( 15) nSRST assert (if available)
Ed:02: Failed on connect: Ep(01). Target marked as not debuggable.
Et: Emu(0): Connected. Was: None. DpID:     EDB6. Info: WIN64HS12
Error 0: (null)
Last sticky: 0. AIndex: 0
No MemAp selected
No Speed test
SWD Frequency: 50 KHz. RTCK: False. Vector catch: False.
Packet delay: 0  Poll delay: 0.
Pc: (100) Target Connection Failed

where mistake ?
Can help me ?

Thanks

Stefano
Labels (1)
0 Kudos
5 Replies

451 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Nov 27 06:59:07 MST 2014
It is a HARDWARE problem. Fix the hardware problem by reading the FAQ.
0 Kudos

451 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by blasiis on Thu Nov 27 06:02:21 MST 2014
Installed the new verson but, the problem remain.

Command try with little difference:

C:\nxp\LPCXpresso_7.5.0_254\lpcxpresso\bin\crt_emu_cm3_nxp -wire=winusb -pLPC4078 -flash-load=\\xxxxx\xxxx\xxx\xxxx.axf

C:\WINDOWS>C:\nxp\LPCXpresso_7.5.0_254\lpcxpresso\bin\crt_emu_cm3_nxp -wire=winu
sb -pLPC4078 -flash-load=\\xxxxx\xxxx\xxx\xxxx.axf
Ni: LPCXpresso Debug Driver v7.5 (Oct 21 2014 12:21:39 - crt_emu_cm3_nxp build 2
6)
Xe:
Ed:02: Failed on connect: Ep(01). Target marked as not debuggable.
Et: Emu(0): Connected. Was: None. DpID:     EDB6. Info: WIN64HS12
Error 0: (null)
Last sticky: 0. AIndex: 0
No MemAp selected
No Speed test
SWD Frequency: 50 KHz. RTCK: False. Vector catch: False.
Packet delay: 0  Poll delay: 0.

0 Kudos

451 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Nov 27 04:09:26 MST 2014
Apart from using a very old version of LPCXpresso, the command line looks OK.

The error you are getting is because of a problem connecting to your hardware. Fix that, as described in the FAQ, and it should work.
0 Kudos

451 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by blasiis on Thu Nov 27 03:55:10 MST 2014
Thanks, but my doubt is: the command line is correct ?
0 Kudos

451 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Nov 27 03:05:20 MST 2014
Read this FAQ:
http://www.lpcware.com/content/faq/lpcxpresso/target-marked-not-debuggable
0 Kudos