Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aurimasniekis/avr-devices-makefile
An advance AVR Makefile with support for programmer and bootloader
https://github.com/aurimasniekis/avr-devices-makefile
Last synced: 2 months ago
JSON representation
An advance AVR Makefile with support for programmer and bootloader
- Host: GitHub
- URL: https://github.com/aurimasniekis/avr-devices-makefile
- Owner: aurimasniekis
- Created: 2012-01-12T09:58:40.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-01-12T12:53:16.000Z (about 13 years ago)
- Last Synced: 2023-03-22T05:16:23.882Z (almost 2 years ago)
- Language: C
- Homepage: http://blog.gcds.lt
- Size: 89.8 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
AVR devices Makefile
====================I made this Makefile from zero so that it could fit my requirements. I am using CrossPack-AVR Toolchain. This Makefile supports after compile upload via programmer or bootloader
Configuring Makefile
--------------------Project Name:
PROJECT_NAME = main
Output file used for building and finished .hex will have this name
OUTPUT_NAME = firmwareMCU which you use for e.g ATmega168
TARGET = atmega168MCU option for programmer (avrdude)
PROGRAMMER_TARGET = m168
System clock default is 16Mhz
SYSTEM_CLOCK = 16000000LFlash MCU with fresh code after compile (TRUE/FALSE)
FLASH_AFTER_COMPILE=FALSEUse bootloader instead programmer (TRUE/FALSE)
USE_BOOTLOADER=FALSE
Code optimization level (I suggest to leave it s)
OPTIMIZATION = sProgrammer Options (e.g. programmer=dragon_isp port=usb options=)
PROGRAMMER = dragon_isp
PORGRMAMER_PORT = usb
PROGRAMMER_OPTIONS =Bootloader Options (e.g. for arduino optiboot programmer=avrisp port=/dev/tty.usb... options= -b 115200)
BOOTLOADER = avrisp
BOOTLOADER_PORT = /dev/tty.usbserial-
BOOTLOADER_OPTIONS = -b 115200
Installing for AVR-Project in CrossPack-AVR toolchain
------------------------------------------------------$ cd /usr/local/CrossPack-AVR/etc/templates/
$ mv TemplateProject TemplateProject.old
$ git clone git://github.com/gcds/AVR-devices-Makefile.git
$ mv AVR-devices-Makefile TemplateProject