OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [user-guide/] [setup-sh-cq7750.html] - Diff between revs 28 and 174

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 28 Rev 174
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- This material may be distributed only subject to the terms      -->
<!-- This material may be distributed only subject to the terms      -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- or later (the latest version is presently available at          -->
<!-- or later (the latest version is presently available at          -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- permission is obtained from the copyright holder.               -->
<!-- permission is obtained from the copyright holder.               -->
<HTML
<HTML
><HEAD
><HEAD
><TITLE
><TITLE
>SH4/CQ7750 Hardware Setup</TITLE
>SH4/CQ7750 Hardware Setup</TITLE
><meta name="MSSmartTagsPreventParsing" content="TRUE">
><meta name="MSSmartTagsPreventParsing" content="TRUE">
<META
<META
NAME="GENERATOR"
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
"><LINK
REL="HOME"
REL="HOME"
TITLE="eCos User Guide"
TITLE="eCos User Guide"
HREF="ecos-user-guide.html"><LINK
HREF="ecos-user-guide.html"><LINK
REL="UP"
REL="UP"
TITLE="Target Setup"
TITLE="Target Setup"
HREF="appendix-target-setup.html"><LINK
HREF="appendix-target-setup.html"><LINK
REL="PREVIOUS"
REL="PREVIOUS"
TITLE="SH3/SE77x9 Hardware Setup"
TITLE="SH3/SE77x9 Hardware Setup"
HREF="setup-sh-se77x9.html"><LINK
HREF="setup-sh-se77x9.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="SH4/SE7751 Hardware Setup"
TITLE="SH4/SE7751 Hardware Setup"
HREF="setup-sh-se7751.html"></HEAD
HREF="setup-sh-se7751.html"></HEAD
><BODY
><BODY
CLASS="SECT1"
CLASS="SECT1"
BGCOLOR="#FFFFFF"
BGCOLOR="#FFFFFF"
TEXT="#000000"
TEXT="#000000"
LINK="#0000FF"
LINK="#0000FF"
VLINK="#840084"
VLINK="#840084"
ALINK="#0000FF"
ALINK="#0000FF"
><DIV
><DIV
CLASS="NAVHEADER"
CLASS="NAVHEADER"
><TABLE
><TABLE
SUMMARY="Header navigation table"
SUMMARY="Header navigation table"
WIDTH="100%"
WIDTH="100%"
BORDER="0"
BORDER="0"
CELLPADDING="0"
CELLPADDING="0"
CELLSPACING="0"
CELLSPACING="0"
><TR
><TR
><TH
><TH
COLSPAN="3"
COLSPAN="3"
ALIGN="center"
ALIGN="center"
>eCos User Guide</TH
>eCos User Guide</TH
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="left"
ALIGN="left"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="setup-sh-se77x9.html"
HREF="setup-sh-se77x9.html"
ACCESSKEY="P"
ACCESSKEY="P"
>Prev</A
>Prev</A
></TD
></TD
><TD
><TD
WIDTH="80%"
WIDTH="80%"
ALIGN="center"
ALIGN="center"
VALIGN="bottom"
VALIGN="bottom"
>Appendix A. Target Setup</TD
>Appendix A. Target Setup</TD
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="right"
ALIGN="right"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="setup-sh-se7751.html"
HREF="setup-sh-se7751.html"
ACCESSKEY="N"
ACCESSKEY="N"
>Next</A
>Next</A
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><HR
><HR
ALIGN="LEFT"
ALIGN="LEFT"
WIDTH="100%"></DIV
WIDTH="100%"></DIV
><DIV
><DIV
CLASS="SECT1"
CLASS="SECT1"
><H1
><H1
CLASS="SECT1"
CLASS="SECT1"
><A
><A
NAME="SETUP-SH-CQ7750">SH4/CQ7750 Hardware Setup</H1
NAME="SETUP-SH-CQ7750">SH4/CQ7750 Hardware Setup</H1
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN4195">Preparing the board</H2
NAME="AEN4195">Preparing the board</H2
><P
><P
>Make sure the DIP switches on the board are set as follows:
>Make sure the DIP switches on the board are set as follows:
  </P
  </P
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>SW1-1 ON
>SW1-1 ON
SW1-2 OFF
SW1-2 OFF
SW1-3 ON
SW1-3 ON
SW1-4 OFF</PRE
SW1-4 OFF</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>SW2-1 ON
>SW2-1 ON
SW2-2 ON
SW2-2 ON
SW2-3 OFF
SW2-3 OFF
SW2-4 OFF</PRE
SW2-4 OFF</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><P
><P
>If you are using a straight through serial cable which has
>If you are using a straight through serial cable which has
flow control lines, you will also need to cut JP12 (5-6) as the
flow control lines, you will also need to cut JP12 (5-6) as the
flow control lines can cause NMIs.</P
flow control lines can cause NMIs.</P
></DIV
></DIV
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN4201">eCos GDB Stubs</H2
NAME="AEN4201">eCos GDB Stubs</H2
><P
><P
>The eCos installation CD contains a copy of the eCos GDB stubs
>The eCos installation CD contains a copy of the eCos GDB stubs
in  binary format which must be programmed into an EPROM or FLASH
in  binary format which must be programmed into an EPROM or FLASH
and  installed on the board.</P
and  installed on the board.</P
><DIV
><DIV
CLASS="SECT3"
CLASS="SECT3"
><H3
><H3
CLASS="SECT3"
CLASS="SECT3"
><A
><A
NAME="AEN4204">Preparing the GDB stubs</H3
NAME="AEN4204">Preparing the GDB stubs</H3
><P
><P
>These stub preparation steps are not strictly necessary as
>These stub preparation steps are not strictly necessary as
the eCos distribution ships with pre-compiled stubs in the directory
the eCos distribution ships with pre-compiled stubs in the directory
loaders/sh3-cq7708 relative to the installation root.</P
loaders/sh3-cq7708 relative to the installation root.</P
></DIV
></DIV
><DIV
><DIV
CLASS="SECT3"
CLASS="SECT3"
><H3
><H3
CLASS="SECT3"
CLASS="SECT3"
><A
><A
NAME="AEN4207">Building the GDB stub image with the eCos Configuration Tool</H3
NAME="AEN4207">Building the GDB stub image with the eCos Configuration Tool</H3
><P
><P
></P
></P
><OL
><OL
TYPE="1"
TYPE="1"
><LI
><LI
><P
><P
>Start with a new document - selecting the
>Start with a new document - selecting the
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>File-&#62;New</I
>File-&#62;New</I
></SPAN
></SPAN
>
>
 menu item if necessary to do this.</P
 menu item if necessary to do this.</P
></LI
></LI
><LI
><LI
><P
><P
>Choose the
>Choose the
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>Build-&#62;Templates</I
>Build-&#62;Templates</I
></SPAN
></SPAN
>
>
 menu item, and then select the SH3 cq7708 hardware.</P
 menu item, and then select the SH3 cq7708 hardware.</P
></LI
></LI
><LI
><LI
><P
><P
>While still displaying the
>While still displaying the
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>Build-&#62;Templates</I
>Build-&#62;Templates</I
></SPAN
></SPAN
>
>
 dialog box, select the stubs package template to build a GDB stub.
 dialog box, select the stubs package template to build a GDB stub.
Click
Click
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>OK</I
>OK</I
></SPAN
></SPAN
>.</P
>.</P
></LI
></LI
><LI
><LI
><P
><P
> Build eCos stubs using
> Build eCos stubs using
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>Build-&#62;Library</I
>Build-&#62;Library</I
></SPAN
></SPAN
>.</P
>.</P
></LI
></LI
><LI
><LI
><P
><P
> When the build completes, the image files can be found
> When the build completes, the image files can be found
in the
in the
<TT
<TT
CLASS="FILENAME"
CLASS="FILENAME"
>bin/</TT
>bin/</TT
>
>
 subdirectory of the install tree. GDB stub images have the prefix
 subdirectory of the install tree. GDB stub images have the prefix
<TT
<TT
CLASS="FILENAME"
CLASS="FILENAME"
>gdb_module</TT
>gdb_module</TT
>.</P
>.</P
></LI
></LI
></OL
></OL
></DIV
></DIV
><DIV
><DIV
CLASS="SECT3"
CLASS="SECT3"
><H3
><H3
CLASS="SECT3"
CLASS="SECT3"
><A
><A
NAME="AEN4227">Building the GDB stub image with ecosconfig</H3
NAME="AEN4227">Building the GDB stub image with ecosconfig</H3
><P
><P
></P
></P
><OL
><OL
TYPE="1"
TYPE="1"
><LI
><LI
><P
><P
>Make an empty directory to contain the build tree,
>Make an empty directory to contain the build tree,
and cd into it.</P
and cd into it.</P
></LI
></LI
><LI
><LI
><P
><P
> To build a GDB stub ROM image, enter the command:
> To build a GDB stub ROM image, enter the command:
 
 
<TABLE
<TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>$ ecosconfig new cq7708 stubs </PRE
>$ ecosconfig new cq7708 stubs </PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
></P
></P
></LI
></LI
><LI
><LI
><P
><P
> Enter the commands:
> Enter the commands:
 
 
<TABLE
<TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>$ ecosconfig tree
>$ ecosconfig tree
$ make</PRE
$ make</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
></P
></P
></LI
></LI
><LI
><LI
><P
><P
>When the build completes, the image files can be found
>When the build completes, the image files can be found
in the
in the
<TT
<TT
CLASS="FILENAME"
CLASS="FILENAME"
>bin/</TT
>bin/</TT
>
>
 subdirectory of the install tree. GDB stub images have the prefix
 subdirectory of the install tree. GDB stub images have the prefix
<TT
<TT
CLASS="FILENAME"
CLASS="FILENAME"
>gdb_module</TT
>gdb_module</TT
>.  </P
>.  </P
></LI
></LI
></OL
></OL
></DIV
></DIV
></DIV
></DIV
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN4242">Programming the stubs in EPROM/FLASH</H2
NAME="AEN4242">Programming the stubs in EPROM/FLASH</H2
><P
><P
>The board can use different sizes of ROMs. Use this table
>The board can use different sizes of ROMs. Use this table
to adjust the board&#8217;s jumpers to the ROM sizes you are
to adjust the board&#8217;s jumpers to the ROM sizes you are
using.</P
using.</P
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>size(kbit)    JP7   JP9   JP10   JP11
>size(kbit)    JP7   JP9   JP10   JP11
256           2-3   2-3   open   open
256           2-3   2-3   open   open
512           1-2   2-3   open   open
512           1-2   2-3   open   open
1000          1-2   open  open   2-3
1000          1-2   open  open   2-3
2000          1-2   1-2   open   2-3
2000          1-2   1-2   open   2-3
4000          1-2   1-2   short  2-3
4000          1-2   1-2   short  2-3
8000          1-2   1-2   short  1-2</PRE
8000          1-2   1-2   short  1-2</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><P
><P
>There are two ways to program the stubs. We advise you to
>There are two ways to program the stubs. We advise you to
use method 1, since it is simpler. Method 2 is unsupported and requires
use method 1, since it is simpler. Method 2 is unsupported and requires
a bit of fiddling.</P
a bit of fiddling.</P
><P
><P
><SPAN
><SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>Method 1: </I
>Method 1: </I
></SPAN
></SPAN
> </P
> </P
><P
><P
>Program the binary stub image into two EPROMs, E and O. EPROM
>Program the binary stub image into two EPROMs, E and O. EPROM
E should  contain the even bytes, and O the odd bytes (your EPROM
E should  contain the even bytes, and O the odd bytes (your EPROM
programmer should  have the ability to split the image).</P
programmer should  have the ability to split the image).</P
><P
><P
>EPROM E should be installed in socket IC8, and EPROM O should
>EPROM E should be installed in socket IC8, and EPROM O should
be  installed in socket IC4.</P
be  installed in socket IC4.</P
><P
><P
>Set JP6 to 16 bit mode (1-2 soldered, 2-3 cut)  Set SW1-4
>Set JP6 to 16 bit mode (1-2 soldered, 2-3 cut)  Set SW1-4
to ON and SW2-1 to OFF.</P
to ON and SW2-1 to OFF.</P
><P
><P
></P
></P
><P
><P
><SPAN
><SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>Method2: </I
>Method2: </I
></SPAN
></SPAN
> </P
> </P
><P
><P
>Assuming that the stub binary is smaller than 32 KB, you can
>Assuming that the stub binary is smaller than 32 KB, you can
install it in a single EPROM.</P
install it in a single EPROM.</P
><P
><P
>Compile the <TT
>Compile the <TT
CLASS="FILENAME"
CLASS="FILENAME"
>mkcqrom.c</TT
>mkcqrom.c</TT
> program
> program
found in the <TT
found in the <TT
CLASS="FILENAME"
CLASS="FILENAME"
>misc</TT
>misc</TT
> directory.</P
> directory.</P
><P
><P
>Use it to convert the binary image to the required format.
>Use it to convert the binary image to the required format.
See the  <TT
See the  <TT
CLASS="FILENAME"
CLASS="FILENAME"
>mkcqrom.c</TT
>mkcqrom.c</TT
> source for a
> source for a
description of what is done, and why it is  necessary. </P
description of what is done, and why it is  necessary. </P
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
> % mkcqrom gdb_module.bin gdb_mangled.bin</PRE
> % mkcqrom gdb_module.bin gdb_mangled.bin</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><P
><P
>Program the <TT
>Program the <TT
CLASS="FILENAME"
CLASS="FILENAME"
>gdb_mangled.bin</TT
>gdb_mangled.bin</TT
> file
> file
into an EPROM and install it in  socket IC4</P
into an EPROM and install it in  socket IC4</P
><P
><P
>Set JP6 to 8 bit mode (cut 1-2, solder 2-3)</P
>Set JP6 to 8 bit mode (cut 1-2, solder 2-3)</P
><P
><P
>The GDB stubs allow communication with GDB using the serial
>The GDB stubs allow communication with GDB using the serial
port at connector CN7. The communication parameters are fixed at
port at connector CN7. The communication parameters are fixed at
38400 baud, 8 data bits, no parity bit and 1 stop bit (8-N-1). No
38400 baud, 8 data bits, no parity bit and 1 stop bit (8-N-1). No
flow control is employed. Connection to the host computer should
flow control is employed. Connection to the host computer should
be made using a  straight through serial cable.</P
be made using a  straight through serial cable.</P
></DIV
></DIV
></DIV
></DIV
><DIV
><DIV
CLASS="NAVFOOTER"
CLASS="NAVFOOTER"
><HR
><HR
ALIGN="LEFT"
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
SUMMARY="Footer navigation table"
WIDTH="100%"
WIDTH="100%"
BORDER="0"
BORDER="0"
CELLPADDING="0"
CELLPADDING="0"
CELLSPACING="0"
CELLSPACING="0"
><TR
><TR
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="left"
ALIGN="left"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="setup-sh-se77x9.html"
HREF="setup-sh-se77x9.html"
ACCESSKEY="P"
ACCESSKEY="P"
>Prev</A
>Prev</A
></TD
></TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="ecos-user-guide.html"
HREF="ecos-user-guide.html"
ACCESSKEY="H"
ACCESSKEY="H"
>Home</A
>Home</A
></TD
></TD
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="right"
ALIGN="right"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="setup-sh-se7751.html"
HREF="setup-sh-se7751.html"
ACCESSKEY="N"
ACCESSKEY="N"
>Next</A
>Next</A
></TD
></TD
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="left"
ALIGN="left"
VALIGN="top"
VALIGN="top"
>SH3/SE77x9 Hardware Setup</TD
>SH3/SE77x9 Hardware Setup</TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="appendix-target-setup.html"
HREF="appendix-target-setup.html"
ACCESSKEY="U"
ACCESSKEY="U"
>Up</A
>Up</A
></TD
></TD
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="right"
ALIGN="right"
VALIGN="top"
VALIGN="top"
>SH4/SE7751 Hardware Setup</TD
>SH4/SE7751 Hardware Setup</TD
></TR
></TR
></TABLE
></TABLE
></DIV
></DIV
></BODY
></BODY
></HTML
></HTML
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.