lpc81xm bootloader question

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

lpc81xm bootloader question

460 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mori64 on Fri Mar 21 10:55:57 MST 2014
Hello
im new with lpc8 family .
as i read in lpc81xm data sheet  in this family there is bootloader (by default )
now i'm looking for software to load my application code in uc .

please correct me if i misunderstood about it.

regards
Labels (1)
0 Kudos
7 Replies

433 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mori64 on Sun Mar 23 02:27:58 MST 2014
Thanks capiman

mostly we use bootloader for upgrade sold product .
and off course you don't like your customer access to isp .
so your only option is IAP .But Consider the occasion that a bootloader is operating and replacing the current code then someone pulls one of the cables to the MCU (either power or communications).
and tragedy will begins .

So do we have another strategy .
0 Kudos

433 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Sat Mar 22 00:16:35 MST 2014
All of them have a bootloader (in ROM, not replaceable). Download the User Manual (not Datasheet) for the given device,
and search for ISP. There is a chapter in each User Manual describing the way and protocol of
the built-in bootloader.

Pay attention: there are two parts described in this chapter: ISP and IAP.
They are different things.

ISP is when you program (flash, download) your program (application) from the outside the device
(like when you download a new software via FlashMagic).
ISP is started e.g. when device is started or resetted and at the same time a certain pin have a certain state.

IAP (In-Application-Programming) is doing almost the same, but the control is in your application.
Like you have written an application which shall write data (e.g. some configuration data) to certain (free) flash sectors.
But this has limits, like number of write cycles. Or you can (must) erase one complete sector, before it can be rewritten.

0 Kudos

433 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mori64 on Fri Mar 21 21:41:30 MST 2014
So if both of them supported by flashmagic
what is deffrence bitween LPC81xm than has bootloader and lpc1788 that hasn't?

0 Kudos

433 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Fri Mar 21 13:37:07 MST 2014
yes, it also works for LPC1788

See here for a list of supported devices:
http://www.flashmagictool.com/supporteddevices.html
0 Kudos

433 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mori64 on Fri Mar 21 13:34:14 MST 2014
Thanks

flash magic is just for this boot loader code ?
i mean can i use it for another family like 1788 ?
0 Kudos

433 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Fri Mar 21 12:51:02 MST 2014

Quote: mori64
now i'm looking for software to load my application code in uc .



Just add an UART-USB Converter like

http://www.digikey.com/product-detail/en/TTL-232R-3V3/768-1015-ND/1836393

and use FlashMagic:

http://www.flashmagictool.com/
0 Kudos

433 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Fri Mar 21 12:21:26 MST 2014
Google for FlashMagic
Google for lpc21isp
Google for mxli
0 Kudos