Starting Electronics Needs Your Help!
It is that time of the year when we need to pay for web hosting and buy new components and equipment for new tutorials. You can help by making a donation. Contribute to this website by clicking the Donate button. The total will be updated once daily. (You may need to clear your browser cache to see the updates.)
Target Amount: $2000
Amount Raised: $432
Top Donor: D.C. $30
Created on: 19 April 2016
Part 1 of the ASF ARM Tutorial
This tutorial shows how to use the ASF or Atmel Software Framework in Atmel Studio 7 for ARM Cortex microcontrollers.
Atmel Software Framework is a collection of software components for Atmel Flash microcontrollers written in the C programming language. ASF includes software drivers, libraries and example projects that make development for Atmel microcontrollers easier. Embedded developers do not need to start a microcontroller software project completely from scratch and create driver functions and other utilities, but can use ASF drivers and utilities which are already written and tested.
Any Atmel ARM Cortex microcontroller board can be used to follow this tutorial, even a custom board. ASF is available for AVR and ARM microcontrollers; a complete list of supported microcontrollers can be found on the Atmel website.
All ASF projects in this tutorial series have been developed and tested using Atmel Studio 7 and are run on an Atmel SAM4N Xplained Pro board (part number ATSAM4N-XPRO) which contains an ATSAM4N16C ARM Cortex-M4 based microcontroller. If you are using a different board, you will need to make minor changes to the examples when selecting the board and microcontroller in each project.
ASF is installed with Atmel Studio, so there is no need to install it separately. This tutorial uses ASF in Atmel Studio only.
ASF is available as a standalone package, but do not download this package for use with this tutorial, just install Atmel Studio.
The ASF is usually shown arranged in layers as illustrated in the following image.
A brief explanation of each layer follows, but will make more sense once they are used in a project.
In the next part of this tutorial, a simple ASF ARM example project is created in Atmel Studio. The project is a very simple embedded application that blinks a single LED.