Contents
Preface
Introduction
Features
New and Noteworthy
Atmel Studio 7.0
Atmel Studio 6.2 Service Pack 2
Atmel Studio 6.2 Service Pack 1
Atmel Studio 6.2
Atmel Studio 6.1 Update 2
Atmel Studio 6.1 Update 1.1
Atmel Studio 6.1 Update 1
Atmel Studio 6.1
Atmel Studio 6.0
AVR Studio 5.1
Installation
Contact Information
Getting Started
Atmel Studio 7, START, and Software Content
AVR and SAM HW Tools and Debuggers
Data Visualizer and Power Debugging Demo
Installation and Updates
Microchip Gallery and Studio Extensions
Atmel START Integration
Creating a New Project
Creating From Arduino Sketch
In-System Programming and Kit Connection
I/O View and Other Bare-Metal Programming References
Editor: Writing and Re-Factoring Code (Visual Assist)
AVR Simulator Debugging
Debugging 1: Break Points, Stepping, and Call Stack
Debugging 2: Conditional- and Action-Breakpoints
Debugging 3: I/O View Memory View and Watch
Project Management
Introduction
The Solution Container
Save and Open Projects
Project Output View
Solution Explorer
Toolbar Icons
Hierarchical Display
Item Management Commands
Project Components
Change Version
GCC Projects
New Project Wizard
Starting a New GCC Project for AVR Device
Libraries Options
Toolchain Libraries
Project Libraries
Browse Libraries
How to Add Project Library
How to Add Toolchain Library
Starting a New GCC Project for SAM (ARM) Device
Code Editing
Starting a New GCC Static Library Project
Why Static Libraries
Create New Static Library Project
Static Library Project Options (AVR/GNU Archiver)
GCC Project Options and Configuration
Build Options
Build Events
Compiler and Toolchain Options
AVR GCC Linker Options
AVR Assembler Options
Device Options
Tool Options
Advanced Options
Setting Toolchain Flavours
Use GDB
Creating ELF Files with Other Memory Types
Creating ELF Files for tinyAVR, megaAVR, and XMEGA devices
Creating ELF Files for ATtiny4/5/9/10
Creating ELF Files for UC3
Project Properties
Assembler Projects
Create New Assembler Project
Project Context Menu
Assembler Options
Description of the Various Settings
Import of Projects
Introduction
Import AVR Studio 4 Project
Import AVR 32 Studio Project
Import Project Template
Debug Object File in Atmel Studio
Introduction
Atmel Studio Supported Debug Formats
Opening Object File for Debugging
Debugging
Introduction
Debug Platform Independent Debug Environment
Differences Between Platforms
Starting a Debug Session
Ending a Debug Session
Attaching to a Target
Start without Debugging
One Click Programming - Program and Run
Keyboard Shortcut
Debug Control
Breakpoints
General Information on Breakpoints
Breakpoint Glyphs
Operations with Breakpoints
To Set a Breakpoint
To Set an Address Breakpoint
To Edit a Breakpoint Location
Hit Count Keeps Track of How Many Times a Breakpoint is Hit
To Specify a Hit Count
To Enable or Disable a Single Breakpoint
To Delete a Breakpoint
To Delete all Breakpoints
Breakpoint Window
To Open the Breakpoints Window
To Go to the Location of a Breakpoint
To Display Additional Columns
To Export all Breakpoints that Match the Current Search Criteria
To Export Selected Breakpoints
To Import Breakpoints
To View Breakpoints that Match a Specified String
To View all Breakpoints after a Search
Breakpoint Labels
To Label Breakpoints
To Search for Breakpoints that have a Specified Label
To Remove Labels from Breakpoints
To Sort the Breakpoint List by Label
Data Breakpoints
Adding Data Breakpoint
Data Breakpoints Window
Data Breakpoints Tool Window
Data Breakpoint Configuration Window for AVR ATmega
Data Breakpoint Configuration Window for XMEGA
Data Breakpoint Configuration Window for UC3
Data Breakpoint Configuration Window for SAM
Data Match Example
Data Breakpoint Configuration Window for Simulator Tool
How to: Specify a Data Breakpoint Hit Count
When Breakpoint is Hit Dialog Box
General Information on Data Breakpoint
Data Breakpoint Usage
Stack Overflow Detection Using Data Breakpoint
QuickWatch, Watch, Locals, and Autos Windows
Watch Window
Locals Window
To Display the Locals Window
To Choose an Alternative Context
To Modify the Value of a Variable in the Locals Window
Setting Numeric Format
Autos Window
To Modify the Value of a Variable in the Autos Window
Setting Numeric Format
QuickWatch and Watches
Expression Formatting
DataTips
Expanding and Editing Information
Making a DataTip Transparent
Visualizing Complex Data Types
Adding Information to a Watch Window
Importing and Exporting DataTips
Disassembly View
I/O View
About the I/O View
Using the I/O View Tool
Editing Values and Bits in Break Mode
Processor View
Register View
Memory View
Call Stack Window
Object File Formats
Trace
Application Output
ITM
IDR Events
Program Counter Sampling
ARM Implementations
AVR 32-bit Implementation
Variable Watching
ARM Implementations
AVR 32-bit Implementation
Trace View
Trace View Options
Starting the Program Trace
Stop Trace
Clear Trace
Highlight Source Code
Trace View Settings
Trace View Interpretation
Trace Stack View
Coverage View
Programming Dialog
Introduction
Interface Settings
Tool Information
Board Settings/Tool Settings
Power Debugger
STK600
QT600
STK500
Card Stack
Device Information
Oscillator Calibration
Memories
Fuse Programming
Lock Bits
Production Signatures
Production Files
Security
Automatic Firmware Upgrade Detection
Miscellaneous Windows
Device Pack Manager
User Interface Profile Selection
Available Tools View
Introduction
Tool Actions
Add a Non-Detectable Tool
Add J-Link over IP
Tool Info Window
Xplained Pro Kits
Disable the Tools Info Window
Manually Showing the Window
Firmware Upgrade
Introduction
Automatic Upgrade
Manual Upgrade
Find and Replace Window
Export Template Wizard
Project Template
Item Template
Template Parameters
Declaring and Enabling Template Parameters
Default Template Parameters
Custom Template Parameters
Kit Mode Setting
GNU Toolchains
GNU Compiler Collection (GCC)
ARM Compiler and Toolchain Options: GUI
ARM GNU Toolchain Options
ARM/GNU Common Options
Compiler Options
Preprocessor
Symbols
Directories
Optimization
Debugging
Warnings
Miscellaneous
Linker Options
General
Libraries
Optimization
Assembler Options
Preprocessing Assembler Options
Archiver Options
Binutils
AVR Compiler and Toolchain Options: GUI
Commonly Used Options
Compiler Options
General
Preprocessor
Symbols
Directories
Optimization
Debugging
Warnings
Miscellaneous
Linker Options
General
Libraries
Optimization
Assembler Options
8-bit Specific AVR GCC Command Line Options
AVR C Compiler
General
Optimization
Miscellaneous
AVR C Linker
Optimization
32-bit Specific AVR GCC Command Line Options
Optimization
Debugging
AVR32 C Linker
Optimization
Miscellaneous
Binutils
Extending Atmel Studio
Extension Manager UI
Registering at the Microchip Gallery
Installing New Extensions in Atmel Studio
Visual Assist
Percepio Tracealyzer
Overview of QTouch Composer and Library
Installation
Overview of QTouch Project Builder
Overview of QTouch Analyzer
Scripting Extensions
Debug Scripting
Menus and Settings
Customizing Existing Menus and Toolbars
Reset Your Settings
Options Dialog Box
Environment Options
General Environment Settings
Add-in/Macros Security
Add-in Security Settings
AutoRecover
Find and Replace
Fonts and Colors
Language and International Settings
Keyboard Settings
Start-up Page — to Change the Default UI Displayed when You Start Atmel Studio
Import and Export Settings
Task List
Web Browser Options
Custom Start Pages
Project Options
General Settings
Build and Run Options
Source Control
Text Editor Options
General Settings
File Extensions and Associations
General Language Options
Tabs Dialog
AVR Assembler Language-Specific Settings
General Language Options
Tabs Dialog
AVR GCC Language-Specific Settings
General Language Options
Tabs Dialog
Plain Text Settings
General Language Options
Tabs Dialog
XML Settings
General Language Options
Tabs Dialog
XML Formatting Options
XML Miscellaneous Options
Debugger
Usage
AVR Debugger Settings
Advanced Software Framework Settings
Builder
Device and Tool Libraries
Status Management
Text Templating
Toolchain
Flavor
Add Flavor
Set Default Flavor
Delete Flavor
GDB Settings
Code Snippet Manager
Managing Code Snippets
Code Snippet Manager Layout
Modifying Existing Code Snippets
External Tools
Add an External Tool to the Tools Menu
Pass Variables to External Tools
Initial Directory
Run Behavior
Assign a Keyboard Shortcut
Predefined Keyboard Shortcuts
Command Line Utility (CLI)
Frequently Asked Questions
Compatibility with Legacy AVR Software and Third-party Products
How do I Import External ELF Files for Debugging?
How do I Reuse My AVR Studio 4 Projects with the New Atmel Studio?
Atmel Studio Interface
How can I Start Debugging My Code? What is the Keyboard Shortcut for Debugging?
What is a Solution?
What is a Project
How can I use an External Makefile for my Project?
When Watching a Variable, the Debugger says Optimized away
When Starting a Debug Session, I get an Error Stating that Debug Tool is not Set
Performance Issues
Atmel Studio Takes a Very Long Time to Start on My PC but Runs Well in a VM Environment. Is there Something I Can Do With This?
Verification and Programming often Fails with a Serial Port Buffer Overrun Error Message when using STK500
I've connected my Tool through a USB Hub, and now I get Error Messages and Inconsistent Results while Programming and Debugging
Driver and USB Issues
How do I get my Tool to be recognized by Atmel Studio?
The Firmware upgrade Process fails or is Unstable on a Virtualized Machine
Debugging never Breaks under a Virtualized Machine
Firmware Upgrade Fails on VirtualBox
Issues with ARM Compatible Tools
Document Revision History
The Microchip Web Site
Customer Change Notification Service
Customer Support
Product Identification System
Microchip Devices Code Protection Feature
Legal Notice
Trademarks
Quality Management System Certified by DNV
Worldwide Sales and Service
Legal Disclaimer