Page 64 Epson Research and Development
Vancouver Design Center
S1D13705 Programming Notes and Examples
X27A-G-002-03 Issue Date: 02/01/22
9.5 Porting LIBSE to a new target platform
Building Epson Research and Development applications like a simple HelloApp for a new
target platform requires 3 things, the HelloApp code, the 13705HAL library, and a some
standard C functions (portable ones are encapsulated in our mini C library LIBSE).
Components needed to build 13705 HAL application
For example, when building HELLOAPP.EX E for the Intel 16-bit platform, you need the
HELLOAPP source files, the 13705HAL library and its include files, and some Standard C
library functions (which in this case would be supplied by the compiler as part of its run-
time library). As this is a DOS .EXE application, you do not need to supply start-up code
that sets up the chip selects or interrupts, etc... What if you wanted to build the application
for an SH-3 target, one not running DOS?
Before you can build that application to load onto the target, you need to build a C library
for the target that contains enough of the Standard C functions (like sprintf and strcpy) to
let you build the application. Epson Research and Development supplies the LIBSE for th is
purpose, but your compiler may come with one included. You also need to build the
13705HAL library for the target. This librar y is the graphics chip dependent portion of t he
code. Finally, you need to build the final application, linked together with the libraries
described earlier. The following examples assume that you have a copy of the complete
source code for the S1D13705 utilities, including the nmake makefiles, as well as a copy of
the GNU Compiler v2.7-96q3a for Hitachi SH3. These are available on the World Wide
Web at http://www.erd.epson.com.
HelloApp Source code
13705HAL Library
HelloApp C Library Functions (LIBSE for embedded platforms)