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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [user-guide/] [setup-sh-edk7708.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
>SH3/EDK7708 Hardware Setup</TITLE
>SH3/EDK7708 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=" Compaq iPAQ PocketPC Hardware Setup"
TITLE=" Compaq iPAQ PocketPC Hardware Setup"
HREF="setup-arm-ipaq.html"><LINK
HREF="setup-arm-ipaq.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="SH3/CQ7708 Hardware Setup"
TITLE="SH3/CQ7708 Hardware Setup"
HREF="setup-sh-cq7708.html"></HEAD
HREF="setup-sh-cq7708.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-arm-ipaq.html"
HREF="setup-arm-ipaq.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-cq7708.html"
HREF="setup-sh-cq7708.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-EDK7708">SH3/EDK7708 Hardware Setup</H1
NAME="SETUP-SH-EDK7708">SH3/EDK7708 Hardware Setup</H1
><P
><P
>The eCos Developer&#8217;s Kit package comes with a ROM
>The eCos Developer&#8217;s Kit package comes with a ROM
which provides GDB support for the Hitachi EDK7708 board (a big-endian
which provides GDB support for the Hitachi EDK7708 board (a big-endian
and a little-endian version). Images of these  ROMs are also provided
and a little-endian version). Images of these  ROMs are also provided
at <TT
at <TT
CLASS="FILENAME"
CLASS="FILENAME"
>loaders/sh-edk7708/gdbload.bin</TT
>loaders/sh-edk7708/gdbload.bin</TT
> and
> and
          <TT
          <TT
CLASS="FILENAME"
CLASS="FILENAME"
>loaders/sh-edk7708le/gdbload.bin</TT
>loaders/sh-edk7708le/gdbload.bin</TT
> under
> under
the root of your eCos installation.</P
the root of your eCos installation.</P
><P
><P
>The ROM is installed to socket U6 on the board. When using
>The ROM is installed to socket U6 on the board. When using
the big-endian ROM, jumper 9 must be set to 2-3. When using the
the big-endian ROM, jumper 9 must be set to 2-3. When using the
little-endian ROM, jumper 9 must be set to 1-2. Attention should
little-endian ROM, jumper 9 must be set to 1-2. Attention should
be paid to the correct orientation of the ROM during installation.
be paid to the correct orientation of the ROM during installation.
Only replace the board&quot;s existing ROM using a proper PLCC extraction
Only replace the board&quot;s existing ROM using a proper PLCC extraction
tool, as the socket would otherwise risk being damaged. </P
tool, as the socket would otherwise risk being damaged. </P
><P
><P
>If you are going to program a new ROM or FLASH using the binary
>If you are going to program a new ROM or FLASH using the binary
image, you may have to experiment to get the right byte-order in
image, you may have to experiment to get the right byte-order in
the device. Depending on the programming software you use, it might
the device. Depending on the programming software you use, it might
be necessary to enable byte-swapping.  If the GDB stub ROM/FLASH
be necessary to enable byte-swapping.  If the GDB stub ROM/FLASH
you program does not work, try reversing the byte-order.</P
you program does not work, try reversing the byte-order.</P
><P
><P
>The GDB stub in the EPROM allows communication with GDB using
>The GDB stub in the EPROM allows communication with GDB using
the serial port at connector J1. The communication parameters are
the serial port at connector J1. The communication parameters are
fixed at 38400 baud, 8 data bits, no parity bit and 1 stop bit (8-N-1).
fixed at 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
No flow control is employed. Connection to the host computer should
be made using the dedicated serial cable included in the EDK package. </P
be made using the dedicated serial cable included in the EDK package. </P
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN4067">Installing the Stubs into FLASH</H2
NAME="AEN4067">Installing the Stubs into FLASH</H2
><DIV
><DIV
CLASS="SECT3"
CLASS="SECT3"
><H3
><H3
CLASS="SECT3"
CLASS="SECT3"
><A
><A
NAME="AEN4069">Preparing the Binaries</H3
NAME="AEN4069">Preparing the Binaries</H3
><P
><P
>These two binary preparation steps are not strictly necessary
>These two binary preparation steps are not strictly necessary
as the eCos distribution ships with pre-compiled binaries in the
as the eCos distribution ships with pre-compiled binaries in the
directory loaders/sh-edk7708 and loaders/sh-edk7708le
directory loaders/sh-edk7708 and loaders/sh-edk7708le
relative to the installation root.</P
relative to the installation root.</P
><DIV
><DIV
CLASS="SECT4"
CLASS="SECT4"
><H4
><H4
CLASS="SECT4"
CLASS="SECT4"
><A
><A
NAME="AEN4072">Building the ROM images with the eCos Configuration Tool</H4
NAME="AEN4072">Building the ROM images with the eCos Configuration Tool</H4
><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 SH EDK7708 hardware.</P
 menu item, and then select the SH EDK7708 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 &#8220;stubs&#8221; package template
 dialog box, select the &#8220;stubs&#8221; package template
to build a GDB stub. Click
to build a GDB stub. 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
>If building a little-endian image, disable the &#8220;Use
>If building a little-endian image, disable the &#8220;Use
big-endian mode&#8221; option in the SH EDK7708 HAL (CYGHWR_HAL_SH_BIGENDIAN).</P
big-endian mode&#8221; option in the SH EDK7708 HAL (CYGHWR_HAL_SH_BIGENDIAN).</P
></LI
></LI
><LI
><LI
><P
><P
>Build eCos using
>Build eCos 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 bin/ subdirectory of the install tree. GDB stub
in the bin/ subdirectory of the install tree. GDB stub
ROM images have the prefix &#8220;gdb_module&#8221;.</P
ROM images have the prefix &#8220;gdb_module&#8221;.</P
></LI
></LI
></OL
></OL
></DIV
></DIV
><DIV
><DIV
CLASS="SECT4"
CLASS="SECT4"
><H4
><H4
CLASS="SECT4"
CLASS="SECT4"
><A
><A
NAME="AEN4092">Building the ROM images with ecosconfig</H4
NAME="AEN4092">Building the ROM images with ecosconfig</H4
><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 edk7708 stubs</PRE
>$ ecosconfig new edk7708 stubs</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
>
>
 </P
 </P
></LI
></LI
><LI
><LI
><P
><P
>If building a little-endian image, uncomment the user
>If building a little-endian image, uncomment the user
value in ecos.ecc for CYGHWR_HAL_SH_BIGENDIAN
value in ecos.ecc for CYGHWR_HAL_SH_BIGENDIAN
and change it to 0.   </P
and change it to 0.   </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 bin/ subdirectory of the install tree. GDB stub
in the bin/ subdirectory of the install tree. GDB stub
ROM images have the  prefix &#8220;gdb_module&#8221;.</P
ROM images have the  prefix &#8220;gdb_module&#8221;.</P
></LI
></LI
></OL
></OL
></DIV
></DIV
></DIV
></DIV
><DIV
><DIV
CLASS="SECT3"
CLASS="SECT3"
><H3
><H3
CLASS="SECT3"
CLASS="SECT3"
><A
><A
NAME="AEN4107">Installing the Stubs into ROM or FLASH</H3
NAME="AEN4107">Installing the Stubs into ROM or FLASH</H3
><P
><P
></P
></P
><OL
><OL
TYPE="1"
TYPE="1"
><LI
><LI
><P
><P
>Program the binary image file gdb_module.bin
>Program the binary image file gdb_module.bin
into ROM or FLASH referring to the instructions of your ROM programmer.</P
into ROM or FLASH referring to the instructions of your ROM programmer.</P
></LI
></LI
><LI
><LI
><P
><P
>Plug the ROM/FLASH into socket U6. If the image
>Plug the ROM/FLASH into socket U6. If the image
is little-endian set jumper 9 to 1-2. If the image is big-endian
is little-endian set jumper 9 to 1-2. If the image is big-endian
set jumper 9 to 2-3.</P
set jumper 9 to 2-3.</P
></LI
></LI
></OL
></OL
></DIV
></DIV
></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-arm-ipaq.html"
HREF="setup-arm-ipaq.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-cq7708.html"
HREF="setup-sh-cq7708.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"
>Compaq iPAQ PocketPC Hardware Setup</TD
>Compaq iPAQ PocketPC 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"
>SH3/CQ7708 Hardware Setup</TD
>SH3/CQ7708 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.