S5U1C17001C ManUal
EPSOn
5-133
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
5 gnU17 iDE
5
IDE
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
)
Declare a vector table with
const
to specify that it be located in the
.rodata
section.
Example:
const unsigned long vector[] = {
(unsigned long)boot, // 0x0 0
(unsigned long)addr_err, // 0x4 1
(unsigned long)nmi, // 0x8 2
:
(unsigned long)dummy, // 0x48 18
(unsigned long)dummy // 0x4c 19
};
For assembler sources (
boot.s
)
Declare a
.rodata
section and write a vector table following it.
Example:
.section .rodata, "a"
.long BOOT
; 0x0 0
.long ADDR_ERR
; 0x4 1
.long NMI
; 0x8 2
:
.long
DUMMY
; 0x48 18
.long
DUMMY
; 0x4c 19
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
(1) Insert a
.rodata
directive similar to the one shown above before the vector table in the source
file. If a program is written after the vector table, insert a
.text
directive in front of it and declare
a
.text
section.
(2) In the new project wizard, select the [Allocate a specific file to '.vector' section] check box, then
boot.o
in the combo box. (If the source is other than
boot.s
, enter the file name of the source.)
Method 2: Editing section information in the
iDE
(using the source file as is)
(1) In the new project wizard, select the [Allocate a specific file to '.vector' section] check box, then
boot.o
in the combo box. (If the source is other than
boot.s
, enter the file name of the source.)
(2) In the [Edit Section] dialog box, change the attribute of the
.vector
section to
.text
. (Refer to
the discussion in the next and the following pages.)
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.
Содержание S5U1C17001C
Страница 6: ......
Страница 17: ...1 General S5U1C17001C Manual 1 General ...
Страница 18: ......
Страница 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Страница 22: ......
Страница 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Страница 30: ......
Страница 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Страница 104: ......
Страница 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Страница 122: ......
Страница 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Страница 366: ......
Страница 385: ...7 Library S5U1C17001C Manual 7 library ...
Страница 386: ......
Страница 404: ...7 18 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 7 liBrary THIS PAGE IS BLANK ...
Страница 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Страница 406: ......
Страница 438: ...8 32 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 8 aSSEMBlEr THIS PAGE IS BLANK ...
Страница 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Страница 440: ......
Страница 448: ...9 8 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 9 linkEr THIS PAGE IS BLANK ...
Страница 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Страница 450: ......
Страница 625: ...10 174 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 10 DEBUggEr THIS PAGE IS BLANK ...
Страница 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Страница 627: ......
Страница 695: ...11 68 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 11 OTHEr TOOlS THIS PAGE IS BLANK ...
Страница 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...