avr32-gnu-toolchain-3.4.2.435-readme.pdf

(290 KB) Pobierz
AVR 32-bit GNU Toolchain: Release
3.4.2.435
The AVR 32-bit GNU Toolchain supports all AVR 32-bit devices. The AVR 32-
bit Toolchain is based on the free and open-source GCC compiler. The toolchain
includes compiler, assembler, linker and binutils (GCC and Binutils), Standard C
library (Newlib).
8/32-bits Atmel
Microcontrollers
Release 3.4.2.435
About this release
This is an update release that fixes some defects and upgrades GCC and Binutils
to higher versions.
Installation Instructions
System Requirements
AVR 32-bit GNU Toolchain is supported under the following configurations
Hardware requirements
Minimum processor Pentium 4, 1GHz
Minimum 512 MB RAM
Minimum 500 MB free disk space
AVR 32-bit GNU Toolchain has not been tested on computers with less resources, but may run satisfactorily
depending on the number and size of projects and the user's patience.
Software requirements
Windows 2000, Windows XP, Windows Vista or Windows 7 (x86 or x86-64).
Fedora 13 or 12 (x86 or x86-64), RedHat Enterprise Linux 4/5/6, Ubuntu Linux 10.04 or 8.04 (x86 or x86-64), or
SUSE Linux 11.2 or 11.1 (x86 or x86-64). AVR 32-bit GNU Toolchain may very well work on other distributions.
However those would be untested and unsupported.
AVR 32-bit GNU Toolchain is not supported on Windows 98, NT or ME.
Downloading and Installing
The package comes in two forms.
As part of a standalone installer
As Atmel Studio 6.x Toolchain Extension
It may be downloaded from Atmel's website at http://www.atmel.com or from the Atmel Studio Extension Gallery.
Installing on Windows
In order to install using standalone installer, the AVR Toolchain installer can be downloaded from Atmel's website.
After downloading the installer, double-click the executable file to install. You may use "Custom Installation" in
order to install in a specific location.
In order to install as extension, please refer to Atmel Studio documentation.
Installing on Linux
On Linux AVR 32-bit GNU Toolchain is available as a TAR.GZ archive which can be extracted using the 'tar' utility.
In order to install, simply extract to the location where you want the toolchain to run from.
Note that if you will develop Linux applications for the AT32AP7000 you must also install the AVR32 Buildroot. For
more details on AVR32 Buildroot please refer http://www.atmel.no/buildroot/
Upgrading from previous versions
If you have used the standalone installer on MS-Windows, you might do a clean upgrade by first un-installing the
old version or just upgrade using the latest installer.
2
AVR 32-
bit GNU
Toolchain
AVR 32-
bit GNU
Toolchain
If it is installed via Atmel Studio it can be upgraded through the extension manager in Atmel Studio. See Atmel
Studio release notes for more information.
On Linux, if you have it unpacked to a local folder, you just delete the old folder and unpack the latest version in a
new folder.
Manifest
1. AVR 32-bit GNU Binutils 2.23.1
• Binary utilities for AVR 32-bit target (including assembler, linker, etc.).
2. AVR 32-bit GNU Compiler Collection (avr32-gcc) 4.4.7
• C language and C++ language compiler for AVR 32-bit target.
3. Newlib (for AVR 32-bit) 1.16.0
• Standard C Library for AVR 32-bit
Layout
Listed below are some directories you might want to know about.
`<install_dir>` = The directory where you installed AVR 32-bit GNU Toolchain.
<install_dir>\bin
• The AVR software development programs. This directory should be in your `PATH` environment variable.
This includes:
• GNU Binutils
• GCC
<install_dir>\avr32\lib
• avr32-newlib libraries, startup files, linker scripts,and stuff.
<install_dir>\avr32\include
• avr32-newlib header files. This is where, for example, #include <string.h> comes from.
<install_dir>\avr32\include\avr32
• avr32-newlib header files specific to the AVR32 microprocessor. This is where, for example, #include <avr32/
io.h> comes from.
<install_dir>\lib
• GCC libraries, other libraries,headers and stuff.
<install_dir>\libexec
• GCC program components
<install_dir>\doc
• Various documentation.
<install_dir>\source
• Documentation on where to find the source code for the various projects and source code patches that were
used to build the tools.
Toolset Background
AVR 32-bit GNU Toolchain is a collection of executable software development tools for the Atmel AVR 32-bit
processor.
These software development tools include:
1. Compiler
3
2.
3.
4.
5.
6.
7.
Assembler
Linker
Archiver
File converter
Other file utilities
C Library
Compiler
The compiler is the GNU Compiler Collection, or GCC. This compiler is incredibly flexible and can be hosted on
many platforms, it can target many different different processors/operating systems (back-ends), and can be
configured for multiple different languages (front-ends).
The GCC included is targeted for the AVR 32-bit processor, and is configured to compile C, or C++.
Because this GCC is targeted for the AVR 32-bit, the main executable that is created is prefixed with the target
name: `avr32-gcc`. It is also referred to as AVR 32-bit GCC.
`avr32-gcc` is just a "driver" program only. The compiler itself is called `cc1.exe` for C, or `cc1plus.exe` for C++.
Also, the preprocessor `cpp.exe` will usually automatically be prepended with the target name: `avr32-cpp.exe`.
The actual set of component programs called is usually derived from the suffix of each source code file being
processed.
GCC compiles a high-level computer language into assembly, and that is all. It cannot work alone. GCC is coupled
with another project, GNU Binutils, which provides the assembler, linker, librarian and more. Since 'gcc' is just a
"driver" program, it can automatically call the assembler and linker directly to build the final program.
Assembler, Linker, Librarian and More
GNU Binutils is a collection of binary utilities. This also includes the assembler, as. Sometimes you will see it
referenced as GNU as or gas. Binutils includes the linker, ld; the librarian or archiver, ar. There are many other
programs included that provide various functionality.
Binutils is configured for the AVR 32-bit target and each of the programs is prefixed with the target name. So you
have programs such as:
avr32-as:
The Assembler.
avr32-ld:
The Linker.
avr32-ar:
Create, modify, and extract from archives (libraries).
avr32-ranlib:
Generate index to archive (library) contents.
avr32-objcopy:
Copy and translate object files.
avr32-objdump:
Display information from object files including disassembly.
avr32-size:
List section sizes and total size.
avr32-nm:
List symbols from object files.
avr32-strings:
List printable strings from files.
avr32-strip:
Discard symbols.
avr32-readelf:
Display the contents of ELF format files.
avr32-addr2line:
Convert addresses to file and line.
avr32-c++filt:
Filter to demangle encoded C++ symbols.
See the binutils user manual for more information on what each program can do.
4
AVR 32-
bit GNU
Toolchain
AVR 32-
bit GNU
Toolchain
C Library
Newlib is used as the Standard C Library for AVR32 GCC Toolchain. Newlib is a Standard C library intended to be
used for embedded systems. This library has been ported to support the AVR32 processor architectures.
Debugging
Atmel Studio provides a debugger and also provides simulators for the parts that can be used for debugging as
well. Note that `Atmel Studio` is currently free to the public, but it is not Open Source.
Source Code
Atmel AVR32 GNU Toolchain uses modified source code of GCC, Binutils and Newlib. The source code used for
building the packaged binaries are available at:
http://distribute.atmel.no/tools/opensource/Atmel-AVR-Toolchain-3.4.2/avr32/
The modifications are also available as patches in the above link. Please refer to the README for the instructions
on how to use the supplied script to build the toolchain.
5
Zgłoś jeśli naruszono regulamin