Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: How to change bootloader for LPC2138 ?

2006-02-24 by Jayasooriah

I would not recommend anyone try this unless they are familiar with flash 
programming fundamentals at the lowest level and appreciate intrinsic risks 
associated with boot sector updates.

--- In lpc2000@yahoogroups.com, "r_bottleneck" <r_bottleneck@...> wrote:
 > > Transferring the boot loader from one part to another can be done,
 >
...
 >
 > Would you please share the information how it works ?

Dump the boot sectors of compatible source and target parts.  Compare them 
and make sure you are satisfied you know what the changes mean, and that 
they do not affect any hardware requirements that are different between the 
two parts.

Download the dump of the source part into the target part and flash it into 
the boot sector.

ISP/IAP calls will not allow you to flash the boot sector.  You either have 
to call boot loader routines directly (which means you have to find out 
where these are from disassembly of the dumped boot sector of the target 
part), or use your own flash routines.  I have never used the first method 
but I know others have.

As with any boot flash update procedure should anything go wrong at the 
critical moment when the target boot sector is being updated, may end up 
destroying your boot loader, and may be even the part.  So exercise extreme 
care and caution.

If anyone here has 2138s that they can afford to throw away, I am happy to 
provide the tools and take you through the process.  You are then 
responsible for documenting the process and putting this up in the download 
area with the tools.

PS: I am well aware I have stepped into Philips territory ... but no turf 
wars please.

Send instant messages to your online friends http://au.messenger.yahoo.com

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.