This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

relocating startup code

Hi,

I have an application (let's say "myloader") running (i.e. from
0x0000-0x61FF) on mine LPC2106, the only thing that it does is to
listen to the serial port and donwload a new program (let's say
"appl_user") into the FLASH (of course, in the sectors not still used,
ie from 0x6200 - 0x1A000).

How can I launch the "appl_user" from the "myloader"?
For me it's very important to be sure that if for some reasons the
hardware gets a reset, i restart from "myloader" application every time.
In other words, I do not want to loose the reset handler information
stored in the startup code of "myloader"
.

How do I manage the startup code of the two different programms? Can I
relocate the startup code of "appl_user" in an higher memory location
(insted of zero)?
And if this is possible, I suppose I have to modify startup code of
the "appl_user" so that is not going to change the reset handler function.

0