Hi all, can anybody help me ? I want to simulate startup of program from internal flash memory at location C1'0000H. DAvE has created a startup file for me, but the VECSEG entry was not passed to KEIL IDE. I try the following in startup.
VECSEG DEFR 0FF12H; make new VECSEG known ... _VECSEG EQU 193; lets point VECSEG to C1
You need to setup the interrupt vector somewhere in the chip. Typically this is done in the Startup code. But the chip starts either at 0 or at C0:0. There is no reset option that configures the chip to start at C1:0. So the question is: how does your real target system configure the interrupt vectors to C1:0? I guess you are using some boot loader there. If this is the case, you should also use this boot loader in the simulator. Note: The simulator is able to load multiple applications. See: http://www.keil.com/support/docs/2616.htm
Thanks to KEIL support. Yes I am using a bootloader, but was focussed at start up file to change VECSEG. Very helpfull was your hint with the loading INCREMENTAL directive for the simulator. ( 2616.htm - support/docs ) Now it works ! Stefan