Epson S5U1C17001C Manual page 143

Cmos 16-bit single chip microcontroller (c compiler package for s1c17 family) (ver. 3.1)
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

PROVIDE (__END_rodata = .) ;
} > irom
PROVIDE (__START_data_lma = LOADADDR(.data));
PROVIDE (__END_data_lma = LOADADDR(.data) + SIZEOF (.data));
PROVIDE (__START_stack = 0x0007C0);
}
The section map is shown in Figure 7.4.2.1.
__START_text_foo2_lma+SIZEOF(.text_foo2)=__START_text_foo3_lma
__START_text_foo1_lma+SIZEOF(.text_foo1)=__START_text_foo2_lma
__START_data_lma+SIZEOF(.data)=__START_text_foo1_lma
The substance of the .data section is placed on the LMA in the ROM, and it must be copied to the VMA in the RAM
(immediately following the .bss section) before it can be used. The .data section (VMA) in the RAM is a virtual section that
does not exist when the program starts executing. This method should be used for handling variables that have an initial value. In
this example, the .data sections in all the files are combined into one section.
.text_foo1 is the .text section in the foo1.o file. Its actual code is located at the LMA in the ROM and is executed at the
VMA in the RAM. Also the .text_foo2 and .text_foo3 sections are used similarly and the same VMA is set for these three
sections. The RAM area for .text_foo1/2/3 is a shared section used for executing multiple .text sections by replacing the
codes. A program cache for high-speed program execution is realized in this method. The .text sections in other files than these
three files are located in the .text section that follows the .vector section and are executed at the stored address in the ROM.
S5U1C17001C Manual
(Rev. 1.0)
__END_text=__START_data_lma
__END_vector=__START_text
__START_vector=0x8000
__END_data=__START_text_foo1/foo2/foo3
__END_bss=__START_data
__START_bss=0x0
Figure 7.4.2.1 Memory map
Seiko Epson Corporation
ROM
.foo3- .text_foo3
LMA
.foo2- .text_foo2
LMA
.foo1- .text_foo1
LMA
*- .data
LMA
*- .text
LMA=VMA
*-.vector
LMA=VMA
RAM
VMA
foo1/foo2/foo3
VMA
*-.data
VMA
*-.bss
7 Linker
Copy before
using.
Shared section
Virtual section
7-7

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the S5U1C17001C and is the answer not in the manual?

Table of Contents