Skip to content

The AVR-LibC package provides a subset of the standard C library for AVR 8-bit RISC microcontrollers.

License

Notifications You must be signed in to change notification settings

avrdudes/avr-libc

Repository files navigation

AVR-LibC

This is the standard library for Microchip (formerly Atmel) AVR devices together with the AVR-GCC compiler.

The library contains most of the functionality required by the ISO C standard, with the notable exception of wchar_t support. It also contains a lot of auxiliary functionality targeted to the AVR controller family. Further, it includes customizable startup code, tailored to work together with the linker scripts provided by the GNU Binutils, so for most AVR applications, there is usually no need to provide project-specific files for that purpose.

See the documentation for details.

The library is distributed using a modified BSD-style license.

AVR-LibC Source Code

The official source code repository is located at https://github.com/avrdudes/avr-libc/.

Building and installing AVR-LibC from source

AVR-LibC depends on GNU Binutils and GCC that should be built for the AVR target. We recommend to use the most recent versions of these tools. Detailed instructions on building these tools from source can be found in Building and Installing the GNU Tool Chain.

Note that to build AVR-LibC directly by cloning the GitHub repository, you will need to run the bootstrap script in the root directory first. AVR-LibC uses autoconf so be sure to use recent versions of autoconf and automake to generate the configure script and the Makefiles. This also requires Python being installed and available in the system path.