The Definitive Guide to the ARM Cortex-M3

Chapter 19: Starting Cortex-M3 Development Using the GNU Tool Chain

Background

Many people use the GNU tool chain for ARM product development, and a number of development tools for ARM are based on the GNU tool chain. The GNU tool chain supports the Cortex-M3 and is currently freely available from CodeSourcery (www.codesourcery.com). The main GNU C Compiler development will include support for the Cortex-M3 in the near future.

This chapter introduces only the most basic steps in using the GNU tool chain. Detailed uses of the tool chain are available on the Internet and are outside the scope of this book.

Assembler syntax for GNU assembler (AS in the GNU tool chain) is a bit different from ARM assembler. These differences include declarations, compile directives, comments, and the like. Therefore, assembly codes for ARM RealView Development tools need modification before being used with the GNU tool chain.

Getting the GNU Tool Chain

The compiled version of the GNU tool chain can be downloaded from www.codesourcery. com/gnu_toolchains/arm/. A number of binary builds are available. For the most simple uses, let's select one with EABI [1] and without a specific embedded OS as the target platform. The tool chain is available for various development platforms such as Windows and Linux. The examples shown in this chapter should work with either version.

[1]Embedded Application Binary Interface (EABI) for the ARM architecture executables must conform to this specification in order for them to be used with various development tool sets.

Development Flow

As with ARM tools, the GNU tool chain contains a compiler,...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Integrated Development Environment (IDE)
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.