The linker command file should be changed. Below is the command lines required to support bootloader:
.ApplicationCode :
{
F_Pcode_start_addr = .;
#Serial bootloader configuration section
WRITEH(0xE9C8); # H/W RESET vector: JSR 0x0086 instruction opcode. Application code starts at the address
WRITEH(0x0086); # 0x0080 when serial bootloader support is enabled. JSR insctruction have
# to be placed at address 0x0080.
WRITEH(0xE9C8); # COP RESET vector: JSR 0x0086 instruction opcode. Application code starts at the address
WRITEH(0x0086); # 0x0080 when serial bootloader support is enabled. JSR insctruction have
# to be placed at address 0x0080.
WRITEH(0); # Dummy word
#Bootloader start delay in seconds
# In this case, it is 5s
WRITEH(0xfe00+5); # Bootloader start delay config word at address 0x0085. Possible values 0-255.
# .text sections
OBJECT (F_EntryPoint, Cpu.c) # The function _EntryPoint have to be placed at the beginning of the code
# section for proper functionality of the serial bootloader.
...