Yahoo Groups archive

Lpc2000

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

Message

Re: Activating Boot Loader for LPC2000 Flash Untility

2004-07-08 by lpc2100

The idea here is to fool the bootloader when it samples P0.14. If 
serial port 0 is used in the application then it also needs to clear 
the bit 2-3 of PINSEL0 and bits 1 of the IODIR register.

I have verified the concept on the Ashling board running ledtest 
image.

--- In lpc2000@yahoogroups.com, "Richard" <richas@y...> wrote:
> Hmmm,
>    Branching to 0x00 is not the same as a reset, IOW you will not 
end 
> up in the bootloader that samples P0.14 and enters ISP mode etc.
> 
> Rich
> 
> --- In lpc2000@yahoogroups.com, "lpc2100" <lpc2100@y...> wrote:
> > Owen 
> > 
> > Try this sequence from your program which needs to be updated.
> > 
> > Make bootloader vectors visible 
> > Write 0x0 to the MEMMAP (0xE01FC040)
> > 
> > Select P0.14 as output. You may want to do a read-modify-write 
here.
> > Write 0x4000 to the IODIR (0xE0028008)
> > 
> > Make P0.14 Low
> > Write 0x4000 to the IOCLR (0xE002800C)
> > 
> > Branch to address 0x0 in ARM mode.
> > 
> > This should invoke the bootloader in ISP mode. Update the code 
via 
> > serial ISP and the next reset should execute the new code.
> > 
> > Hope this works for you.
> > 
> > Tom
> > 
> > 
> > --- In lpc2000@yahoogroups.com, Owen Mooney <ojm@s...> wrote:
> > > I am building a product that will be encapulated in a blob of 
> epoxy.
> > > 
> > > I live in the real world so I know that with any new product 
> > firmware 
> > > upgrades are almost inevitable. These can be loaded into
> > > a LPC2106 PROVIDED that the P0.14 can be accessed Tricky from 
> > inside the 
> > > blob.
> > > 
> > > Is it possible to to activate the code that does the boot 
loading 
> > from 
> > > within my old program, ie jump to some location like we do for 
> IAP 
> > > programming
> > > 
> > > Thanks
> > > 
> > > Owen Mooney

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.