Programming LPC1114 in production

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

Programming LPC1114 in production

839 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by syed on Mon May 23 18:51:04 MST 2011
Hi All,
            I am using LPC114 in my project and wanted to know what are the different methods of programming the LPC1114 in production. We will be programming the device before it is layed down on the pcb.

I have seen that the falshmiagic license has to be bought for it to be used in production.

Is there any other way to programme the the release image (hex file) onto the device ?

Can we use lpcexpresso to programe the hex file ?

Regards,
Syed
0 Kudos
14 Replies

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Lamborghini on Wed May 25 05:47:07 MST 2011
Thank you Zero for your support and thank you syed for having started this thread :)
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by igorsk on Wed May 25 04:38:12 MST 2011
Versaloon claims to support SWD and LPC1000:
http://www.versaloon.com/doc/versaloon/doc_versaloon_programmer_platform.html
You can buy it from the developer or make your own:
http://www.versaloon.com/products.html
Or you can reprogram an STM Discovery board:
http://www.versaloon.com/bbs/viewtopic.php?f=2&t=17
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sskriblo on Wed May 25 03:05:15 MST 2011

Quote: syed

Please confirm if this is correct or are there any more options.


There is LPC21ISP utility which supports LPC13xx and possibly may be used for LPC11xx but I'm not sure.
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed May 25 02:57:21 MST 2011

Quote: Lamborghini
so "Access to chip via the SWD pins is disabled"
will take place only after a power on cycle, following ISP flash programming
isn't it?



Yes, you are even able to debug after programming. But after power cycle fun is over and you have to use FlashMagic...
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by syed on Wed May 25 02:54:13 MST 2011
Regarding to the original topic of programming the device in production, I think below are the different options availiable

1)  LPCXpresso tools and LPC-link
- No cost or license fee
-also contains command line flash programming tool [B]crt_emu_lpc11_13
-  [/B]file format supported: axf, bin

2) FlashMagic
- License fee :399 Euros
- file format: hex

3) Red Suite 3 and RedProbe+
- Cost : $256 for 256k download limit and additional cost of RedProbe+

Please confirm if this is correct or are there any more options.

Regards,
Syed
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Lamborghini on Wed May 25 02:40:58 MST 2011
so "Access to chip via the SWD pins is disabled"
will take place only after a power on cycle, following ISP flash programming
isn't it?
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed May 25 02:29:00 MST 2011
Yes, you can.

User manual:


Quote:

CRP2 0x87654321 Access to chip via the SWD pins is disabled. The following ISP commands are disabled:
• Read Memory
• Write to RAM
• Go
• Copy RAM to flash
• Compare
When CRP2 is enabled the ISP erase command only allows erasure of all user sectors.

0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Lamborghini on Wed May 25 02:22:24 MST 2011
Using SWD pins


[LIST]
[*]Reset
[*]SWCLK
[*]SWDIO
[*]GND
[/LIST]
can i upload a firmware with CRP level 2 successfully in LPC1114?
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Tue May 24 12:58:51 MST 2011
I agree with Larry: programming the device onboard is much simpler than doing this before soldering.
For production purposes, go for Red Suite 3 and a RedProbe+ it is not only faster than the free LPCXpresso tools plus an LPC-link but with Red Suite 3 you also have a stand alone flash programmer tool. Less 'tool' means less chance of errors during production.
I prefer tools command line tools that you can embed in your own production environment. Automation makes production faster and more reliable.

Of course you need to make the SWD pins somehow available on test pads.
It's always a good idea to do this so you have the option of reprogramming existing devices when you discover a bug (yes, there will be bugs, there will always be bugs...)

Regards,

Rob
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by syed on Tue May 24 05:46:51 MST 2011
Thanks everyone for your help. The only reason for hex file is that we can have a single image which can be used with flashmagic and lpc expresso.

Regards,
Syed
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Tue May 24 01:06:35 MST 2011

Quote: syed
Thanks for the link. Does it not support programming a hex file ?


AFAIK, it is executable (.axf) and binary file only.

Why do you need hex?
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Tue May 24 01:01:10 MST 2011

Quote: syed
We will be programming the device before it is layed down on the pcb.



I think it would be easier to program the device after it is on the PCB.  You can definitely use LPCXpresso and the LPC-Link in that case as long as you have brought out the SWD lines to a header.

See this post: http://knowledgebase.nxp.com/showthread.php?t=1874
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by syed on Tue May 24 00:53:09 MST 2011
Thanks for the link. Does it not support programming a hex file ?

Reagrds,
Syed
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Tue May 24 00:44:34 MST 2011
Did you see:
http://support.code-red-tech.com/CodeRedWiki/CommandLineFlashProgramming
0 Kudos