Hello,
I'm trying to recompile the dBug for a Coldfire 5282 with CW5.7.1844
and have hit a snag. I'm getting an 'Illegal token' error when I
attempt to build. The LCF is:
MEMORY {
sdram : ORIGIN = 0x00000000, LENGTH = 0x01000000
vector_ram : ORIGIN = 0x00000000, LENGTH = 0x00000400
data_ram : ORIGIN = 0x00000400, LENGTH = 0x0001FC00
user_space : ORIGIN = 0x00020000, LENGTH = 0x00FE0000
sram : ORIGIN = 0x20000000, LENGTH = 0x00001000
ext_sram : ORIGIN = 0x30000000, LENGTH = 0x00080000
ipsbar : ORIGIN = 0x40000000, LENGTH = 0x40000000
flash : ORIGIN = 0xF0000000, LENGTH = 0x00080000
ext_flash : ORIGIN = 0xFFE00000, LENGTH = 0x00200000
vector_rom : ORIGIN = 0xFFE00000, LENGTH = 0x00004000
params : ORIGIN = 0xFFE04000, LENGTH = 0x00002000
dbug : ORIGIN = 0xFFE08000, LENGTH = 0x00038000
}
SECTIONS
{
.vectors :
{
vectors.s (.text)
} > vector_rom
.params :
{
params.c (.text)
} > params
.text :
{
*(.text)
___DATA_ROM = .;
} > dbug
GROUP : {
.data LOAD(ADDR(dbug) + SIZEOF(.text)) :
{
___DATA_RAM = .;
*(.data)
*(.code_relocation)
___DATA_END = .;
}
.bss (BSS) :
{
___BSS_START = .;
*(.bss)
*[COMMON]
___BSS_END = .;
___HEAP_START = .;
. = . + 4;
___HEAP_END = .;
___PARAMS_START = .;
. = . + 0x48;
___PARAMS_END = .;
___SP_END = .;
. = . + 0xC00;
___SP_INIT = .;
}
} > data_ram
}
___IPSBAR = ADDR(ipsbar);
___SDRAM = ADDR(sdram);
___SDRAM_SIZE = SIZEOF(sdram);
___SRAM = ADDR(sram);
___SRAM_SIZE = SIZEOF(sram);
___EXT_SRAM = ADDR(ext_sram);
___EXT_SRAM_SIZE = SIZEOF(ext_sram);
___FLASH = ADDR(flash);
___FLASH_SIZE = SIZEOF(flash);
___EXT_FLASH = ADDR(ext_flash);
___EXT_FLASH_SIZE = SIZEOF(ext_flash);
___PARAMS = ADDR(params);
___PARAMS_SIZE = ___PARAMS_END - ___PARAMS_START;
___DBUG_ADDRESS = ADDR(vector_rom);
___DBUG_CODE_START = ADDR(dbug);
___DBUG_CODE_SIZE = SIZEOF(dbug);
___DBUG_SIZE = 0x00040000;
___VECTOR_RAM = ADDR(vector_ram);
___USER_SPACE = ADDR(user_space);
___USER_SPACE_SIZE = SIZEOF(user_space);
Does anyone know why CW is halting on the GROUP line? Originally, this
project looks like it was designed by Freescale to be compiled with CW
4 and I have had to do a few tweaks, but I'm at this last hurdle and
I'm stuck.
Geoff


|