📄 setup-arm-pid.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>ARM PID 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="SPARClite Architectural Simulator Setup"HREF="setup-sparclite-sim.html"><LINKREL="NEXT"TITLE="ARM AEB-1 Hardware Setup"HREF="setup-arm-aeb1.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-sparclite-sim.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-arm-aeb1.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SETUP-ARM-PID">ARM PID Hardware Setup</H1><P>eCos comes with two ROM images that provide GDB support forthe ARM PID board. The first ROM image provides a port of the CygMonROM monitor, which includes a command-line interface and a GDB remotestub. The second ROM image provides a remote GDB stub only, whichis a minimal environment for downloading and debugging eCos programssolely using GDB.</P><P>eCos, CygMon and the GDB stubs all support the PID fittedwith both ARM7T and ARM9 daughterboards. CygMon and the stubs canbe programmed into either the programmable ROM (U12) or the FLASH(U13). Pre-built forms of both ROM images are provided in the directoryloaders/arm-pid under the root of your eCos installation,along with a tool that will program the stubs into the FLASH memory onthe board. CygMon images are prefixed with the name 'cygmon' andGDB stub ROM images are given the prefix 'gdb_module'.Images may be provided in a number of formats including ELF (.imgextension), binary (.bin extension) and SREC (.srec extension).Note that some unreliability has been experienced in downloadingfiles using Angel 1.00. Angel 1.02 appears to be more robust inthis application.</P><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN3542">Installing the Stubs into FLASH</H2><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN3544">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/arm-pid relative to the installationroot.</P></DIV><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN3547">Building the ROM images with the eCos Configuration Tool</H3><P></P><OLTYPE="1"><LI><P>Start with a new document - selecting the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">File</I></SPAN>-><SPANCLASS="emphasis"><ICLASS="EMPHASIS">New</I></SPAN> menu item if necessary to do this.</P></LI><LI><P>Choose the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build</I></SPAN>-><SPANCLASS="emphasis"><ICLASS="EMPHASIS">Templates</I></SPAN> menu item, and then select the ARM PID hardware.</P></LI><LI><P>While still displaying the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build</I></SPAN>-><SPANCLASS="emphasis"><ICLASS="EMPHASIS">Templates</I></SPAN> dialog box, select either the "stubs" package template to builda GDB stub image, or the "cygmon" template to build the CygMon ROMMonitor. Click <SPANCLASS="emphasis"><ICLASS="EMPHASIS">OK</I></SPAN>.</P></LI><LI><P>Build eCos using <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build</I></SPAN>-><SPANCLASS="emphasis"><ICLASS="EMPHASIS">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". CygMon imageshave the prefix "cygmon".</P></LI></OL></DIV><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN3569">Building the ROM images with ecosconfig</H3><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:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">$ ecosconfig new pid stubs</PRE></TD></TR></TABLE><P>or to build a CygMon ROM monitor image, enter the command:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">$ ecosconfig new pid cygmon</PRE></TD></TR></TABLE></LI><LI><P>Enter the commands:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">$ ecosconfig tree$ make</PRE></TD></TR></TABLE></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". CygMon imageshave the prefix "cygmon".</P></LI></OL></DIV><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN3584">Building the FLASH Tool with the eCos Configuration Tool</H3><P></P><OLTYPE="1"><LI><P>Start with a new document - selecting the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">File</I></SPAN>-><SPANCLASS="emphasis"><ICLASS="EMPHASIS">New</I></SPAN> menu item if necessary to do this.</P></LI><LI><P>Choose the<SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build</I></SPAN>-><SPANCLASS="emphasis"><ICLASS="EMPHASIS">Templates</I></SPAN> menu item, and then select the ARM PID hardware.</P></LI><LI><P>Enable the "Build flash programming tool" option in theARM PID HAL (CYGBLD_BUILD_FLASH_TOOL)and resolve any resulting configuration conflicts.</P></LI><LI><P>Build eCos using <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build</I></SPAN>-><SPANCLASS="emphasis"><ICLASS="EMPHASIS">Library</I></SPAN></P></LI><LI><P>When the build completes, the FLASH tool image file canbe found in the bin/ subdirectory of the install tree,with the prefix "prog_flash"</P></LI></OL></DIV><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN3603">Building the FLASH Tool with ecosconfig</H3><P></P><OLTYPE="1"><LI><P> Make an empty directory to contain the build tree,and cd into it </P></LI><LI><P>Enter the command:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">$ ecosconfig new pid</PRE></TD></TR></TABLE></LI><LI><P>Edit the file ecos.ecc and enable the option CYGBLD_BUILD_FLASH_TOOLby uncommenting its user_value property and setting itto 1.</P></LI><LI><P>Enter the commands:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">$ ecosconfig resolve</PRE></TD></TR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -