1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
12 >SH3/EDK7708 Hardware Setup</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos User Guide"
20 HREF="ecos-user-guide.html"><LINK
23 HREF="appendix-target-setup.html"><LINK
25 TITLE=" Compaq iPAQ PocketPC Hardware Setup"
26 HREF="setup-arm-ipaq.html"><LINK
28 TITLE="SH3/CQ7708 Hardware Setup"
29 HREF="setup-sh-cq7708.html"></HEAD
40 SUMMARY="Header navigation table"
57 HREF="setup-arm-ipaq.html"
65 >Appendix A. Target Setup</TD
71 HREF="setup-sh-cq7708.html"
85 NAME="SETUP-SH-EDK7708">SH3/EDK7708 Hardware Setup</H1
87 >The eCos Developer’s Kit package comes with a ROM
88 which provides GDB support for the Hitachi EDK7708 board (a big-endian
89 and a little-endian version). Images of these ROMs are also provided
92 >loaders/sh-edk7708/gdbload.bin</TT
96 >loaders/sh-edk7708le/gdbload.bin</TT
98 the root of your eCos installation.</P
100 >The ROM is installed to socket U6 on the board. When using
101 the big-endian ROM, jumper 9 must be set to 2-3. When using the
102 little-endian ROM, jumper 9 must be set to 1-2. Attention should
103 be paid to the correct orientation of the ROM during installation.
104 Only replace the board"s existing ROM using a proper PLCC extraction
105 tool, as the socket would otherwise risk being damaged. </P
107 >If you are going to program a new ROM or FLASH using the binary
108 image, you may have to experiment to get the right byte-order in
109 the device. Depending on the programming software you use, it might
110 be necessary to enable byte-swapping. If the GDB stub ROM/FLASH
111 you program does not work, try reversing the byte-order.</P
113 >The GDB stub in the EPROM allows communication with GDB using
114 the serial port at connector J1. The communication parameters are
115 fixed at 38400 baud, 8 data bits, no parity bit and 1 stop bit (8-N-1).
116 No flow control is employed. Connection to the host computer should
117 be made using the dedicated serial cable included in the EDK package. </P
123 NAME="AEN4067">Installing the Stubs into FLASH</H2
129 NAME="AEN4069">Preparing the Binaries</H3
131 >These two binary preparation steps are not strictly necessary
132 as the eCos distribution ships with pre-compiled binaries in the
133 directory loaders/sh-edk7708 and loaders/sh-edk7708le
134 relative to the installation root.</P
140 NAME="AEN4072">Building the ROM images with the eCos Configuration Tool</H4
147 >Start with a new document - selecting the
155 menu item if necessary to do this.</P
164 >Build->Templates</I
167 menu item, and then select the SH EDK7708 hardware.</P
171 >While still displaying the
176 >Build->Templates</I
179 dialog box, select the “stubs” package template
180 to build a GDB stub. Click
191 >If building a little-endian image, disable the “Use
192 big-endian mode” option in the SH EDK7708 HAL (CYGHWR_HAL_SH_BIGENDIAN).</P
201 >Build->Library</I
207 >When the build completes, the image files can be found
208 in the bin/ subdirectory of the install tree. GDB stub
209 ROM images have the prefix “gdb_module”.</P
218 NAME="AEN4092">Building the ROM images with ecosconfig</H4
225 >Make an empty directory to contain the build tree,
230 >To build a GDB stub ROM image, enter the command:
239 CLASS="PROGRAMLISTING"
240 >$ ecosconfig new edk7708 stubs</PRE
249 >If building a little-endian image, uncomment the user
250 value in ecos.ecc for CYGHWR_HAL_SH_BIGENDIAN
251 and change it to 0. </P
264 CLASS="PROGRAMLISTING"
274 >When the build completes, the image files can be found
275 in the bin/ subdirectory of the install tree. GDB stub
276 ROM images have the prefix “gdb_module”.</P
286 NAME="AEN4107">Installing the Stubs into ROM or FLASH</H3
293 >Program the binary image file gdb_module.bin
294 into ROM or FLASH referring to the instructions of your ROM programmer.</P
298 >Plug the ROM/FLASH into socket U6. If the image
299 is little-endian set jumper 9 to 1-2. If the image is big-endian
300 set jumper 9 to 2-3.</P
311 SUMMARY="Footer navigation table"
322 HREF="setup-arm-ipaq.html"
331 HREF="ecos-user-guide.html"
340 HREF="setup-sh-cq7708.html"
350 >Compaq iPAQ PocketPC Hardware Setup</TD
356 HREF="appendix-target-setup.html"
364 >SH3/CQ7708 Hardware Setup</TD