📄 at91.html
字号:
<!-- 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>ARM/ARM7 Atmel AT91 Evaluation Board (EB40)</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos Reference Manual"HREF="ecos-ref.html"><LINKREL="UP"TITLE="Installation and Testing"HREF="installation-and-testing.html"><LINKREL="PREVIOUS"TITLE="ARM/ARM7+ARM9 ARM PID Board and EPI Dev7+Dev9"HREF="pid.html"><LINKREL="NEXT"TITLE="ARM/ARM7 Cirrus Logic EP7xxx (EDB7211, EDB7212, EDB7312) "HREF="edb7xxx.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 Reference Manual</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="pid.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 5. Installation and Testing</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="edb7xxx.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="AT91">ARM/ARM7 Atmel AT91 Evaluation Board (EB40)</H1><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5256">Overview</H2><P>RedBoot supports both serial ports.The default serial port settings are 38400,8,N,1. RedBootalso supports minimal flash management on the EB40.However, since the flash device (AT29LV1024) is so small (only the upper 64K isavailable for general use), only the simple flash write command 'fiswrite' is supported.</P><P>The following RedBoot configurations are supported: <DIVCLASS="INFORMALTABLE"><ANAME="AEN5266"><P></P><TABLEBORDER="1"CLASS="CALSTABLE"><THEAD><TR><THALIGN="LEFT"VALIGN="TOP">Configuration</TH><THALIGN="LEFT"VALIGN="TOP">Mode</TH><THALIGN="LEFT"VALIGN="TOP">Description</TH><THALIGN="LEFT"VALIGN="TOP">File</TH></TR></THEAD><TBODY><TR><TDALIGN="LEFT"VALIGN="TOP">ROM</TD><TDALIGN="LEFT"VALIGN="TOP">[ROM]</TD><TDALIGN="LEFT"VALIGN="TOP">RedBoot running from the board's flash boot sector.</TD><TDALIGN="LEFT"VALIGN="TOP">redboot_ROM.ecm</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP">RAM</TD><TDALIGN="LEFT"VALIGN="TOP">[RAM]</TD><TDALIGN="LEFT"VALIGN="TOP">RedBoot running from RAM with RedBoot in the flash boot sector.</TD><TDALIGN="LEFT"VALIGN="TOP">redboot_RAM.ecm</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP">ROMRAM</TD><TDALIGN="LEFT"VALIGN="TOP">[ROMRAM]</TD><TDALIGN="LEFT"VALIGN="TOP">RedBoot running from RAM, but contained in the board's flash boot sector.</TD><TDALIGN="LEFT"VALIGN="TOP">redboot_ROMRAM.ecm</TD></TR></TBODY></TABLE><P></P></DIV></P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5290">Initial Installation Method</H2><P>This development board comes with ARM's debug tool, Angel, installed in flash.At this time, Angel will not be replaced. Rather, RedBoot will be placed inthe alternate half of flash. Switch SW1 is used which monitor to boot. SelectingSW1 to "lower mem" will choose Angel. Select SW1 to "Upper mem" for RedBoot onceit has been installed.</P><P>Set SW1 to "lower mem" and connect serial port A to a host computer. Using GDBfrom the host and Angel on the board, download the RAM mode image of RedBootto the board. SW1 should then be set to "upper mem" just before starting RedBoot usingthe 'cont' command. Once RedBoot is started, the Angel session must be interrupted (onLinux this can be done using ^Z). Follow this by connecting to the board usingminicom at 38400-8N1. At this point, RedBoot will be running on the board inRAM. Now, download the ROMRAM mode image and program it to flash.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN"><TTCLASS="USERINPUT"><B>arm-elf-gdb redboot_RAM.elf</B></TT>(gdb) <TTCLASS="USERINPUT"><B>tar rdi s=/dev/ttyS0</B></TT>Angel Debug Monitor (serial) 1.04 (Advanced RISC Machines SDT 2.5) forAT91EB40 (2.00)Angel Debug Monitor rebuilt on Apr 07 2000 at 12:40:31Serial Rate: 9600Connected to ARM RDI target.(gdb) <TTCLASS="USERINPUT"><B>set $cpsr=0xd3</B></TT>(gdb) <TTCLASS="USERINPUT"><B>load</B></TT>Loading section .rom_vectors, size 0x40 lma 0x2020000Loading section .text, size 0x7fd8 lma 0x2020040Loading section .rodata, size 0x15a0 lma 0x2028018Loading section .data, size 0x2e4 lma 0x20295b8Start address 0x2020040 , load size 39068Transfer rate: 6250 bits/sec, 500 bytes/write.</PRE></TD></TR></TABLE>At this point, set SW1 to "upper mem".<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">(gdb) <TTCLASS="USERINPUT"><B>cont</B></TT>Continuing.</PRE></TD></TR></TABLE>At this point, suspend the GDB session (use Ctrl-Z) and start aterminal emulator:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">RedBoot> <TTCLASS="USERINPUT"><B>version</B></TT>RedBoot(tm) bootstrap and debug environment [RAM]Non-certified release, version UNKNOWN - built 14:09:27, Jul 20 2001Platform: Atmel AT91/EB40 (ARM7TDMI)Copyright (C) 2000, 2001, Red Hat, Inc.RAM: 0x02000000-0x02080000, 0x020116d8-0x0207fd00 availableFLASH: 0x01010000 - 0x01020000, 256 blocks of 0x00000100 bytes each.RedBoot> <TTCLASS="USERINPUT"><B>load -m ymodem -b %{FREEMEMLO}</B></TT></PRE></TD></TR></TABLE>Use minicom to send the file redboot_ROMRAM.srec via YModem.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">RedBoot> <TTCLASS="USERINPUT"><B>fi wr -f 0x01010000 -b %{FREEMEMLO} -l 0xe100</B></TT></PRE></TD></TR></TABLE>Press the "reset" pushbutton and RedBootshould come up on the board.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5306">Special RedBoot Commands</H2><P>None.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5309">Memory Maps</H2><P>This processor has no MMU, so the only memory map is for physical addresses.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">Physical Address Range Description----------------------- ----------------------------------0x00000000 - 0x00000fff On-chip SRAM0x01000000 - 0x0101ffff Flash0x02000000 - 0x0207ffff RAM0xffe00000 - 0xffffffff I/O registersThe flash based RedBoot image occupies virtual addresses 0x01010000 - 0x0101dfff</PRE></TD></TR></TABLE></P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5313">Rebuilding RedBoot</H2><P>These shell variables provide the platform-specific informationneeded for building RedBoot according to the procedure described in<AHREF="rebuilding-redboot.html">Chapter 3</A>:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">export TARGET=eb40export ARCH_DIR=armexport PLATFORM_DIR=at91</PRE></TD></TR></TABLE></P><P>The names of configuration files are listed above with thedescription of the associated modes.</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="pid.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-ref.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="edb7xxx.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">ARM/ARM7+ARM9 ARM PID Board and EPI Dev7+Dev9</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="installation-and-testing.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">ARM/ARM7 Cirrus Logic EP7xxx (EDB7211, EDB7212, EDB7312)</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -