3-2
EPSOn
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
3 SOfTWarE DEVElOPMEnT PrOCEDUrES
As shown above, the tools included with this package handle all software processing required after creating a
source program. All basic operations except debugging are performed in the
GNU17 IDE
(hereafter the
IDE
).
The development flow is outlined below.
(1) Creating a project
Use the
IDE
to create a new project. The system will set up the project file needed to collectively manage the
software resources of the application to be developed and a workspace directory in which those resources are
stored.
(2) Creating a source program
Use the
IDE
editor or a general-purpose editor to create a source file and add it to the project.
(3) Building a program
Start by using the
IDE
to set startup options for the tools from the C compiler to the linker and linker scripts.
Then execute a build process from the
IDE
. The system will execute
make.exe
using the makefile (generated
according to the set content), generating object files in debuggable ‘elf’ format and ROM data files (psa files),
which are created by converting object files into S-record format.
The necessary processing is automatically executed sequentially in the following operations according to the
makefile.
•
Compile (for C sources)
The source files are compiled by the
xgcc
C compiler, generating the object files (.o) are to be input to the
ld
linker.
•
Assemble (assembler sources)
The assembler source files are assembled by the
as
assembler to generate the object files (.o) to be input to
the
ld
linker.
If the source files include preprocessor instructions, use
xgcc
to perform preprocessing and assembly. When
the necessary options are specified,
xgcc
will execute the
cpp
preprocessor and the
as
assembler.
•
Link
The compilation and assembly operations described above will prepare one or multiple object files required
for subsequent processing. The
ld
linker then generates an executable object file capable of being loaded and
executed in the target ROM, namely ‘elf’ format object files that include information required for debugging,
etc.
•
S-record conversion
Launches objcopy/moto2ff/sconv32 and outputs S-record-format ROM data files (psa files) from ‘elf’ format
object files.
Use the
objcopy
object file format conversion utility to create HEX files for writing programs to external
ROM or internal ROM from ‘elf’ format object files generated by the
ld linker
.
Then convert the HEX file for the internal ROM into a Motorola S2 file in which the unused area is filled
with 0xff by
moto2ff
and
sconv32
.
Using the ROM data file created above, perform final verification of program operation on the actual target
board.
(4) Debugging
Use ‘elf’ format object files generated by the
ld linker
and S-record format ROM data file (psa file) to perform
verification and debugging with the
gdb
debugger. Although an ICD can be used to debug hardware as well as
software operation, the
gdb
has simulator mode that allows the PC to emulate device operations as the S1C17
Core and memory models.
Debugger setting and startup can be performed from the
IDE
.
Содержание 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 ...