Forums

In progress: IAP from external miniSD card and/or USB

Started by smt5211 February 4, 2005

Hi,

Does anyone have sample source code for a bootloader, for the LPC2106?
We wish to upgrade an application. We can't use RS232, so we have to
write our own.

We are doing IAP from an external miniSD flash memory card. Later on,
we are going to do IAP via USB, with a cache in internal or external
memory to preserve the applications integrity, even if power is lost
during a bootload.

I have already written a number of bootloaders, for the Microchip
PIC16F87x, PIC18Fx52, and Atmel ATmega8/32/64/128, but dont want to
reinvent the wheel.

Best regards,
Shane (BEng. Elec. Hons.)



An Engineer's Guide to the LPC2100 Series


Shane,

I contacted Philips recently regarding the code for their boot loader
and was told that it was proprietary and would not be made public. I
can't imagine why that is because it would be a real help to some of us.

Would it be possible to get code for your your miniSD driver? That
would make a great contribution to this groups file section.

Best Regards,

Dave Sidlauskas --- In , "smt5211" <from-yahoo@d...> wrote:
>
> Hi,
>
> Does anyone have sample source code for a bootloader, for the LPC2106?
> We wish to upgrade an application. We can't use RS232, so we have to
> write our own.
>
> We are doing IAP from an external miniSD flash memory card. Later on,
> we are going to do IAP via USB, with a cache in internal or external
> memory to preserve the applications integrity, even if power is lost
> during a bootload.
>
> I have already written a number of bootloaders, for the Microchip
> PIC16F87x, PIC18Fx52, and Atmel ATmega8/32/64/128, but dont want to
> reinvent the wheel.
>
> Best regards,
> Shane (BEng. Elec. Hons.)




Hi,

We have made a nice boot loader for LPC chips. It also supports
encryption and it loads the binary file directly from the card. The
file is saved as FAT file using any PC.

Check it out (read the boot loader section in the manual)

http://www.ghielectronics.com/ALFAT.htm

Thanks,

Gus

--- In , "smt5211" <from-yahoo@d...> wrote:
>
> Hi,
>
> Does anyone have sample source code for a bootloader, for the
LPC2106?
> We wish to upgrade an application. We can't use RS232, so we have
to
> write our own.
>
> We are doing IAP from an external miniSD flash memory card. Later
on,
> we are going to do IAP via USB, with a cache in internal or
external
> memory to preserve the applications integrity, even if power is
lost
> during a bootload.
>
> I have already written a number of bootloaders, for the Microchip
> PIC16F87x, PIC18Fx52, and Atmel ATmega8/32/64/128, but dont want to
> reinvent the wheel.
>
> Best regards,
> Shane (BEng. Elec. Hons.)




Hi,

We are currently about 3 weeks away from releasing our own open-source
miniSD based flash bootloader for the LPC210x. We'll upload this into
the files section of this group. I can't make any firm promises, as we
may yet decide to licence a 3rd party bootloader instead of releasing
our own open source one. We dont want to reinvent the wheel.

As an aside, the Ashling tools provides the C source code for a
LPC21xx based RAM bootloader via JTAG. There is also an open source
miniSD driver with FAT16 support at
http://www.egr.msu.edu/classes/ece480/goodman/fall/group05/work/index.html
, and open source FAT12/16/32 support in eCos (www.ecoscentric.com).

Shane.

--- In , "dsidlauskas1" <dsidlauskas@w...> wrote:
>
> Shane,
>
> I contacted Philips recently regarding the code for their boot loader
> and was told that it was proprietary and would not be made public. I
> can't imagine why that is because it would be a real help to some of us.
>
> Would it be possible to get code for your your miniSD driver? That
> would make a great contribution to this groups file section.
>
> Best Regards,
>
> Dave Sidlauskas > --- In , "smt5211" <from-yahoo@d...> wrote:
> >
> > Hi,
> >
> > Does anyone have sample source code for a bootloader, for the LPC2106?
> > We wish to upgrade an application. We can't use RS232, so we have to
> > write our own.
> >
> > We are doing IAP from an external miniSD flash memory card. Later on,
> > we are going to do IAP via USB, with a cache in internal or external
> > memory to preserve the applications integrity, even if power is lost
> > during a bootload.
> >
> > I have already written a number of bootloaders, for the Microchip
> > PIC16F87x, PIC18Fx52, and Atmel ATmega8/32/64/128, but dont want to
> > reinvent the wheel.
> >
> > Best regards,
> > Shane (BEng. Elec. Hons.)




Great! It's a very nice idea... I'd love to see that code, and try to
port it to Atmel Dataflash... They are cheaper than a miniSD, a
2MBytes version is enought to archive several codes, and then select
which one you want to program, it's fast...
Congratulations... great project!
Kimi

--- In , "smt5211" <from-yahoo@d...> wrote:
>
> Hi,
>
> We are currently about 3 weeks away from releasing our own open-source
> miniSD based flash bootloader for the LPC210x. We'll upload this into
> the files section of this group. I can't make any firm promises, as we
> may yet decide to licence a 3rd party bootloader instead of releasing
> our own open source one. We dont want to reinvent the wheel.
>
> As an aside, the Ashling tools provides the C source code for a
> LPC21xx based RAM bootloader via JTAG. There is also an open source
> miniSD driver with FAT16 support at
>
http://www.egr.msu.edu/classes/ece480/goodman/fall/group05/work/index.html
> , and open source FAT12/16/32 support in eCos (www.ecoscentric.com).
>
> Shane.
>
> --- In , "dsidlauskas1" <dsidlauskas@w...> wrote:
> >
> > Shane,
> >
> > I contacted Philips recently regarding the code for their boot loader
> > and was told that it was proprietary and would not be made public. I
> > can't imagine why that is because it would be a real help to some
of us.
> >
> > Would it be possible to get code for your your miniSD driver? That
> > would make a great contribution to this groups file section.
> >
> > Best Regards,
> >
> > Dave Sidlauskas
> >
> >
> > --- In , "smt5211" <from-yahoo@d...> wrote:
> > >
> > > Hi,
> > >
> > > Does anyone have sample source code for a bootloader, for the
LPC2106?
> > > We wish to upgrade an application. We can't use RS232, so we have to
> > > write our own.
> > >
> > > We are doing IAP from an external miniSD flash memory card.
Later on,
> > > we are going to do IAP via USB, with a cache in internal or external
> > > memory to preserve the applications integrity, even if power is lost
> > > during a bootload.
> > >
> > > I have already written a number of bootloaders, for the Microchip
> > > PIC16F87x, PIC18Fx52, and Atmel ATmega8/32/64/128, but dont want to
> > > reinvent the wheel.
> > >
> > > Best regards,
> > > Shane (BEng. Elec. Hons.)