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 >SH4/CQ7750 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="SH3/SE77x9 Hardware Setup"
26 HREF="setup-sh-se77x9.html"><LINK
28 TITLE="SH4/SE7751 Hardware Setup"
29 HREF="setup-sh-se7751.html"></HEAD
40 SUMMARY="Header navigation table"
57 HREF="setup-sh-se77x9.html"
65 >Appendix A. Target Setup</TD
71 HREF="setup-sh-se7751.html"
85 NAME="SETUP-SH-CQ7750">SH4/CQ7750 Hardware Setup</H1
91 NAME="AEN4195">Preparing the board</H2
93 >Make sure the DIP switches on the board are set as follows:
102 CLASS="PROGRAMLISTING"
117 CLASS="PROGRAMLISTING"
126 >If you are using a straight through serial cable which has
127 flow control lines, you will also need to cut JP12 (5-6) as the
128 flow control lines can cause NMIs.</P
135 NAME="AEN4201">eCos GDB Stubs</H2
137 >The eCos installation CD contains a copy of the eCos GDB stubs
138 in binary format which must be programmed into an EPROM or FLASH
139 and installed on the board.</P
145 NAME="AEN4204">Preparing the GDB stubs</H3
147 >These stub preparation steps are not strictly necessary as
148 the eCos distribution ships with pre-compiled stubs in the directory
149 loaders/sh3-cq7708 relative to the installation root.</P
156 NAME="AEN4207">Building the GDB stub image with the eCos Configuration Tool</H3
163 >Start with a new document - selecting the
171 menu item if necessary to do this.</P
180 >Build->Templates</I
183 menu item, and then select the SH3 cq7708 hardware.</P
187 >While still displaying the
192 >Build->Templates</I
195 dialog box, select the stubs package template to build a GDB stub.
207 > Build eCos stubs using
212 >Build->Library</I
218 > When the build completes, the image files can be found
224 subdirectory of the install tree. GDB stub images have the prefix
237 NAME="AEN4227">Building the GDB stub image with ecosconfig</H3
244 >Make an empty directory to contain the build tree,
249 > To build a GDB stub ROM image, enter the command:
258 CLASS="PROGRAMLISTING"
259 >$ ecosconfig new cq7708 stubs </PRE
267 > Enter the commands:
276 CLASS="PROGRAMLISTING"
286 >When the build completes, the image files can be found
292 subdirectory of the install tree. GDB stub images have the prefix
306 NAME="AEN4242">Programming the stubs in EPROM/FLASH</H2
308 >The board can use different sizes of ROMs. Use this table
309 to adjust the board’s jumpers to the ROM sizes you are
318 CLASS="PROGRAMLISTING"
319 >size(kbit) JP7 JP9 JP10 JP11
320 256 2-3 2-3 open open
321 512 1-2 2-3 open open
322 1000 1-2 open open 2-3
323 2000 1-2 1-2 open 2-3
324 4000 1-2 1-2 short 2-3
325 8000 1-2 1-2 short 1-2</PRE
330 >There are two ways to program the stubs. We advise you to
331 use method 1, since it is simpler. Method 2 is unsupported and requires
332 a bit of fiddling.</P
342 >Program the binary stub image into two EPROMs, E and O. EPROM
343 E should contain the even bytes, and O the odd bytes (your EPROM
344 programmer should have the ability to split the image).</P
346 >EPROM E should be installed in socket IC8, and EPROM O should
347 be installed in socket IC4.</P
349 >Set JP6 to 16 bit mode (1-2 soldered, 2-3 cut) Set SW1-4
350 to ON and SW2-1 to OFF.</P
362 >Assuming that the stub binary is smaller than 32 KB, you can
363 install it in a single EPROM.</P
374 >Use it to convert the binary image to the required format.
379 description of what is done, and why it is necessary. </P
387 CLASS="PROGRAMLISTING"
388 > % mkcqrom gdb_module.bin gdb_mangled.bin</PRE
397 into an EPROM and install it in socket IC4</P
399 >Set JP6 to 8 bit mode (cut 1-2, solder 2-3)</P
401 >The GDB stubs allow communication with GDB using the serial
402 port at connector CN7. The communication parameters are fixed at
403 38400 baud, 8 data bits, no parity bit and 1 stop bit (8-N-1). No
404 flow control is employed. Connection to the host computer should
405 be made using a straight through serial cable.</P
413 SUMMARY="Footer navigation table"
424 HREF="setup-sh-se77x9.html"
433 HREF="ecos-user-guide.html"
442 HREF="setup-sh-se7751.html"
452 >SH3/SE77x9 Hardware Setup</TD
458 HREF="appendix-target-setup.html"
466 >SH4/SE7751 Hardware Setup</TD