Guoqiang Yang

cx6812 can not link code correctly

Discussion created by Guoqiang Yang on Dec 1, 2008
Latest reply on Dec 2, 2008 by Pedro Palacios
Hi,All,

I use cosmic cx6812 compiler which version is V4.6.8.

I found a  problem in linker.
The configuration in .lkf is this:

+def __FLASH_PAGED_31_START_PHY=0xC4000
+def __FLASH_PAGED_31_START_LOG=0x8000

## PPAGE = 0x31
+seg .ftext -b __FLASH_PAGED_31_START_PHY -o __FLASH_PAGED_31_START_LOG -w __PAGE_SIZE -m __SIZE_OF_FLASH -n .program_31 -sCODE
+seg .const -a .program_31  -n .const_31  -sCODE
#code here
   D:\control_code\CANBoot_DP512_cosmic\canloader.o

+def __END_OF_FLASH_PAGED_31_ACTUAL=pend(.const_31)        

After linking, the map file is following:
D:\control_code\CANBoot_DP512_cosmic\canloader.o:
start 00000000 end 000006c3 length  1731 section .text
start 00003e62 end 0000808c length 16938 section .debug

The linking result is different from my lkf configuration.
What is wrong with my project?
Can anyone help me?

Outcomes