Skip to content

A makefile for Microchip/Atmel AVR microcontrollers

License

Notifications You must be signed in to change notification settings

giuliof/AVR-makefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

AVR-makefile

One Makefile to rule them all, One Makefile to find them, One Makefile to bring them all, and in the darkness bind them

A generic makefile, tuned for:

  • Microchip/Atmel AVR microcontrollers (default)
  • STM32 ARM microcontrollers (e.g. F103, L031, ...)

What I can change

Project organization

  1. Give a name to the project changing PROJ_NAME. This will be the name of the binary output too.
  2. Add sources (C, C++, assembly) to SRCS.

AVR Architecture

  1. Choose the target chip and put in MCU.
  2. Choose the clock frequency and put in F_CPU.

ARM Architecture

  1. Comment out all AVR lines inside ARCHITECTURE section.
  2. Choose the target chip and put in MCU.
  3. You may want to download or write your own startup file, then add it to SRCS.
  4. Download/write an appropriate linker script and add to LDSCRIPT.

About

A makefile for Microchip/Atmel AVR microcontrollers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •