Installing Procyon AVRlib

Sections

  1. Overview
  2. Downloading
  3. Installing
  4. Testing
Written by Pascal Stang | Updated:

1. Overview

Procyon AVRlib is an open-source collection of C-language function libraries for the Atmel AVR series processors. The goal of AVRlib is to provide the programmer with a code base which performs the most often needed tasks in embedded system programming. Hopefully, this will allow the programmer to focus on high-level operation of their code rather than get bogged down in the details.

In short, AVRlib is a bunch of functions that do things commonly needed in embedded systems. Despite the learning curve of getting started, for most projects, using AVRlib will shorten the time spent programming and/or improve the quality or functionality of the final product.

AVRlib functions are available for a wide variety of tasks and purposes. In general, AVRlib tries to address the following kinds of needs:

For a complete list of currently available function libraries see the AVRlib Main Page.

2. Downloading

AVRlib is currently available as individual files, or a complete zip file. Both are available from the AVRlib Main Page.

Downloading the complete avrlib.zip file is highly recommended as documentation and code examples are included in the zip.

3. Installing

This installation for AVRlib assumes you have already installed the AVR-GCC or WinAVR compiler.

Before beginning the install process, you need to choose or create a directory where the you will be keep the AVR code you write. This will be a top-level directory under which you can create project folders to hold the code for each individual project you work on. The directory you choose should not contain spaces in its name or path. Some examples are:

c:\Code\AVR                   (GOOD)
c:\My Code                    (NOT RECOMMENDED - HAS SPACES IN PATH)

From the download step you should have an avrlib.zip file. Unzip this file into the code directory you chose above. Be sure to preserve the internal directory structure of the zip file when you unzip it. Afterward, you can delete avrlib.zip but you may want to keep it for later re-installs or as a backup.

You should now have an avrlib directory where you installed AVRlib. If you have some time, get familiar with what's inside some of the directories. Your directories should look something like this:

c:\Code\AVR\avrlib            <-- AVRlib header and code files
c:\Code\AVR\avrlib\conf       <-- AVRlib template configuration files
c:\Code\AVR\avrlib\docs       <-- AVRlib documentation
c:\Code\AVR\avrlib\examples   <-- AVRlib example applications
c:\Code\AVR\avrlib\avrmake    <-- AVRlib makefile include

The final step in the AVRlib installation is to copy the avrmake directory shown above to the directory where you installed AVR-GCC or WinAVR. After doing this, you might then have a directory such as:

c:\Programa\winavr            <-- Example installation directory for WinAVR
c:\Programa\winavr\avrmake    <-- Copied avrmake directory

AVRlib installation is complete!

4. Testing

There are a few simple steps you can take to verify that AVRlib is properly installed:
(This assumes you have previously installed and tested the AVR-GCC or WinAVR compiler)


Written by Pascal Stang | Updated: