Is there some example code of such second stage bootloader that you use in your project? Thanks in advance, Srdan --- In lpc2000@yahoogroups.com, Richard Duits <yahoo@...> wrote: > > I only use the interrupt vector which jumps to the address read from the > VIC and the SWI vector, which jumps to a fixed address. But you also > copy your vectors to RAM and use the MEMMAP register to remap the > interrupt vectors to RAM. Read the "MEMORY MAPPING CONTROL" section in > the user manual to see how this works. > > Richard. > > > > Srdan Suka wrote: > > Thanks Richard > > > > This solution sounds ok and it seems better than use > > ISP commands. > > How did you solve the problem with reallocation > > of exception vectors? > > > > Thanks again, > > > > Srdan > > > > > > > > --- In lpc2000@yahoogroups.com, Richard Duits <yahoo@> wrote: > > > > > > I implemented a second stage bootloader in the first flash sector that > > > is able to update the flash via a FTDI FT245 usb link. The bootloader > > > checks a signature (a CRC is also possible) and if this is correct, it > > > starts the program from the second flash sector. The program can > > jump to > > > a fixed address (immediately after the exception vectors) to erase the > > > program and start an update procedure. > > > > > > If the update fails, my own bootloader in the first sector will not > > > start the program in the second sector because of an incorrect > > signature > > > or crc and it will run in update mode until a correct program is > > uploaded. > > > > > > A disadvantage is that you need to relocate the exception vectors to > > ram > > > or use the fixed exception vector table from the bootloader. Another > > > disadvantage is (at least with the keil ide) is that the debugger / > > jtag > > > flash programmer does not know how to handle a program that does not > > use > > > sector 0 which I solved by always including the bootloader code in the > > > ide project. > > > > > > Regards, > > > Richard. > > > > > > > > > Srdan Suka wrote: > > > > Hi everyone! > > > > > > > > I am using LPC2103 in my project. LPC is connected to server using > > > > RS485 interface (Semi-duplex). Also I have EEPROM memory connected to > > > > LPC. > > > > I would like to do this if it is possible: > > > > > > > > 1. Using my resident LPC firmware, load new firmware to EEPROM memory. > > > > 2. Load a small program into Flash into first available sector > > > > (this program I would like to use to copy new firmware from > > > > EEPROM to Flash over the existing firmware). > > > > > > > > Is it possible to use ISP GO command to execute "Copy proggram" from > > > > Flash to start copying firmware from EEPROM to flash memory. > > > > What will happen it copy process fails and I overwrite firmware at > > > > 0x0000 0000 address? > > > > Can I "tell" the bootloader alwayws to start the "Copy program" > > unless I > > > > "tell" it that the updating is finishead and the main firmware should > > > > be started? > > > > > > > > Has anyone tried this? > > > > > > > > Thanks :) > > > > > > > > Srdan > > > > > > > > > > > > > > > > > > > > > > > > > SPONSORED LINKS > > Microcontrollers > > <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=mfaAujKZXA2Z_vxre9sGnQ> > > Microprocessor > > <http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=9jjd2D3GOLIESVQssLmLsA> > > Intel microprocessors > > <http://groups.yahoo.com/gads?t=ms&k=Intel+microprocessors&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=OMnZuqMZX95mgutt4B-tDw> > > > > Pic microcontrollers > > <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=Malspbd0T4Rq3M4Q0nHrfw> > > > > > > > > ------------------------------------------------------------------------ > > YAHOO! GROUPS LINKS > > > > * Visit your group "lpc2000 > > <http://groups.yahoo.com/group/lpc2000>" on the web. > > > > * To unsubscribe from this group, send an email to: > > lpc2000-unsubscribe@yahoogroups.com > > <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe> > > > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > > Service <http://docs.yahoo.com/info/terms/>. > > > > > > ------------------------------------------------------------------------ > > >
Message
Re: Updating firmware using ISP GO command?
2006-03-09 by Srdan Suka
Attachments
- No local attachments were found for this message.