Hi All
I am using ARM controller LPC 2420 in my project where I am using an external flash memory to store the firmware code.Earlier I was using serial interface to upgrade the firmware of the controller using a VB application. But now I want to upgrade the firmware of the controller directly by using USB pen drive. So can anyone please suggest how to implement this.
HI.
I THINK U GOT TO READ THE FIRMWARE FROM THE USB MEMURY STICK AND WRITE IT TO THE FLASH ON THE CHIP.
Hi Paluur
Thanks for your reply.Since I am new to this,I wanted to know that how to read the hex(firmware) file from usb drive.
I WILL DO IT WIL FILE. LIKE FREAD("USBFILE",R) AND WRITE LIKE FWRITE("FLASH",W).
U USE .NET
I am using embedded C in Keil.
YES
So all you're changing is the way the data gets to the micro - isn't it?
As far as programming the flash goes, where the data came from is irrelevant.
If you want to get the data from a file on some storage medium then, obviously, you will need a suitable file system to do that - the clue is in the name.
For USB, you will need to provide a USB Host.
Keil middleware has USB Host and file system components:
http://www2.keil.com/mdk5
plenty of 3rd-party alternatives are available...
Hi Andrew
Thanks for your reply and maybe I did not put my doubt clearly earlier. So, we have a product based on LPC 2420 wherein we were providing an option of firmware upgrade through a serial port (UART) earlier.But, now we want to provide the option of firmware upgrade through a USB pendrive which will contain the HEX file(firmware file). Hardware configuration for the USB Host has been already done.All we want now is that, as soon as we connect the pendrive we can read the Hex file from it and reprogram our serial flash which is connected to the microcontroller. Please suggest a way forward to this.
P.S.-:We have only one serial program flash
It's all in my previous reply!
BTW: wouldn't it be a lot easier to just put the binary image on the USB drive - rather than having to do hex decoding ... ?