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

📄 setup-arm-ep7211.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 HTML
📖 第 1 页 / 共 2 页
字号:
></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="SECT2"><H2CLASS="SECT2"><ANAME="AEN3874">Loading the ROM Image into On-board Flash</H2><P>Program images can be written into Flash memory by means ofa bootstrap program which is built into the  EDB7211.  This programcommunicates with a support program on your host to download andprogram an image into the Flash memory.</P><P>Cirrus Logic provides such a program for use with Windows/DOS. eCos comes with a similar program which will run under Linux. Thebasic operation of both programs is the same.</P><P></P><OLTYPE="1"><LI><P>Connect a serial line to 'UART 1'.</P></LI><LI><P>Power off the  EDB7211.</P></LI><LI><P>Install jumper 'PROGRAM ENABLE' whichenables this special mode for downloading Flash images. Note thatsome board revisions have this jumper labelled &#8220;BOOT ENABLE&#8221;.</P></LI><LI><P>Power on the  EDB7211.</P></LI><LI><P>Execute the Flash writing program on your host.  On Linux,this would be:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">     # dl_edb7xxx &lt;PATH&#62;/gdb_module.bin</PRE></TD></TR></TABLE><P>where '&lt;PATH&#62;' is the path tothe binary format version of the ROM image you wish to load, eitheras built in the previous section or the "loaders/arm-edb7211/" subdirectoryof your eCos installation. The download tool defaults to 38400 baud anddevice /dev/ttyS1 for communication. To changethese, specify them as parameters, e.g.	      </P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING"># dl_edb7xxx &lt;PATH&#62;/gdb_module.bin 9600 /dev/ttyS0</PRE></TD></TR></TABLE></LI><LI><P>The download program will indicate that it is waitingfor the board to come alive.  At this point, press 'RESET' andthen 'WAKEUP' switches in order.  There should besome indication of progress, first of the code being downloaded,then of the programming process.</P></LI><LI><P>Upon completion of the programming, power off the  EDB7211.</P></LI><LI><P>Remove the 'PROGRAM ENABLE/BOOT ENABLE' jumper.</P></LI><LI><P>Power on the  EDB7211, press 'RESET' and 'WAKEUP'. The new ROM image should now be running on the board.</P></LI><LI><P>The GDB debugger will now be able to communicate withthe board to download and debug RAM based programs.This procedure also applies for loading ROM-startup eCos programsinto the on-board FLASH memory, given a binary format image of theprogram from arm-elf-objcopy.  Loading a ROM-startup eCos programinto Flash will overwrite the GDB Stub ROM/CygMon in Flash,so you would have to reload the GDB Stub ROM/CygMon toreturn to normal RAM-startup program development.</P></LI></OL></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN3902">Building the Flash Downloader on Linux</H2><P>eCos provides a Flash download program suitable for use withthe  EP7211 Development Board which will run on Linux.  Follow thesesteps to build this program.  Note: at the time of the writing ofthese instructions, the download program is built directly withinthe eCos source repository since it isnot configuration specific.</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">  # cd &lt;eCos install dir&#62;/packages/hal/arm/edb7xxx/<TTCLASS="REPLACEABLE"><I>&#60;version&#62;</I></TT>/support</PRE></TD></TR></TABLE><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">  # make</PRE></TD></TR></TABLE><P>(where '# ' is your shell prompt)</P><P>Note: this program was adapted from the Cirrus Logic originalDOS program and still contains some vestiges of that environment.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN3910">Developing eCos Programs with the ARM Multi-ICE</H2><P>The EP7211 Development Board supports use of the ARM	    Multi-processor EmbeddedICE(tm), also known as the	    Multi-ICE. Full instructions on how to install and use the	    Multi-ICE in conjunction with GDB are provided in the	    <SPANCLASS="emphasis"><ICLASS="EMPHASIS">"GNUPro Toolkit Reference for eCos	      ARM/Thumb"</I></SPAN> manual. However, the following	    platform-specific details should be noted.</P><P>You will need an ARM Multi-ICE Server configuration	    file for the EP7211 Development Board. Here is a suggested	    configuration file to use:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">======== File "720T.cfg" ======== ;Total IR length = 4 [TITLE] Multi-ICE configuration for EP7211  [TAP 0] ARM720T  [TAPINFO] YES  [Timing] Low=0 High=0 Adaptive=OFF ==================================</PRE></TD></TR></TABLE><P>You must ensure that the board has the appropriate solderedconnections. For the EP7211 this involves connecting TEST0 and TEST1of the EP7211 to ground. To do this you must solder a wire fromground at JP33 to TP8 and TP9.</P><P>With respect to using multiple devices simultaneously, notethat the EP7211 is not ID sensitive.</P><P>If you wish to view diagnostic output from your program thatwas downloaded via the Multi-ICE, you will note that by defaultthe output on the serial line (as viewed by a terminal such as Hypertermin Windows, or cu in Unix) is in the form of GDB packets.</P><P>To get legible output, the solution is to set the "GDB Serialport" to a different device from the "Diagnostic serial port", andyou should use the Diagnostic serial port to view the diagnosticoutput.</P><P>Warning: The multi-ice-gdb-server will fail on startup ifthe board has not been both reset and awakened before running theserver. </P><P>To resolve this, it is necessary to free up the connectionfrom within the ARM Multi-ICE server itself. However when this happens,the next time you use GDB to load the program into the board, youwill see lots of "Readback did not match original data" messagesin the output of the multi-ice-gdb-server program. This indicatesyour program did not load correctly, and you should restart themulti-ice-gdb-server program, taking care to reset the board correctlybefore reconnecting. </P><P>As a reminder, you must specify --config-dialog to the	    multi-ice-gdb-server program to connect to the board	    correctly. If you do not, the multi-ice-gdb-server program	    will not be able to connect.</P></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-cma230.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-arm-ep7212.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">ARM Cogent CMA230 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">Cirrus Logic ARM EP7212 Development BoardHardware Setup</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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