EmbeddedRelated.com
Forums

How to change bootloader for LPC2138 ?

Started by r_bottleneck February 23, 2006
Hello,

I think the problems I posted recently regarding JTAG problems of the
LPC2138 mask A and B, are caused by the bootloader. The mask A device
has version 2.00 , the mask B device has 2.11 (B works perfectly).

How can I change the bootloader in the mask A device ? I didn't find
a tool which allows to change the bootloader for the LPC2138. For
other members of the LPC21xx family there are tools available.

Thanks
	

An Engineer's Guide to the LPC2100 Series

Hello,

Transferring the boot loader from one part to another can be done, but the 
issue you have to consider is what differences are between the boot loader 
that affects the two hardware revisions.

Compare the contents of the two boot sectors and see if you can find out to 
what extent they are different.  If the difference is minimal, you might be 
able to work out what these are, and then determine if it is safe to 
transfer the boot loader across.

Jaya

>Message: 12
>    Date: Thu, 23 Feb 2006 16:50:53 -0000
>    From: "r_bottleneck" <r_bottleneck@r_bo...>
>Subject: How to change bootloader for LPC2138 ?
>
>Hello,
>
>I think the problems I posted recently regarding JTAG problems of the
>LPC2138 mask A and B, are caused by the bootloader. The mask A device
>has version 2.00 , the mask B device has 2.11 (B works perfectly).
>
>How can I change the bootloader in the mask A device ? I didn't find
>a tool which allows to change the bootloader for the LPC2138. For
>other members of the LPC21xx family there are tools available.
>
>Thanks

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

> Transferring the boot loader from one part to another can be done, 

@Jayasooriah

Would you please share the information how it works ?

Thanks
	
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@lpc2..., "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