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