Use an offset to link the S-Record File (generated previously) to the application.
The application's PRM file places the application code at address 0x800 in ROM and copies the code to address 0x7000 in RAM. The following listing shows the PRM file.
LINK fiborom.abs NAMES mystart.o fiboram.abs ansis.lib END SECTIONS MY_RAM = READ_WRITE 0x5000 TO 0x53FF; MY_ROM = READ_ONLY 0x0600 TO 0x07FF; PLACEMENT DEFAULT_ROM, ROM_VAR, STRINGS INTO MY_ROM; DEFAULT_RAM INTO MY_RAM; END STACKSIZE 0x100 VECTOR 0 _Startup /* set reset vector on startup function */ HEXFILE fiboram.s1 OFFSET 0xFFFF9800 /* 0x800 - 0x7000 */
If using CodeWarrior tools, then the CodeWarrior IDE passes all the names in the NAMES...END directive directly to the linker. Ensure that the NAMES...END directive is empty.