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

📄 using_eclipse.html

📁 ADI 公司blackfin系列的用户使用文挡。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<p>Once Make XConfig, Make Dependencies, and Make have all been added in the correct order click <strong>OK</strong>.</p><p>A directory called <code>.externalToolBuilders</code> will be created in your project.  This directory contains files with information about the build tools.  You should now be able to build the uClinux memory image simply by selecting <em><strong>Project&rarr;Build All</strong></em> or <em><strong>Project&gt;Build Project</strong></em>.</p><p> <em><strong>Project&rarr;Build Automatically</strong></em><em><strong>Build All</strong></em><em><strong>Build Project</strong></em><em><strong>Project&gt;Properties&gt;Builders&gt;Edit&gt;Build Options&rarr;During Auto Builds</strong></em> </p><p>While the project is being built the output from the compiler/make can be seen in the console view.  This view is usually located near the bottom of the workspace.  If this view is not visible it can be enabled by selecting <em><strong>Window&gt;Show View&gt;Other&gt;Basic&gt;Console</strong></em>.</p></div><!-- SECTION [1768-6213] --><h3><a name="working_with_cvs" id="working_with_cvs">Working With CVS</a></h3><div class="level3"><p>Eclipse provides a graphical <acronym title="Concurrent Versions System">CVS</acronym> interface allowing projects checked out from <acronym title="Concurrent Versions System">CVS</acronym> to easily be integrated with Eclipse.  To start using <acronym title="Concurrent Versions System">CVS</acronym> through Eclipse you must first open the <acronym title="Concurrent Versions System">CVS</acronym> Repository Exploring perspective.  To do this select <em><strong>Window&gt;Open Perspective&gt;<acronym title="Concurrent Versions System">CVS</acronym> Repository Exploring</strong></em>.  You should now see the <acronym title="Concurrent Versions System">CVS</acronym> Repositories view on the workbench.  To add a new <acronym title="Concurrent Versions System">CVS</acronym> repository right click on the <acronym title="Concurrent Versions System">CVS</acronym> Repositories view and select <em><strong>New&gt;Repository Location</strong></em>.  The Add <acronym title="Concurrent Versions System">CVS</acronym> Repository dialog should now be displayed:</p><p><a href="media/eclipse7.png" class="media" target="_blank" title="eclipse7.png"><img src="media/eclipse7.png" class="media" alt="" /></a></p><p>In the <strong>Host</strong> field enter the host name (cvs.blackfin.uclinux.org for Blackfin/uClinux projects).</p><p>In the <strong>Repository path</strong> field enter the path to the <acronym title="Concurrent Versions System">CVS</acronym> root (/cvsroot/&lt;project name&gt; for Blackfin/uClinux projects).</p><p>In the <strong>User</strong> field enter <strong>anonymous</strong> for an anonymous login or your developer name for developer access.</p><p>Leave the <strong>Password</strong> field blank from anonymous access.</p><p>In the <strong>Connection type</strong> field select <strong>pserver</strong> for anonymous access and <strong>extssh</strong> for developer access.</p><p>Click <strong>Finish</strong>.</p><p> Eclipse will then attempt to connect to the <acronym title="Concurrent Versions System">CVS</acronym> repository.  If the connection is successful you may then proceed to checkout modules and preform other <acronym title="Concurrent Versions System">CVS</acronym> actions.</p><p><a href="media/eclipse8.png" class="media" target="_blank" title="eclipse8.png"><img src="media/eclipse8.png" class="media" alt="" /></a></p><p>To checkout a module, expand the repository in the <acronym title="Concurrent Versions System">CVS</acronym> Repositories view then expand the head of the repository; all of the modules in repository should now be listed.  Select the module you wish to checkout and right click anywhere in the <acronym title="Concurrent Versions System">CVS</acronym> Repositories view, select <em><strong>Check Out</strong></em> from the menu that appears.</p><p> The project should now be visible in the Resource perspective.  To switch back to the Resource perspective click on the Resource perspective button on the tool bar or select <em><strong>Window&gt;Open Perspective&gt;Other </strong></em>and select Resource from the dialog that appears.  From the Resource perspective you may proceed with actions such as adding files to the module and editing existing files in the module.</p><p><a href="media/eclipse9.png" class="media" target="_blank" title="eclipse9.png"><img src="media/eclipse9.png" class="media" alt="" /></a></p><p>Once you are satisfied with the changes you can commit the module to the <acronym title="Concurrent Versions System">CVS</acronym> repository by selecting the project, right clicking in the Navigator view and selecting <em><strong>Team&gt;Commit</strong></em>.  If you have added files to the project a dialog will appear asking you if you wish to add the resources to the module.  Next, a dialog will appear where you can enter a comment, when you are finished click <strong>OK</strong>.  The module in the <acronym title="Concurrent Versions System">CVS</acronym> repository should now be updated.</p><p> Some other useful features of the Eclipse <acronym title="Concurrent Versions System">CVS</acronym> client are summarized below:</p><p> To add a new module to the <acronym title="Concurrent Versions System">CVS</acronym> repository select an existing project in the Navigator view.  Right click in the view and select <em><strong>Team&gt;Share Project</strong></em>.  The share project dialog should be displayed.  This dialog will ask you which <acronym title="Concurrent Versions System">CVS</acronym> repository you wish to submit the module to, it will also ask what name you would like  to use for the module.  After completing the required information Eclipse will submit your project to the <acronym title="Concurrent Versions System">CVS</acronym> repository as a new module.  If there are resources in the project Eclipse will ask if you wish to add these resources to the repository.</p><p> To compare the local version of a resource with a version in the <acronym title="Concurrent Versions System">CVS</acronym> repository select the local resource in the Navigator view, right click within the view and select an option from the <em><strong>Compare With</strong></em> menu.</p><p> To view the revision history of a <acronym title="Concurrent Versions System">CVS</acronym> resource select the resource in the <acronym title="Concurrent Versions System">CVS</acronym> Repositories view, right click within the view and select <em><strong>Show in Resource History</strong></em>, this will display the <acronym title="Concurrent Versions System">CVS</acronym> Resource History view.  This view provides a list of all the revisions of the resource.  Double clicking on a particular revision will display the contents of that revision in an editor window.</p><p> To replace the local version of a resource with a version from the <acronym title="Concurrent Versions System">CVS</acronym> repository select the local resource in the Navigator view, right click within the view and select an option from the <em><strong>Replace With</strong></em> menu.</p><p> To remove a file from a <acronym title="Concurrent Versions System">CVS</acronym> repository simply delete the file from the project then commit the project by selecting it in the Navigator view, right clicking in the view and choosing <em><strong>Team&gt;Commit</strong></em>.</p><p> To refresh the list of resources in a <acronym title="Concurrent Versions System">CVS</acronym> repository select the repository in the <acronym title="Concurrent Versions System">CVS</acronym> Repositories view, right click in the view and choose <em><strong>Refresh View</strong></em>.</p></div><!-- SECTION [6214-10538] --><h3><a name="working_with_subversion" id="working_with_subversion">Working With Subversion</a></h3><div class="level3"><p>While not released with Eclipse, there is a Subversion plugin called <a href="http://subclipse.tigris.org/" class="urlextern" title="http://subclipse.tigris.org/"  rel="nofollow">Subclipse</a>.  Visit the Subclipse homepage for some <a href="http://subclipse.tigris.org/install.html" class="urlextern" title="http://subclipse.tigris.org/install.html"  rel="nofollow">concise install directions</a>.</p><p>Once you have Subclipse installed, the interface is the same as using the <acronym title="Concurrent Versions System">CVS</acronym> plugin.</p></div><!-- SECTION [10539-10883] --><h3><a name="debugging_using_eclipse" id="debugging_using_eclipse">Debugging using Eclipse</a></h3><div class="level3"></div><h4><a name="install_cdt_pluging" id="install_cdt_pluging">Install CDT pluging</a></h4><div class="level4"><p> CDT is a plugin for C/C++ development. Here is the steps to install:</p><ol><li class="level1"><div class="li"> <strong>Help</strong> &rarr; <strong>Software Upadtes</strong> &rarr; <strong>Find and Install..</strong> &rarr; <strong>Search for new features to install</strong> &rarr; Choose <strong>New Remote Site</strong></div></li><li class="level1"><div class="li"> Enter <acronym title="Uniform Resource Locator">URL</acronym>: &ldquo;<a href="http://download.eclipse.org/tools/cdt/releases/eclipse3.1" class="urlextern" title="http://download.eclipse.org/tools/cdt/releases/eclipse3.1"  rel="nofollow">http://download.eclipse.org/tools/cdt/releases/eclipse3.1</a>&rdquo; &rarr; Click <strong>Finish</strong></div></li><li class="level1"><div class="li"> Restart Eclipse</div></li></ol></div><h4><a name="create_a_debug_configuration" id="create_a_debug_configuration">Create a Debug configuration</a></h4><div class="level4"><ol><li class="level1"><div class="li"> <strong>Run</strong> &rarr; <strong>Debug...</strong></div></li><li class="level1"><div class="li"> Choose <strong>C/C++ local application</strong> &rarr; Click <strong>New</strong></div></li><li class="level1"><div class="li"> In the <strong>Main</strong> tab: </div><ul><li class="level2"><div class="li"> <strong>Project</strong>: Choose the project you want to debug. You can create a project for your application. However, if your application is already built outside Eclipse and you just want to debug, this is optional. You can choose whatever project.</div></li><li class="level2"><div class="li"> <strong>C/C++ Application</strong>: the applicaion you want to debug, e.g: test.gdb. This application will be invoked by bfin-uclinux-gdb.</div></li></ul></li><li class="level1"><div class="li"> In the <strong>Arguments</strong> tab</div><ul><li class="level2"><div class="li"> <strong>C/C++ Program Arguments</strong> usually leave black since our application usually running on boards</div></li></ul></li><li class="level1"><div class="li"> <strong>Debugger</strong> tab</div><ul><li class="level2"><div class="li"> <strong>Debugger</strong>: Choose <strong>GDB Server</strong></div></li><li class="level2"><div class="li"> <strong>Debugger Options</strong>&rarr; <strong>GDB Debugger</strong>: Choose the path to bfin-uclinux-gdb.</div></li><li class="level2"><div class="li"> <strong>Connection</strong>: TCP (If you are debugging using serial port, choose serial).</div></li><li class="level2"><div class="li"> <strong>Host name or IP address</strong> and <strong>Port number</strong> : Choose the way you run your GDB server</div></li></ul></li><li class="level1"><div class="li"> <strong>Source</strong></div><ul><li class="level2"><div class="li"> Choose the path of your application source code. </div></li></ul></li></ol><p><a href="media/eclipse_debug_2.png" class="media" target="_blank" title="eclipse_debug_2.png"><img src="media/eclipse_debug_2.png" class="media" alt="" /></a></p></div><h4><a name="debugging" id="debugging">Debugging</a></h4><div class="level4"><ol><li class="level1"><div class="li"> Start GDB server on the target board</div></li><li class="level1"><div class="li"> Choose the debug configuration you just created: </div><ul><li class="level2"><div class="li"> <strong>Run</strong> &rarr; <strong>Debug..</strong> &rarr; Choose the debug configuration &rarr; Click <strong>Debug</strong>:</div></li></ul></li></ol><p> <a href="media/eclipse_debug_.png" class="media" target="_blank" title="eclipse_debug_.png"><img src="media/eclipse_debug_.png" class="media" alt="" /></a></p></div><!-- SECTION [10884-] --></body></html>

⌨️ 快捷键说明

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