Skip to content
Snippets Groups Projects
Commit 7aa7f8fb authored by Will Langford's avatar Will Langford
Browse files

Upload New File

parent 964ea3af
Branches
No related tags found
No related merge requests found
Pipeline #
PROJECT=hello.128a4u.blink
SOURCES=$(PROJECT).c
MMCU=atxmega128a4u
F_CPU = 32000000
TARGET = x128a4u
PROGRAMMER= atmelice_pdi
CFLAGS=-mmcu=$(MMCU) -Wall -Os -DF_CPU=$(F_CPU)
$(PROJECT).hex: $(PROJECT).out
avr-objcopy -O ihex $(PROJECT).out $(PROJECT).c.hex;\
avr-size --mcu=$(MMCU) --format=avr $(PROJECT).out
$(PROJECT).out: $(SOURCES)
avr-gcc $(CFLAGS) -I./ -o $(PROJECT).out $(SOURCES)
program: $(PROJECT).hex
avrdude -p $(TARGET) -c $(PROGRAMMER) -U flash:w:$(PROJECT).c.hex
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment