Problem with command-line programming LPC11C14

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

Problem with command-line programming LPC11C14

1,549件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DaveNadler on Fri Jul 08 08:06:30 MST 2011
[FONT=Arial]Hi - I'm trying to program an LPC11C14 using the CodeRed
command-line utilities, via LPClink from Windows 7, following
the instructions here:
[/FONT]http://support.code-red-tech.com/CodeRedWiki/CommandLineFlashProgramming
[FONT=Arial]
First command "\nxp\lpcxpresso_3.6.3_317\bin\Scripts\bootLPCXpresso hid"
works OK, though curiously requires I type a key to continue.

Second command does not seem to know about the LPC11C14.
I've tried LPC11, LPC11xx - no joy.
Output from second command attempts below.

Using "debug" from the CodeRed IDE works great on this PC,
but I need to be able to give this to a tech who cannot fathom
Eclipse...

Any help will be greatly appreciated !
Thanks in advance,
Best Regards, Dave[/FONT]

[FONT=Courier New][B]\nxp\lpcxpresso_3.6.3_317\bin\crt_emu_lpc11_13_nxp.exe  -wire=hid -pLPC11xx -flash-load=Debug\BVM2_t1.axf [/B]
Ni: LPCXpresso Debug Driver v2.0 (Mar 29 2011 00:09:34)
Nc: Looked for chip XML file in G:/nxp/lpcxpresso_3.6.3_317/bin/LPC11xx.xml

Nc: Looked for vendor directory XML file in  G:/nxp/lpcxpresso_3.6.3_317/bin/nxp_directory.xml

Nc: Found generic directory XML file in  G:/nxp/lpcxpresso_3.6.3_317/bin/crt_directory.xml

Nc: Cannot find 'LPC11xx' in  G:/nxp/lpcxpresso_3.6.3_317/bin/crt_directory.xml
Nc: Will try to auto-detect chip.
Et:51: Failed on -p named Package (chip/board) lookup.

[B]\nxp\lpcxpresso_3.6.3_317\bin\crt_emu_lpc11_13_nxp.exe -wire=hid -pLPC11  -flash-load=Debug\BVM2_t1.axf
[/B]Ni: LPCXpresso Debug Driver v2.0 (Mar 29 2011 00:09:34)
Nc: Looked for chip XML file in G:/nxp/lpcxpresso_3.6.3_317/bin/LPC11.xml

Nc: Looked for vendor directory XML file in  G:/nxp/lpcxpresso_3.6.3_317/bin/nxp_directory.xml

Nc: Found generic directory XML file in  G:/nxp/lpcxpresso_3.6.3_317/bin/crt_directory.xml

Nc: Cannot find 'LPC11' in G:/nxp/lpcxpresso_3.6.3_317/bin/crt_directory.xml
Nc: Will try to auto-detect chip.
Et:51: Failed on -p named Package (chip/board) lookup.
[/FONT]
0 件の賞賛
返信
10 返答(返信)

1,520件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DaveNadler on Mon Jul 11 11:50:15 MST 2011

Quote: CodeRedSupport
[FONT=Arial][FONT=Courier New][FONT=Arial Black][FONT=Arial]
Its a batch file, so edit it and remove the pause
[/FONT][/FONT][/FONT][/FONT]


[LEFT][FONT=Arial] Done, thanks...[/FONT]
[/LEFT]


Quote: CodeRedSupport
[FONT=Arial][FONT=Courier New][FONT=Arial Black][FONT=Arial]
No
[/FONT][/FONT][/FONT][/FONT]


[FONT=Arial] Oh well, the tech will just have to click OK without panic...[/FONT]
[FONT=Arial]
Thanks ![/FONT]
0 件の賞賛
返信

1,520件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Jul 11 10:20:56 MST 2011

Quote: DaveNadler
[FONT=Arial]If I exit the IDE and disconnect/reconnect LPClink,
I still get the message/pause [FONT=Courier New]Press any key to continue . . .[FONT=Arial Black]
[/FONT][/FONT][/FONT]

[FONT=Arial][FONT=Courier New][FONT=Arial Black][FONT=Arial]

Its a batch file, so edit it and remove the pause

Quote:

Is there any way to suppress:
- warning dialog if the thing is already booted,

No
[/FONT][/FONT][/FONT][/FONT]
0 件の賞賛
返信

1,520件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DaveNadler on Mon Jul 11 09:41:55 MST 2011
[FONT=Arial]If I exit the IDE and disconnect/reconnect LPClink,
I still get the message/pause [FONT=Courier New]Press any key to continue . . .[FONT=Arial Black] [/FONT][FONT=Arial Black]
[FONT=Arial]
Is there any way to suppress:
- warning dialog if the thing is already booted,
- above message and delay ?

It would be great if this was easy for a tech to use,
without spurious messages and delays !

Thanks in advance,
Best Regards, Dave

PS: My problem with SIGSTOP debugging not working is more urgent !

[/FONT][/FONT][/FONT][/FONT]
0 件の賞賛
返信

1,520件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Jul 11 09:28:48 MST 2011

Quote: DaveNadler
[FONT=Arial][I]CodeRed support, perhaps this question got missed in the ensuing comments:[/I]

[/FONT][FONT=Arial]The first command "[FONT=Courier New]\nxp\lpcxpresso_3.6.3_317\bin\Scripts\bootLPCXpresso hid[/FONT]"
[/FONT][FONT=Arial]- pops a dialog claiming no device is connected (but, it is, and next command works), and
- prompts "[FONT=Courier New]Press any key to continue . . . [/FONT]"

Any tips on getting the first command to operate properly/silently ?

Thanks again,
Best Regards, Dave

PS: please ignore the spurious blank in the command line;
that's just the Wiki front-end screwing up.
[/FONT]



The boot command should only be used if LPC-Link has not already been booted. If it is already booted, then you will get this message. Thus, you are trying to boot it after you have already booted it!
0 件の賞賛
返信

1,520件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DaveNadler on Mon Jul 11 07:17:20 MST 2011
[FONT=Arial][I]CodeRed support, perhaps this question got missed in the ensuing comments:[/I]

[/FONT][FONT=Arial]The first command "[FONT=Courier New]\nxp\lpcxpresso_3.6.3_317\bin\Scripts\bootLPCXpresso hid[/FONT]"
[/FONT][FONT=Arial]- pops a dialog claiming no device is connected (but, it is, and next command works), and
- prompts "[FONT=Courier New]Press any key to continue . . . [/FONT]"

Any tips on getting the first command to operate properly/silently ?

Thanks again,
Best Regards, Dave

PS: please ignore the spurious blank in the command line;
that's just the Wiki front-end screwing up.
[/FONT]
0 件の賞賛
返信

1,520件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DaveNadler on Fri Jul 08 09:14:32 MST 2011
[FONT=Arial]Thanks Zero, saw your post after I added the /301 per CodeRed's instruction.
That's not a typo, its the Wiki front-end modifying what I typed,
wish it wouldn't do that...
Thanks again,
Best Regards, Dave
[/FONT]
0 件の賞賛
返信

1,520件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Jul 08 09:05:11 MST 2011
Is this a typo?

[FONT=Arial][FONT=Courier New]\nxp\lpcxpresso_3.6.3_317\bin\crt_emu_lpc11_13_[COLOR=Red]nxp  .exe [/COLOR]-wire=hid -pLPC11C14/301 -flash-load-exec=Debug\BVM2_t1.axf[/FONT][/FONT]
0 件の賞賛
返信

1,520件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DaveNadler on Fri Jul 08 09:01:15 MST 2011
[FONT=Arial]OK, I read the status bar and this command operates properly (adds "[FONT=Courier New]/301[/FONT]"):
[FONT=Courier New]\nxp\lpcxpresso_3.6.3_317\bin\crt_emu_lpc11_13_nxp.exe -wire=hid -pLPC11C14/301 -flash-load-exec=Debug\BVM2_t1.axf
[/FONT]
However, the first command:
- pops a dialog claiming no device is connected (but, it is, and next command works), and
- prompts "[FONT=Courier New]Press any key to continue . . . [/FONT]"

Any tips on getting the first command to operate properly/silently ?

Thanks again,
Best Regards, Dave

[/FONT]
0 件の賞賛
返信

1,520件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Jul 08 08:49:48 MST 2011
My:

C:\nxp\LPCXpresso_4.0.5_123\lpcxpresso\bin\crt_emu_lpc11_13_nxp -wire=hid -pLPC11C14/301 -flash-load-exec=LPC11_Switch.axf

is working without problems :)


Quote:


C:\nxp\workspace\LPC11_Switch\Debug>C:\nxp\LPCXpresso_4.0.5_123\lpcxpresso\bin\crt_emu_lpc11_13_nxp -wire=hid -pLPC11C14/301 -flash-load-exec=LPC11_Switch.axf
Ni: LPCXpresso Debug Driver v4.0 (Jun 21 2011 23:10:27)
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_4.0.5_123/lpcxpresso/bin/LPC11C14/301.xml

Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_4.0.5_123/lpcxpresso/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/nxp/LPCXpresso_4.0.5_123/lpcxpresso/bin/crt_directory.xml

Nc: Emu(0): Conn&Reset. DpID:  BB11477. Info: T1S6RGRIA
Nc: SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0  Poll delay: 0.
Nc: NXP: LPC11C14/301  Part ID: 0x1440102B
Cr:v Registered license, download limit of 128K
Nt: Loading ELF file 'LPC11_Switch.axf' at location 00000000
Nc: nSRST assert (if available)
Nc: Executing in user flash.

0 件の賞賛
返信

1,520件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Jul 08 08:14:02 MST 2011
You need to specify exactly the same part to the flash programmer that your project is set up to use. You can see this quickly by looking at the status bar shortcut....

Thus on this FAQ, it would be LPC1768....
http://support.code-red-tech.com/CodeRedWiki/StatusBar

Regards,
CodeRedSupport
0 件の賞賛
返信