Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Embedded > GROUP is an Ill...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 385 of 414
Post > Topic >>

GROUP is an Illegal token in CW5.7?

by "Geoffrey J. Gowey" <gjgowey@[EMAIL PROTECTED] > May 16, 2006 at 08:11 AM

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
 




 2 Posts in Topic:
GROUP is an Illegal token in CW5.7?
"Geoffrey J. Gowey&q  2006-05-16 08:11:45 
Re: GROUP is an Illegal token in CW5.7?
"Geoffrey J. Gowey&q  2006-05-17 09:47:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 1:55:45 CDT 2008.