Yahoo Groups archive

Lpc2000

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

Message

Code Loader

2005-02-01 by Richard

I am working on a scheme to update the code in an LPC2106 via
Ethernet.  The application is done and working, I have connection to
the host via ethernet.  I have been asked to allow code updates via
the ethernet.  I have IAP calls functioning.  Our code will remain
under 64KB so there will be room for new code in on-chip flash.  Right
now my plan is to:

Build the loader into the existing code.  This will, when prompted by
the host, prepare and erase upper sectors, accept a chunk (512B or
8KB?) of the new code from the host, and store it in RAM.

Each chunk of new code will be programmed to the blank sectors after a
CRC check.

When done, a global CRC will be performed.

Questions:

How to transfer execution to the new code segment?  

What about the vector table?

Other ignorance on my part?

Thanks

Rich

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.