s5u1c17001c Epson Electronics America, Inc., s5u1c17001c Datasheet - Page 226

no-image

s5u1c17001c

Manufacturer Part Number
s5u1c17001c
Description
Cmos 16-bit Application Specific Controller
Manufacturer
Epson Electronics America, Inc.
Datasheet
5 GNU17 IDE
5-120
The .vector section is defined with the .rodata attribute. Make sure the vector table is written in the
source files, as shown below.
For C sources (vector.c)
For assembler sources (boot.s)
Declare a vector table with const to specify that it be located in the .rodata section.
Example:
Declare a .rodata section and write a vector table following it.
Example:
If you are using an assembler source in which a vector table is written in the .text section and you want
the table to be located in the .vector section, select the desired method from the following options:
Method 1: Editing the source file
Method 2: Editing section information in the IDE (using the source file as is)
If you are not using the .vector section, deselect the [Allocate a specific file to '.vector' section] check
box and edit the .text section in the [Edit Section] dialog box to locate boot.o at the top.
.section .rodata, "a"
.long
(1) Insert a .rodata directive similar to the one shown above before the vector table in the source
(2) In the new project wizard, select the [Allocate a specific file to '.vector' section] check box, then
(1) In the new project wizard, select the [Allocate a specific file to '.vector' section] check box, then
(2) In the [Edit Section] dialog box, change the attribute of the .vector section to .text. (Refer to
const unsigned long vector[] = {
};
.long
.long
.long
.long
file. If a program is written after the vector table, insert a .text directive in front of it and declare
a .text section.
boot.o in the combo box. (If the source is other than boot.s, enter the file name of the source.)
boot.o in the combo box. (If the source is other than boot.s, enter the file name of the source.)
the discussion in the next and the following pages.)
(unsigned long)boot,
(unsigned long)addr_err,
(unsigned long)nmi,
(unsigned long)dummy,
(unsigned long)dummy
DUMMY
DUMMY
BOOT
ADDR_ERR
NMI
:
:
EPSON
; 0x0
; 0x4
; 0x8
; 0x48
; 0x4c
(C COMPILER PACKAGE FOR S1C17 FAMILY) (Ver. 1.1)
// 0x0
// 0x4
// 0x8
// 0x48
// 0x4c
0
1
2
18
19
0
1
2
18
19
S5U1C17001C MANUAL

Related parts for s5u1c17001c