Beginning of this page
Jump to main content

Please note that JavaScript and style sheet are used in this website,
Due to unadaptability of the style sheet with the browser used in your computer, pages may not look as original.
Even in such a case, however, the contents can be used safely.


Worldwide > Japan日本語

Link and Memory Mapping





If a variable is located in the external memory space, an error occurs during linking.

FAQ-ID : CC_Link-0541Last Updated : 2006/07

Q-1
If a variable is located in the external memory space, the following error occurs during linking.

*** ERROR F206 Segment segment name can't allocate to memory - ignored.

The following definition is made with the assembler. How should it be changed?
	        	PUBLIC _val0,_val1
	DATASEG 	DSEG	AT 0F100H
	_val0:  	DS  	2
	_val1:  	DS  	2
	        	END
A-1
To use an external memory space, a memory area must be defined
(internal ROM and internal RAM are defined by default).

In the above case, an error occurs during linking because the memory area of the external memory space is not defined.

Define an external memory area by a link directive, and specify so that the segment is located in that area.
	MEMORY ERAM :(0F100H,0100H)
	MERGE DATASEG := ERAM

-78K0- -78K0S- -78K4-

Is this information useful for you ?


Can it be checked to where the stack is assigned?

FAQ-ID : CC_Link-0543Last Updated : 2006/07

Q-1
The symbol generation specification option -S for resolving stack of the linker is used.
Can it be checked to where the stack is assigned?
A-1
When the symbol generation specification option -S for resolving stack is used, symbol "_@STEND" that has the value of the lowest address of the stack, and symbol "_STBEG" that has the value of the highest address +1 are generated.



Specify the -KP option of the linker so that a public symbol list is output in the link list file.
The stack area is between the above symbols "_@STEND" and "_STBEG".

*** Public symbol list ***

MODULE	ATTR	VALUE	NAME

	NUM	FE20H	_@STBEG 
	NUM	FB7EH	_@STEND

-78K0- -78K0S- -78K4-

Is this information useful for you ?























End of this page.
Top of this page