s5u1c33000c Epson Electronics America, Inc., s5u1c33000c Datasheet - Page 347

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
16.9.11 Big-Endian Support
The tools from the C compiler to the linker and the libraries support only the little-endian format. Be aware that
the C compiler cannot create srf files that can be loaded to big-endian areas. However, data can be processed in
big-endian format with the debugger.
To specify big-endian area
Operations of debugging commands
Difference in simulator mode
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
(1) db, dh, dw, fb, fh, fw, mv, mvh, mvw, eb, eh, ew commands
(2) sy, sa, sw (@) commands
(3) lh, lf commands
(4) sfl, lfl commands
(5) Watched data
The map information in the parameter file is used to set endian information to the debugger. To set the area
format to big-endian, describe letter "B" after the <end address>. However, the S1C33 chip to be developed
must be a model that supports big-endian format. Furthermore, the internal memory (ROM, RAM and I/O)
cannot be set to big-endian. In addition to specify this parameter file at invocation of the db33, the endian
control register in the S1C33 chip must be set correctly (refer to the "Technical Manual").
In simulator mode, the endian format is determined by the parameter file only.
Refer to Section 16.11 for details of the parameter file.
These commands read/write data in byte, half word and word units according to the data type, so data is
processed and displayed with the endian format of the area to be accessed.
These commands read data in byte units regardless of the data type, and then configures the read data
according to the specified data type. Data is displayed after swapped if the endian format and data type need
it. Therefore, data is not displayed correctly if the endian settings of the BCU and the parameter file are
different.
These commands swap data according to the endian format and write in half word units. Therefore, a
program created by the C compiler cannot be loaded to a big-endian area properly.
The sfl command does not save the endian information. The lfl command makes the map information by
adding the endian information in the parameter file to the information read from the S5U1C33104H.
Therefore, the parameter file used when data was saved by the sfl command must be specified when
invoking the debugger.
Data in the watched address set by the w command is handled in word units, so it is displayed according to
the endian format of the area.
In simulator mode, the address including the TTBR register can be set to big-endian. In this case, the trap
table base address should be set as follows:
The contents to be written to 0x48134 in little-endian must be written to 0x48137.
The contents to be written to 0x48135 in little-endian must be written to 0x48136.
The contents to be written to 0x48136 in little-endian must be written to 0x48135.
The contents to be written to 0x48137 in little-endian must be written to 0x48134.
EPSON
CHAPTER 16: DEBUGGER
331

Related parts for s5u1c33000c