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

no-image

s5u1c17001c

Manufacturer Part Number
s5u1c17001c
Description
Cmos 16-bit Application Specific Controller
Manufacturer
Epson Electronics America, Inc.
Datasheet
3.3.7 Creating ROM Data
Creating data for external ROM or masking data for internal ROM to be incorporated into the target board requires
HEX files. After a program is completed, you must convert the elf format object file into a Motorola S3 format
HEX file, then separate the converted file between those used for external ROM and those used for internal ROM.
To do this, use the object file format conversion utility objcopy.exe provided standard with gnu. For detailed infor-
mation on objcopy.exe, refer to the documents on the gnu utilities or Section 11.4 in this manual.
In addition to this, although an option and output file name cannot be specified, the IDE's [C/C++ Projects] and
[Navigator] views support file conversion into Motorola S3 format through the context menu.
To create a HEX file on the IDE
To create a HEX file using objcopy
Creating the mask data to be presented
S5U1C17001C MANUAL
(C COMPILER PACKAGE FOR S1C17 FAMILY) (Ver. 1.1)
Step 72: Right-click the elf format object file displayed in the [C/C++ Projects] or [Navigator] view to show a
This generates a Motorola S3 format file with the same name as the elf format file and ".sa" file extension.
Open the command prompt window and execute objcopy in the command line shown below.
C:\EPSON\gnu17>objcopy -O srec -R .gbss --srec-forceS3 InputFile OutputFile
-O srec:
-R .gbss:
--srec-forceS3: Specify that the file be output in Motorola S3 format.
InputFile:
OutputFile:
After a program for a type of processor with built-in ROM is completed, you are then requested to present the
masked data for the internal ROM to Seiko Epson.
After creating a Motorola S3 format HEX file with objcopy.exe, confirm that the blank addresses in it are filled
with 0xff data using moto2ff.exe. For detailed information on moto2ff.exe, refer to the sections in which other
tools are described.
The following describes how to create ROM area data by moto2ff.exe.
Open the command prompt window and execute moto2ff in the command line as shown below.
C:\EPSON\gnu17>moto2ff StartAddress BlockSize InputFile
When the command is executed in the form shown above, BlockSize bytes of data are written out from StartAd-
dress in InputFile to an output file (input file name + extension .saf). At this time, the blank addresses are
filled with 0xff.
All data in the address range 0x8000 to 0x17fff in input.sa will be output to a file. Any blank address in this
address range is filled with 0xff data.
Example: To extract all HEX data from input.elf and write it out to output.sa
C:\EPSON\gnu17>objcopy -O srec input.elf output.sa
Example: To output 0x10000 bytes of data from the address 0x8000 in Motorola S3 format input.sa to a
file input.saf
C:\EPSON\gnu17>moto2ff 8000 10000 input.sa
context menu, and then select [Object file conversion] > [Generate an S record file] from the menu.
Select Motorola format for the record format of the output file.
This option specifies that the sections named ".gbss" should not be included in the
output file.
Specify the elf format object file to be converted.
Specify the name of the HEX file to be output.
EPSON
3 SOFTWARE DEVELOPMENT PROCEDURES
3-41

Related parts for s5u1c17001c