I'm writing a simple OS for the 8051. I will program my 8051 with the OS and the OS will listen on the UART for incoming 8051 bytecode. Once it receives and checks the bytecode, I want it to install it in memory (ISP flash), run it a variable number of times, and then deinstall it. Is it possible to compile 8051 code without first knowing where in memory it will be located? If not, what modifications must I make for this to work? Thanks, josh
This is nearly identical to the concept of a boot loader, with the exception of the 'deinstall' which may consist of a simple routine to fill the Flash with zero's. See http://www.keil.com/download/docs/bootload.zip.asp