LPC2888 DFU-Flash Question

Started by thonguyen02 June 5, 2008
I use Keil and got the Keil's USB mass storage running.
I flash the code through Ulink Jtag and now I want to update the
software through the usb. NXP has DFU-Flash tool to download the
software to flash through usb.
So does anyone know how I can do like that without using DFU-Flash?

I know that I should erase the flash marker 0xAA55AA55 at 0x104FF800
to make the device work as nxp usb, and I need to write a driver as
DFU-Flash to download file, but I don't know how to begin.

An Engineer's Guide to the LPC2100 Series

I want to do is:
my software has a version number, so I will write a command through
usb endpoint to check that number. If it's older than my new one, then
I will erase the flash marker 0xAA55AA55 then begin download the new
version software and reset.
> -----Original Message-----
> From: l...
> [mailto:l...]On Behalf
> Of thonguyen02
> Sent: Thursday, June 05, 2008 6:43 PM
> To: l...
> Subject: [lpc2000] LPC2888 DFU-Flash Question
> I use Keil and got the Keil's USB mass storage running.
> I flash the code through Ulink Jtag and now I want to update the
> software through the usb. NXP has DFU-Flash tool to download the
> software to flash through usb.
> So does anyone know how I can do like that without using DFU-Flash?
>
> I know that I should erase the flash marker 0xAA55AA55 at 0x104FF800
> to make the device work as nxp usb, and I need to write a driver as
> DFU-Flash to download file, but I don't know how to begin.
>
This might be a starting point for you:
http://www.tnkernel.com/usb_fw_upgrader.html
It's for the LPC214x series, but it might give you some hints.

Mike

I found a DFU-Flash tool work on linux as the same way of NXP
DFU-Flash on window at http://wiki.openmoko.org/wiki/Dfu-util
just set the transfer size at 2048 and it will download to flash.

--- In l..., "Michael Anton" wrote:
>
> > -----Original Message-----
> > From: l...
> > [mailto:l...]On Behalf
> > Of thonguyen02
> > Sent: Thursday, June 05, 2008 6:43 PM
> > To: l...
> > Subject: [lpc2000] LPC2888 DFU-Flash Question
> >
> >
> > I use Keil and got the Keil's USB mass storage running.
> > I flash the code through Ulink Jtag and now I want to update the
> > software through the usb. NXP has DFU-Flash tool to download the
> > software to flash through usb.
> > So does anyone know how I can do like that without using DFU-Flash?
> >
> > I know that I should erase the flash marker 0xAA55AA55 at 0x104FF800
> > to make the device work as nxp usb, and I need to write a driver as
> > DFU-Flash to download file, but I don't know how to begin.
> >
> This might be a starting point for you:
> http://www.tnkernel.com/usb_fw_upgrader.html
> It's for the LPC214x series, but it might give you some hints.
>
> Mike
>