LPC link with KEIL

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

LPC link with KEIL

4,119 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Sharadanand on Mon Jan 09 22:19:59 MST 2012
Can LPC link be used with KEIL if yes then how it can be used?
0 Kudos
Reply
18 Replies

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cesimkaol on Fri Jun 14 05:52:07 MST 2013
According to my research about that..

You can build project in keil and create axf file.

When you create it you can debug it using commandline or lpcxpresso gui
programmer.

I read it in codered wiki..

Check this -> http://support.code-red-tech.com/CodeRedWiki/CommandLineFlashProgramming
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Jun 05 11:50:35 MST 2012

Quote:
How should I create my bin file to get a valid checksum?

Google or look/ask in a Keil forum :eek:

http://www.keil.com/forum/16699
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tombond on Tue Jun 05 11:41:49 MST 2012
I know that I'm acting a little stupid atm but I really don't know what is going wrong here :confused:

How should I create my bin file to get a valid checksum?


Update: Just tried to flash an axf file from another project (created in LPCXpresso, no RXF included) and it worked perfectly, so I guess my code itself has errors in it.
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Jun 05 11:30:59 MST 2012
4 bytes of 0x00 is no checksum :rolleyes:
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tombond on Tue Jun 05 11:20:58 MST 2012
0x1C - 0x1F are 0x00, so I guess I created an invalid bin file?
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Jun 05 08:37:00 MST 2012

Quote:
How do I check the checksum?

As mentioned above (2 weeks ago):

Check byte 0x1C-0x1F of your bin file. Without checksum all bytes here are 0x00 or 0xFF.

Don't know what hardware you are using and what code you've programmed but either you are starting ISP via hardware (=pin) or your software isn't valid and your LPC is doing that for you :eek:
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tombond on Tue Jun 05 08:27:11 MST 2012
How do I check the checksum?
And how can I create a bin file from LPCXpresso if my project was created in uVision?

I used checksum.exe and got:
"Created Checksum 0x8bd1ffef in .....bin at offset 0x1c"
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Jun 05 08:05:21 MST 2012

Quote: tombond
The bin file was created via "fromelf --bin -o @L.bin !L" as a user program after build, so basically µVision generates my bin right after building the project.



Wow, 0 of 2 questions answered, great success :rolleyes:
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tombond on Tue Jun 05 07:45:33 MST 2012

Quote: Zero
I don't know your code :eek:

Did you check your checksum as mentioned above?

Did you try to generate a valid bin file in LPCXpresso?




The bin file was created via "fromelf --bin -o @L.bin !L" as a user program after build, so basically µVision generates my bin right after building the project.

And I do have an afx file, but how does this make it easier?
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by yanvasilij on Tue Jun 05 05:55:05 MST 2012
You can flash your MCU from LPCXpresso if you have an afx file. I think it is mutch easier.
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Jun 04 08:36:20 MST 2012

Quote: tombond
Sorry for not answering.

To be honest, I have no idea why it is executing in bootloader,
is there something wrong with my code?



I don't know your code :eek:

Did you check your checksum as mentioned above?

Did you try to generate a valid bin file in LPCXpresso?
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tombond on Mon Jun 04 08:25:35 MST 2012
Sorry for not answering.

To be honest, I have no idea why it is executing in bootloader,
is there something wrong with my code?
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue May 22 13:06:21 MST 2012

Quote: tombond

Nc: Executing[COLOR=Red] in bootloader[/COLOR]

What am I doing wrong?

Your program is executing in Bootloader :eek: Why are you doing that :confused:

Are you sure that you're using a valid bin file (= checksum from 0x1C-0x1F) ?
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tombond on Tue May 22 12:15:41 MST 2012
Yes I did, atm it looks like this:

-wire=hid -pLPC11U14/201 -load-base=0x0000 -flash-load="C:\Program Files\.....\arm_m0.bin"
I also tried the .axf file instead of the .bin but neither of them work. Using the bin File I just get

Ni: LPCXpresso Debug Driver v4.0 (Feb 17 2012 17:57:38)
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_4.2.0_264/lpcxpresso/bin/LPC11U14/201.xml
Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_4.2.0_264/lpcxpresso/bin/nxp_directory.xml
Nc: Found generic directory XML file in C:/nxp/LPCXpresso_4.2.0_264/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: LPC11U14/201  Part ID: 0x0998802B
Cr:v Registered license, download limit of 128K
Nt: Loading binary file 'arm_m0.bin' at location 00000000
Nc: nSRST assert (if available)
Nc: Executing in bootloader.


What am I doing wrong?
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue May 22 11:55:52 MST 2012
Tried this already?

http://support.code-red-tech.com/CodeRedWiki/CommandLineFlashProgramming?
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tombond on Tue May 22 11:03:16 MST 2012
I'm in the same situation here but I need some help. I had to do a project in µVision using a ULINK Pro, but now I try to flash the same project using a LPC-Link.
Could someone please tell me how to do that?
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zaiu on Tue Jan 10 03:56:53 MST 2012
Open Keil uVision:
go to  FLASH -> CONFIGURE FLASH TOOLS

check: USE EXTERNAL TOOL FOR FLASH PROGRAMMING

and paste this:

command-> C:\nxp\LPCXpresso_4.1.5_219\lpcxpresso\bin\crt_emu_cm3_nxp.exe
arguments-> -wire=hid -pLPC1769 -load-base=0x0000 -flash-load=your_bin_file.bin

It must be configured a little but from console works very well.

AH! The first time you run, it must load the driver (lpcexpresso ide loads it automatically:

C:\nxp\LPCXpresso_4.1.5_219\lpcxpresso\bin\Scripts\bootLPCXpresso.cmd

In device manager you can see that "USB DEVICE WITH DFU CAPABILITIES" device turns to "LPC-LINK".

Let me know if works for you!
0 Kudos
Reply

3,481 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Tue Jan 10 01:45:44 MST 2012
No.
0 Kudos
Reply