⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setup-arm-ep7211.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!-- 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>Cirrus Logic ARM EP7211 DevelopmentBoard 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="ARM Cogent CMA230 Hardware Setup"HREF="setup-arm-cma230.html"><LINKREL="NEXT"TITLE="Cirrus Logic ARM EP7212 Development BoardHardware Setup"HREF="setup-arm-ep7212.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-cma230.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-ep7212.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SETUP-ARM-EP7211">Cirrus Logic ARM EP7211 DevelopmentBoard Hardware Setup</H1><P>eCos comes with two Flash ROM images that provide GDB supportfor the Cirrus Logic EP7211 Development Board (also known as theEDB7211).. Note that on some board revisions, the board is silk-screenedas EDB7111-2. The first Flash ROM image provides a port of the CygMonROM monitor, which includes a command-line interface and a GDB remotestub. The second Flash ROM image provides a remote GDB stub only.</P><P>Both ROM images are provided in the directory loaders/arm-edb7211under the root of your eCos installation. CygMon images are prefixedwith the name 'edb7211_cygmon' and areprovided in a number of formats including binary (.bin extension)and SREC (.srec) extension. GDB stub ROM images are given the prefix 'edb7211_gdb_module'. </P><P>The ROM images provided for the EP7211 Development Board mustbe programmed into the FLASH. Please refer to the section titled"Loading the ROM image into On-Board flash" on how to program theROM onto the board.</P><P>Both Cygmon and GDB Stub ROMS allow communication with GDBvia the serial connector labelled 'UART 1'. Thecommunication parameters are fixed at 38400 baud, 8 data bits, noparity bit and 1 stop bit (8-N-1). No flow control is employed.Connection to the host computer should be made using a null modem cable.A gender changer may also be required. Note that the GDB Configuration tooluses the serial port identifiers 0 and 1 to identify the EB7211serial ports UART1 and UART2 respectively.</P><P>Both eCos and the ROM images assume the core clock is generatedwith a 3.6864 MHz PLL input. The CPU will be configured to run at73.728MHz.</P><P>Note: The EP7211 CPU needs a two step RESET process. Afterpressing the &grave;URESET' pushbutton, the &grave;WAKEUP' pushbuttonmust be pressed to complete the process.</P><DIVCLASS="NOTE"><BLOCKQUOTECLASS="NOTE"><P><B>Note: </B>When an eCos program is run on an EDB7211 board fitted witheither CygMon or a GDB stub ROM, then the code in ROM loses control.This means that if you require the ability to remotely stop executionon the target, or want thread debugging capabilities, you must includeGDB stub support when configuring eCos.</P></BLOCKQUOTE></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN3826">Building programs for programming into FLASH</H2><P>If your application is to be run directly from FLASH, youmust configure eCos appropriately for "ROM" startup. This can bedone in the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">eCos Configuration Tool</I></SPAN> by settingthe "Startup type" HAL option to "ROM". If using the ecosconfig utility,set the user_value of the CYG_HAL_STARTUPoption in ecos.ecc to "ROM".</P><P>When you have linked your application with eCos, you willthen have an ELF executable. To convert this into a format appropriatefor the Cirrus Logic FLASH download utility, or the dl_7xxxutility on Linux, you can use the utility arm-elf-objcopy, as inthe following example:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">$ arm-elf-objcopy -O binary helloworld.exe helloworld.bin</PRE></TD></TR></TABLE><P>This will produce a binary format image helloworld.bin whichcan be downloaded into FLASH.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN3833">Building the GDB Stub FLASH ROM images</H2><P>Pre-built GDB stubs images are provided in the directory loaders/arm-edb7211 relativeto the root of your eCos installation, but here are instructionson how to rebuild them if you should ever need to.</P><P>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). </P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN3837">Building the ROM images with the eCos Configuration Tool</H2><P></P><OLTYPE="1"><LI><P>Start with a new document - selecting the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">File</I></SPAN>-&#62;<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>-&#62;<SPANCLASS="emphasis"><ICLASS="EMPHASIS">Templates</I></SPAN> menu item, and then select the "Cirrus Logic development board"hardware.</P></LI><LI><P>While still displaying the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build</I></SPAN>-&#62;<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>-&#62;<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="SECT2"><H2CLASS="SECT2"><ANAME="AEN3859">Building the ROM images with ecosconfig</H2><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 edb7xxx 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 edb7xxx cygmon</PRE></TD></TR

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -