Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] 2 applications in flash

2004-05-11 by Charles Manning

This is the model I typically use for embedded applications.

The "bootloader" is built as a regular chunk of code. THis does two things:
* Checks for a break
* Does a checksum calc on the "application area". 

If there is a break or the checksum fails then the bootloader enters a state 
that allows upgrading the "application area" via RS232.

If there is no break and the checksum is OK, then the "application" is 
executed.

The only difference in building code for the "application area" vs the normal 
build is to use a different ldscript to locate the program at the desired 
offset instead of zero.

-- Charles

On Friday 07 May 2004 21:59, gnurules wrote:
> Hi,
>
>
>
> I'm writing 2 applications for the LPC2106 (they run in flash).
> 1) is a bootcode that checks if there is another application
>    in flash
> 2) is the "regular" application
>
> At startup the bootcode starts and when it finds that there is
> another application it should start this application.
> The problem is that the interruptvectors aren't correct anymore...
>
> Is there anyone with the same problem?
> Can anyone help me with this?
>
>
> Greetz
>
>
>
>
>
> Yahoo! Groups Links
>
>
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.