📄 setup-sh-edk7708.html
字号:
<!-- Copyright (C) 2003 Red Hat, Inc. --><!-- This material may be distributed only subject to the terms --><!-- and conditions set forth in the Open Publication License, v1.0 --><!-- or later (the latest version is presently available at --><!-- http://www.opencontent.org/openpub/). --><!-- Distribution of the work or derivative of the work in any --><!-- standard (paper) book form is prohibited unless prior --><!-- permission is obtained from the copyright holder. --><HTML><HEAD><TITLE>SH3/EDK7708 Hardware Setup</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos User Guide"HREF="ecos-user-guide.html"><LINKREL="UP"TITLE="Target Setup"HREF="appendix-target-setup.html"><LINKREL="PREVIOUS"TITLE=" Compaq iPAQ PocketPC Hardware Setup"HREF="setup-arm-ipaq.html"><LINKREL="NEXT"TITLE="SH3/CQ7708 Hardware Setup"HREF="setup-sh-cq7708.html"></HEAD><BODYCLASS="SECT1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">eCos User Guide</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="setup-arm-ipaq.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Appendix A. Target Setup</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="setup-sh-cq7708.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SETUP-SH-EDK7708">SH3/EDK7708 Hardware Setup</H1><P>The eCos Developer’s Kit package comes with a ROMwhich provides GDB support for the Hitachi EDK7708 board (a big-endianand a little-endian version). Images of these ROMs are also providedat <TTCLASS="FILENAME">loaders/sh-edk7708/gdbload.bin</TT> and <TTCLASS="FILENAME">loaders/sh-edk7708le/gdbload.bin</TT> underthe root of your eCos installation.</P><P>The ROM is installed to socket U6 on the board. When usingthe big-endian ROM, jumper 9 must be set to 2-3. When using thelittle-endian ROM, jumper 9 must be set to 1-2. Attention shouldbe paid to the correct orientation of the ROM during installation.Only replace the board"s existing ROM using a proper PLCC extractiontool, as the socket would otherwise risk being damaged. </P><P>If you are going to program a new ROM or FLASH using the binaryimage, you may have to experiment to get the right byte-order inthe device. Depending on the programming software you use, it mightbe necessary to enable byte-swapping. If the GDB stub ROM/FLASHyou program does not work, try reversing the byte-order.</P><P>The GDB stub in the EPROM allows communication with GDB usingthe serial port at connector J1. The communication parameters arefixed 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 shouldbe made using the dedicated serial cable included in the EDK package. </P><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN4067">Installing the Stubs into FLASH</H2><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN4069">Preparing the Binaries</H3><P>These two binary preparation steps are not strictly necessaryas the eCos distribution ships with pre-compiled binaries in thedirectory loaders/sh-edk7708 and loaders/sh-edk7708lerelative to the installation root.</P><DIVCLASS="SECT4"><H4CLASS="SECT4"><ANAME="AEN4072">Building the ROM images with the eCos Configuration Tool</H4><P></P><OLTYPE="1"><LI><P>Start with a new document - selecting the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">File->New</I></SPAN> menu item if necessary to do this.</P></LI><LI><P>Choose the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build->Templates</I></SPAN> menu item, and then select the SH EDK7708 hardware.</P></LI><LI><P>While still displaying the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build->Templates</I></SPAN> dialog box, select the “stubs” package templateto build a GDB stub. Click <SPANCLASS="emphasis"><ICLASS="EMPHASIS">OK</I></SPAN>.</P></LI><LI><P>If building a little-endian image, disable the “Usebig-endian mode” option in the SH EDK7708 HAL (CYGHWR_HAL_SH_BIGENDIAN).</P></LI><LI><P>Build eCos using <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build->Library</I></SPAN>. </P></LI><LI><P>When the build completes, the image files can be foundin the bin/ subdirectory of the install tree. GDB stubROM images have the prefix “gdb_module”.</P></LI></OL></DIV><DIVCLASS="SECT4"><H4CLASS="SECT4"><ANAME="AEN4092">Building the ROM images with ecosconfig</H4><P></P><OLTYPE="1"><LI><P>Make an empty directory to contain the build tree,and cd into it.</P></LI><LI><P>To build a GDB stub ROM image, enter the command: <TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">$ ecosconfig new edk7708 stubs</PRE></TD></TR></TABLE> </P></LI><LI><P>If building a little-endian image, uncomment the uservalue in ecos.ecc for CYGHWR_HAL_SH_BIGENDIANand change it to 0. </P></LI><LI><P>Enter the commands: <TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">$ ecosconfig tree $ make </PRE></TD></TR></TABLE></P></LI><LI><P>When the build completes, the image files can be foundin the bin/ subdirectory of the install tree. GDB stubROM images have the prefix “gdb_module”.</P></LI></OL></DIV></DIV><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN4107">Installing the Stubs into ROM or FLASH</H3><P></P><OLTYPE="1"><LI><P>Program the binary image file gdb_module.bininto ROM or FLASH referring to the instructions of your ROM programmer.</P></LI><LI><P>Plug the ROM/FLASH into socket U6. If the imageis little-endian set jumper 9 to 1-2. If the image is big-endianset jumper 9 to 2-3.</P></LI></OL></DIV></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="setup-arm-ipaq.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-user-guide.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="setup-sh-cq7708.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Compaq iPAQ PocketPC Hardware Setup</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="appendix-target-setup.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">SH3/CQ7708 Hardware Setup</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -