Serial Bootloader code

Started by ostehaps01 November 4, 2008
Hallo

Is there any available serial bootloader I could use? Im making my own
custom bootloader, because I need to implement a custom protocol. So I
cant use the ISP.

Is there any sample out there I could use as a starting point?
Is there some where I can bye one?

Thomas

An Engineer's Guide to the LPC2100 Series

If you really want to overide LPCs bootloader, what I wouldnt, you
could start by
http://www.cse.unsw.edu.au/~jayas/esdk/lpc2/boot-loader.html.

Why you dont simply use a secondary bootloader?

Best regards,
Ivan Amancio

--- In l..., "ostehaps01" wrote:
>
> Hallo
>
> Is there any available serial bootloader I could use? Im making my own
> custom bootloader, because I need to implement a custom protocol. So I
> cant use the ISP.
>
> Is there any sample out there I could use as a starting point?
> Is there some where I can bye one?
>
> Thomas
>

Ues.. I have looked at the secondary bootloader from NXP. I just
wondered if there already was one using serial communication instead
og USB.
If I dont find one, then I ofcourse the secondary bootloader at strip
it for all the USB stuff and implement my own protocol.

The reason why I dont use the LPC bootloader, is because it has to
interface to some older equipment that has to do the bootloading..
and it isnt just changing that ole equipment using the ISP commands!!

also, I would like to use a LED while im bootloader, so bootloader
status can be monitored.

Im not planing to disable the LCP bootloader. The ISP just jumps to
my application if its not activated.
On request, the application jumps to my bootloader code and program
the flash with a new application.

--- In l..., "mxfxluder28" wrote:
>
> If you really want to overide LPCs bootloader, what I wouldnt,
you
> could start by
> http://www.cse.unsw.edu.au/~jayas/esdk/lpc2/boot-loader.html.
>
> Why you dont simply use a secondary bootloader?
>
> Best regards,
>
>
> Ivan Amancio
>
> --- In l..., "ostehaps01" wrote:
> >
> > Hallo
> >
> > Is there any available serial bootloader I could use? Im making
my own
> > custom bootloader, because I need to implement a custom protocol.
So I
> > cant use the ISP.
> >
> > Is there any sample out there I could use as a starting point?
> > Is there some where I can bye one?
> >
> > Thomas
>
For the link to work: copy and paste it in your browser, then remove the point at the end of the link.



~ Paul



From: l... [mailto:l...] On Behalf Of mxfxluder28
Sent: Tuesday, November 04, 2008 7:18 AM
To: l...
Subject: [lpc2000] Re: Serial Bootloader code



If you really want to overide LPCs bootloader, what I wouldnt, you
could start by
http://www.cse.unsw.edu.au/~jayas/esdk/lpc2/boot-loader.html.

Why you dont simply use a secondary bootloader?

Best regards,

Ivan Amancio

_._,___


On Tue, Nov 4, 2008 at 10:13 PM, Paul Claessen wrote:
> For the link to work: copy and paste it in your browser, then remove
> the point at the end of the link.
>> http://www.cse.unsw.edu.au/~jayas/esdk/lpc2/boot-loader.html.

Most of the email clients I know of will be smart enough
with the above link with the full stop. For example, Gmail
is just fine with it.

But you are right, some of the email clients
and mail servers may have problems with that.

Xiaofan

You should pay attention only in the bootloader(usb_fwu) part os the
NXP example, which just checks if there is a update written, copies it
over application, confirms sucessfuly copy, erases update and maybe
the update presence flag and boots. Next time there will be no update
nor update flag, so it will run the application.

This bootloader has nothing to do with serial, usb or ethernet what
so ever, it just copies the update or boots the application, and it
could blink leds during the update as you wish.

The application should get the update from serial, usb, ethernet and
so on, and reset since it get its, so bootloader could copy it over.

So you dont need to strip usb from anywhere, use usb_fwu as example
of bootloader and create you application that gets the update from
somewhere.

You should take care that this bootloader example enters user mode
before runs its main(), so you application wont get their
stackpointers set unless you prevent bootloader to do so. You can run
it in supervisor mode and let you application enter user mode before
run you applications main().

Best regards,

__________________________
Ivan Amancio

--- In l..., "ostehaps01" wrote:
>
> Ues.. I have looked at the secondary bootloader from NXP. I just
> wondered if there already was one using serial communication instead
> og USB.
> If I dont find one, then I ofcourse the secondary bootloader at strip
> it for all the USB stuff and implement my own protocol.
>
> The reason why I dont use the LPC bootloader, is because it has to
> interface to some older equipment that has to do the bootloading..
> and it isnt just changing that ole equipment using the ISP commands!!
>
> also, I would like to use a LED while im bootloader, so bootloader
> status can be monitored.
>
> Im not planing to disable the LCP bootloader. The ISP just jumps to
> my application if its not activated.
> On request, the application jumps to my bootloader code and program
> the flash with a new application.
>
> --- In l..., "mxfxluder28" wrote:
> >
> > If you really want to overide LPCs bootloader, what I wouldnt,
> you
> > could start by
> > http://www.cse.unsw.edu.au/~jayas/esdk/lpc2/boot-loader.html.
> >
> > Why you dont simply use a secondary bootloader?
> >
> > Best regards,
> >
> >
> > Ivan Amancio
> >
> > --- In l..., "ostehaps01" wrote:
> > >
> > > Hallo
> > >
> > > Is there any available serial bootloader I could use? Im making
> my own
> > > custom bootloader, because I need to implement a custom protocol.
> So I
> > > cant use the ISP.
> > >
> > > Is there any sample out there I could use as a starting point?
> > > Is there some where I can bye one?
> > >
> > > Thomas
> > >
>