I need to be able to hold two applications on-chip at a time so I can choose which one to run (using a code based reset giving a start vector)
T89C51AC2
The default one will be compiled for the 'standard' memory location (0x0000?), and the second one, that will be flashed into memory via IAP at 0x4000.
My initial thoughts to compile a hex file for this upper location (in uVision 3) would be to change the project settings:
C51 Tab : (checked) Interrupt Vectors At Address: 0x4000 BL51 Locate Tab : (Un-Checked) Use Memory Layout from Target Dialog BL51 Locate Tab : Code 0x4000
This 'seems' to produce a hex file located at 0x4000 (although I am not yet ready to test its operation)
However, this hex file contains a line that writes to memory location 0x0000. Is this normal? This would overwrite data placed there by the lower memory hex file?!
Or, am I approaching this the wrong way, because something doesn't feel right here.