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

📄 flashing_the_board.html

📁 ADI 公司blackfin系列的用户使用文挡。
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>  <title></title>  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="level1"><div class="li"><span class="li"><a href="#flashing_your_board" class="toc">Flashing your Board</a></span></div><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#supported_host_operating_systems" class="toc">Supported host operating systems</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#required_software" class="toc">Required software</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#build_installation_instructions" class="toc">Build &amp; installation instructions</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#testing_jtag_tools" class="toc">Testing JTAG Tools</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#selecting_jtag_cable_and_parallel_port_address" class="toc">Selecting JTAG cable and parallel port address</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#testing_the_jtag_connection" class="toc">Testing the JTAG connection</a></span></div></li></ul></li><li class="level2"><div class="li"><span class="li"><a href="#next" class="toc">Next</a></span></div></li></ul></li></ul></div></div><h1><a name="flashing_your_board" id="flashing_your_board">Flashing your Board</a></h1><div class="level1"><p> The first time you attempt to turn on your board, you need to make sure that the processor can boot from something. To do this, you need to install the JTAG tools from the <a href="http://blackfin.uclinux.org/projects/jtagtools/" class="urlextern" title="http://blackfin.uclinux.org/projects/jtagtools/"  rel="nofollow">Blackfin website</a>. </p><p>JTAG Tools is a software package which enables working with JTAG-aware (IEEE 1149.1) hardware devices (parts) and boards through JTAG adapter.</p><p>This package has open and modular architecture with ability to write miscellaneous extensions (like board testers, flash memory programmers, and so on).</p><p>JTAG Tools package is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for JTAG Tools. Please read COPYING file for more info.</p><p>Warning: This software may damage your hardware! Care should be taken before using this software - including reading this entire document before attempting to use the software.</p></div><!-- SECTION [1-1015] --><h2><a name="supported_host_operating_systems" id="supported_host_operating_systems">Supported host operating systems</a></h2><div class="level2"><p>JTAG Tools should run on all Unix like operating systems that include a parallel port. We only test things on Linux.</p></div><!-- SECTION [1016-1178] --><h2><a name="required_software" id="required_software">Required software</a></h2><div class="level2"><ul><li class="level1"><div class="li"> readline (it is probably a standard part of your distribution)</div></li></ul></div><!-- SECTION [1179-1276] --><h2><a name="build_installation_instructions" id="build_installation_instructions">Build &amp; installation instructions</a></h2><div class="level2"><ol><li class="level1"><div class="li"> Download and install required software (see previous section).</div></li><li class="level1"><div class="li"> Download and unpack jtag sources.</div></li><li class="level1"><div class="li"> Run ./configure script. Use optional &ndash;with-include parameter if required. See `./configure &ndash;help` for more info.</div></li><li class="level1"><div class="li"> Run `make`.</div></li><li class="level1"><div class="li"> As root, run `make install`.</div></li></ol></div><!-- SECTION [1277-1596] --><h2><a name="testing_jtag_tools" id="testing_jtag_tools">Testing JTAG Tools</a></h2><div class="level2"><p>Connect your JTAG adapter between your PC and target device and turn on your target device.</p><p>To run JTAG Tools type &ldquo;jtag&rdquo; and press &lt;Enter&gt;. jtag should start and display some initial informations. Output should end with line like this:</p><pre class="code">jtag&gt;</pre><p>This is &ldquo;jtag command prompt&rdquo;. Type &ldquo;help&rdquo; and press &lt;Enter&gt; for initial help about available commands. To exit JTAG Tools type &ldquo;quit&rdquo; and press &lt;Enter&gt;.</p></div><!-- SECTION [1597-2044] --><h3><a name="selecting_jtag_cable_and_parallel_port_address" id="selecting_jtag_cable_and_parallel_port_address">Selecting JTAG cable and parallel port address</a></h3><div class="level3"><p> There are two methods of talking to the Parallel Port device.</p><ol><li class="level1"><div class="li"> direct through memory accesses (must be root)</div></li><li class="level1"><div class="li"> via the /dev/parportn device</div></li></ol><p> Type &ldquo;help cable&rdquo; for list of supported JTAG cables.</p></div><h4><a name="direct_memory_access" id="direct_memory_access">Direct Memory Access</a></h4><div class="level4"><p>To set things up as direct memory accesses, you must be running as root.</p><p>To find out where the parallel port is sitting in Memory (or if the BIOS has it turned on):</p><pre class="code">&gt; dmesg | grep parportparport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]parport0: irq 7 detectedparport1: PC-style at 0xddb0 [PCSPP,TRISTATE,EPP]lp0: using parport0 (polling).lp1: using parport1 (polling).parport0: cannot grant exclusive access for device ppdev0parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]parport0: irq 7 detectedparport1: PC-style at 0xddb0 [PCSPP,TRISTATE,EPP]parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]</pre><p>There are two parallel ports on this machine, one at 0&times;378 (parport0) and 0xddb0 (parport1). If I have an ExcelPoint IGLOO connected to parallel Port 0, I would type:</p><pre class="code">jtag&gt; cable parallel 0x378 IGLOOInitializing ExcelPoint IGLOO JTAG Cable on parallel port at 0x378</pre></div><h4><a name="dev_parport" id="dev_parport">/dev/parport</a></h4><div class="level4"><p>If things are set up properly, you can use the device /dev/parport0 as a normal user (which is suggested - running things as root is always a bad idea) </p><ul><li class="level1"><div class="li"> check to make sure the /dev/parport0 is read/write<pre class="code">&gt; ls -l /dev/parport0crw-rw-rw-  1 root root 99, 0 2005-07-08 10:42 /dev/parport0</pre></div></li><li class="level1"><div class="li"> check to make sure that the /dev/parport0 is not being used. If cups (a linux printing system is using this, a file &ldquo;lp&rdquo; will be in this directory.<pre class="code">&gt; ls -l /proc/sys/dev/parport/parport0/devices/total 0-r--r--r--  1 root root 0 2005-07-08 17:56 active</pre><p>Then it is simply (as a normal user)</p><pre class="code">jtag&gt; cable ppdev /dev/parport0 IGLOOInitializing Excelpoint IGLOO JTAG Cable on ppdev port /dev/parport0</pre></div></li></ul></div><!-- SECTION [2045-4059] --><h3><a name="testing_the_jtag_connection" id="testing_the_jtag_connection">Testing the JTAG connection</a></h3><div class="level3"><p>Now that a connection has been made between the PC and the cable, you must make sure that the cable can talk to the target (the Blackfin). This is done by detect parts on the JTAG chain. Type &ldquo;detect&rdquo; at the jtag command prompt:</p><pre class="code">jtag&gt; detectIR length: 5Chain length: 1Device Id: 00110010011110100101000011001011  Manufacturer: Analog Devices  Part:         BF533  Stepping:     3  Filename:     /usr/local/share/jtag/analog/bf533/bf533</pre><p>If you get empty output or an error message your JTAG adapter is not connected properly, or your target board doesn&rsquo;t work, or it is turned off.</p><p>&ldquo;detect&rdquo; command is required before all other commands.</p><p>To ensure that things are working - you can check the status of the chain by using the print command:</p><pre class="code">jtag&gt; print chain No. Manufacturer              Part                 Stepping Instruction          Register---------------------------------------------------------------------------------------------   0 Analog Devices            BF533                3        BYPASS               BR</pre></div><!-- SECTION [4060-5168] --><h2><a name="next" id="next">Next</a></h2><div class="level2"><p>Depending on what you want to do, you can go to the next step</p><ul><li class="level1"><div class="li"> <a href="loading_u-boot.html" class="wikilink1" title="loading_u-boot.html">loading U-Boot</a></div></li><li class="level1"><div class="li"> Using gdb via JTAG</div></li></ul></div><!-- SECTION [5169-] --></body></html>

⌨️ 快捷键说明

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