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

📄 setup-v850-cebsa1.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>NEC CEB-V850/SA1 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="SH4/SE7751 Hardware Setup"HREF="setup-sh-se7751.html"><LINKREL="NEXT"TITLE="NEC CEB-V850/SB1 Hardware Setup"HREF="setup-v850-cebsb1.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-sh-se7751.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-v850-cebsb1.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SETUP-V850-CEBSA1">NEC CEB-V850/SA1 Hardware Setup</H1><P>The CEB-V850 board is fitted with a socketed EPROM. The internalFlash of the V850 supplied with the CEB-V850 boards defaults tovectoring into this EPROM. A  GDB stub image should be programmedinto an EPROM fitted to this board, and a pre-built image is providedat <TTCLASS="FILENAME">loaders/v850-ceb_v850/v850sa1/gdb_module.bin </TT>underthe root of your eCos installation.</P><P>The EPROM is installed to the socket labelled U7 on the board.Attention should be paid to the correct orientation of the EPROMduring installation. </P><P>When programming an EPROM using the binary image, be carefulto get the byte order correct. It needs to be little-endian. Ifthe EPROM burner software has a hex-editor, check that the firstfew bytes of the image look similar to: </P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">00000000: 0018 8007 5e02 0000 0000 0000 0000 0000</PRE></TD></TR></TABLE><P>If the byte order is wrong you will see 1800 instead of 0018etc. Use the EPROM burner software to make a byte-swap before youburn to image to the EPROM. </P><P>If the GDB stub EPROM you burn does not work, try reversingthe byte-order, even if you think you have it the right way around.At least one DOS-based EPROM burner program is known to have thebyte-order upside down.</P><P>The GDB stub in the EPROM allows communication with GDB usingthe serial port. The communication parameters are fixed at 38400baud, 8 data bits, no parity bit and 1 stop bit (8-N-1). No flowcontrol is employed. Connection to the host computer should be madeusing a dedicated serial cable as specified in the CEB-V850/SA1manual.</P><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN4279">Installing the Stubs into ROM</H2><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN4281">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/v850-ceb_v850 relative to theinstallation root.</P><DIVCLASS="SECT4"><H4CLASS="SECT4"><ANAME="AEN4284">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-&#62;New</I></SPAN> menu item if necessary to do this.</P></LI><LI><P>Choose the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build-&#62;Templates</I></SPAN> menu item, and then select the NEC CEB-V850/SA1 hardware.</P></LI><LI><P>While still displaying the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build-&#62;Templates</I></SPAN> dialog box, select the &#8220;stubs&#8221; package templateto build a GDB stub. Click <SPANCLASS="emphasis"><ICLASS="EMPHASIS">OK</I></SPAN>.</P></LI><LI><P>Build eCos using <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build-&#62;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 &#8220;gdb_module&#8221;.</P></LI></OL></DIV><DIVCLASS="SECT4"><H4CLASS="SECT4"><ANAME="AEN4302">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 ceb-v850 stubs </PRE></TD></TR></TABLE></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 &#8220;gdb_module&#8221;.</P></LI></OL></DIV></DIV><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN4315">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 the socket as describedat the beginning of this section.</P></LI></OL></DIV></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN4322">Debugging with the NEC V850 I.C.E.</H2><P>eCos applications may be debugged using the NEC V850 In CircuitEmulator (I.C.E.) A PC running Microsoft Windows is required inorder to run the NEC ICE software and drivers. In addition Red Hathave developed a &#8220;libremote&#8221; server applicationnamed v850ice.exe which is used on the PC connected to the I.C.E.in order to allow connections from GDB.</P><P>The I.C.E. must be physically connected to a Windows NT systemthrough NEC&quot;s PCI or PC Card interface.  A driver, DLLs,and application are provided by NEC to control the I.C.E.</P><P>v850ice is a Cygwin based server that runs on the NT systemand provides an interface between the gdb client and the I.C.E.software. v850-elf-gdb may be run on the Windows NT system or ona remote system. v850-elf-gdb communicates with the libremote serverusing the gdb remote protocol over a TCP/IP socket.  v850icecommunicates with the I.C.E. by calling functions in the NECMSG.DLL providedby NEC.</P><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN4327">INITIAL SETUP</H3><P></P><OLTYPE="1"><LI><P>Configure the hardware including the I.C.E., SA1 orSB1 Option Module, and target board.  Install the interface cardin the Windows NT system. Reference NEC&quot;s documentationfor interface installation, jumper settings, etc.</P></LI><LI><P>Install the Windows NT device driver provided by NEC.</P></LI><LI><P>Copy the NEC DLLs, MDI application, and other supportfiles to a directory on the Windows NT system. The standard locationis C:\NecTools32. This directory will be referred to asthe "libremote server directory" in this document. v850ice.exe mustalso be copied to this directory after being built. The requiredfiles are:  cpu.cfg, Nec.cfg, MDI.EXE, NECMSG.DLL, EX85032.DLL,V850E.DLL, IE850.MON, IE850E.MON, and D3037A.800.</P></LI><LI><P>Make certain the file cpu.cfg contains the line:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">CpuOption=SA1</PRE></TD></TR></TABLE><P>if using a V850/SA1 module, or:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD

⌨️ 快捷键说明

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