Starting Electronics needs your help! Please make a donation to help cover our hosting and other costs. Click the donate button to send a donation of any amount.
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 Microchip 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 Microchip 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 Microchip 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.
As an Amazon Associate I earn from qualifying purchases: