Tti9xe Software User Guide
Total Page:16
File Type:pdf, Size:1020Kb
TTI9XE SOFTWARE USER GUIDE SS11001-1 Jan 2011 Testtron Technologies Inc TTI9XE Software User Guide SS11001-1 Copyright 2008-2011 Testtron Technoligies Inc. All rights reserved. Testtron makes no warranty for the use of its products and assumes no responsibility for any errors which may appear in this document. Nor does it make a commitment to update the information contained herein. Testtron retains the right to make changes to these specifications at any time, without notice. Testtron products are not intended for use in medical, life saving or life sustaining applications. All product names referenced herein are trademarks of their respective companies. Revision History Version Date Description 1.0 Jan 2011 Initial Release Testtron Technologies Inc. 2 Jan 2011 TTI9XE Software User Guide SS11001-1 Table of Contents 1. Overview .......................................................................................................................................... 4 1.1 Scope ...................................................................................................................................... 4 1.2 References .............................................................................................................................. 4 1.3 Acronyms ................................................................................................................................ 4 2. Toolchain Components .................................................................................................................... 5 2.1 SAM-ICE ................................................................................................................................. 5 2.2 GDB Server ............................................................................................................................. 5 2.3 SAM-BA ................................................................................................................................... 5 2.4 YAGARTO ............................................................................................................................... 5 2.5 GNU Utilities ............................................................................................................................ 5 2.5.1 Make .................................................................................................................................... 6 2.5.2 CoreUtils .............................................................................................................................. 6 2.6 Eclipse ..................................................................................................................................... 6 2.7 Terminal Emulator ................................................................................................................... 6 3. Toolchain Installation ....................................................................................................................... 7 3.1 SAM-ICE ................................................................................................................................. 7 3.1.1 Getting SAM-ICE Software ................................................................................................. 7 3.1.2 Installing SAM-ICE Software ............................................................................................... 7 3.1.3 GDB Server ......................................................................................................................... 7 3.2 SAM-BA ................................................................................................................................... 8 3.2.1 Getting SAM-BA .................................................................................................................. 8 3.2.2 Installing SAM-BA ............................................................................................................... 8 3.2.3 Using SAM-BA .................................................................................................................... 8 3.3 YAGARTO ............................................................................................................................... 9 3.3.1 Getting YAGARTO .............................................................................................................. 9 3.3.2 Installing YAGARTO ........................................................................................................... 9 3.4 GNU Utilities .......................................................................................................................... 10 3.4.1 Getting GNU Utilities ......................................................................................................... 10 3.4.2 Installing GNU utilities ....................................................................................................... 10 3.5 Eclipse and JRE .................................................................................................................... 10 3.5.1 Installing JRE .................................................................................................................... 10 3.5.2 Getting Eclipse Tools ........................................................................................................ 10 3.5.3 Installing Eclipse Tools ...................................................................................................... 10 3.6 Terminal Emulator ................................................................................................................. 12 4. Configuring the Toolchain .............................................................................................................. 13 4.1 Creating a New Project ......................................................................................................... 14 4.1.1 Workspace Launcher ........................................................................................................ 14 4.1.2 Setting Perspective ........................................................................................................... 15 4.1.3 Creating Eclipse Project .................................................................................................... 16 4.1.4 Setting Project Properties ................................................................................................. 17 4.1.5 Project Source Files .......................................................................................................... 19 4.1.6 Building the Project ........................................................................................................... 21 4.1.7 Configuring the Debugger ................................................................................................. 22 5. The TTI9XE Board ......................................................................................................................... 26 5.1 Boot sequence ...................................................................................................................... 27 5.2 Bootstrap Application ............................................................................................................ 27 6. Debugging the TTI9XE Board ........................................................................................................ 28 6.1 Starting a Debug Session ..................................................................................................... 28 6.1.1 Starting DBGU ................................................................................................................... 28 6.1.2 Starting the Debug server ................................................................................................. 29 6.1.3 Starting Eclipse CDT ......................................................................................................... 29 6.1.4 Using the Eclipse Debugger .............................................................................................. 30 7. Software Applications .................................................................................................................... 32 8. Design Notes ................................................................................................................................. 33 Testtron Technologies Inc. 3 Jan 2011 TTI9XE Software User Guide SS11001-1 1. Overview Most development solutions used today in the ARM® world are commercial packages. This document shows a toolchain based on a GNU open-source solution. It is an adaptation of the YAGARTO GNU-Based Software Development for the TTI9XE board. 1.1 Scope The goal of the present document is to provide a step-by-step guide for setting up a GNU software design environment targeted at the TTI9XE board using the Atmel AT91SAM9XE microcontroller. The EABI design environment includes the following features: o Compilation and building of projects using the GNU compiler toolchain o Debugging using the Atmel SAM-ICE™ emulator and SEGGER GDB-server o Memory programming using SAM-BA™, Atmel In-Situ Programming (ISP) tool o Integration of those tasks in an Eclipse™-based development environment 1.2 References [01],Atmel. AT91SAM9XE-512 Full Specification - 6254. [02],Atmel. AT91 ISP/SAM-BA User Guide - 6421B. [03],Atmel. Getting Started with AT91SAM9 Microcontrollers - 6297. [04],Atmel. AT91SAM-ICE User Guide - 6206. [05],Atmel. SAM Boot Assistant (SAM-BA) User Guide - 6132. [06],Atmel. GNU Based Software Development on AT91SAM