From 0f3a959b2f0bb78b12e404230d4a7a3db79e03e4 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 20 Aug 2017 13:35:59 +0200 Subject: ... --- amforth-6.5/appl/template/makefile | 7 ++++--- amforth-6.5/appl/template/template.asm | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'amforth-6.5') diff --git a/amforth-6.5/appl/template/makefile b/amforth-6.5/appl/template/makefile index 33142ee..22ba346 100644 --- a/amforth-6.5/appl/template/makefile +++ b/amforth-6.5/appl/template/makefile @@ -15,7 +15,7 @@ TARGET=template AMFORTH=../.. # the MCU should be identical to the device -MCU=atmega1284p +MCU=atmega328p # set the fuses according to your MCU LFUSE=0xnn HFUSE=0xnn @@ -36,7 +36,8 @@ BURNER=$(USB) AVRDUDE=avrdude AVRDUDE_FLAGS=-q $(BURNER) -p $(MCU) -AVRASM=wine $(DIR_ATMEL)/avrasm2.exe -I $(DIR_ATMEL)/Appnotes2 +#AVRASM=wine $(DIR_ATMEL)/avrasm2.exe -I $(DIR_ATMEL)/Appnotes2 +AVRASM=avra -I $(DIR_ATMEL)/Appnotes2 # ---------------------------------------------------------- @@ -55,7 +56,7 @@ $(TARGET).hex: $(TARGET).asm words/*.asm $(AMFORTH)/common/words/*.asm $(AMFORTH TSTAMPLEN=$${#TSTAMP}; \ echo "($$TSTAMPLEN) $$TSTAMP"; \ sed -e "s/@TSTAMPLEN@/$$TSTAMPLEN/g" -e "s/@TSTAMP@/$$TSTAMP/g" $(AMFORTH)/common/words/build-info.tmpl > words/build-info.asm ) - $(AVRASM) $(INCLUDE) -fI -v0 -e $(TARGET).eep.hex -l $(TARGET).lst $(TARGET).asm + $(AVRASM) $(INCLUDE) -fI -e $(TARGET).eep.hex -l $(TARGET).lst $(TARGET).asm $(TARGET).back: $(AVRDUDE) $(AVRDUDE_FLAGS) -U flash:r:$(TARGET).hex:i -U eeprom:r:$(TARGET).eep.hex:i diff --git a/amforth-6.5/appl/template/template.asm b/amforth-6.5/appl/template/template.asm index 95a82e3..53de860 100644 --- a/amforth-6.5/appl/template/template.asm +++ b/amforth-6.5/appl/template/template.asm @@ -35,7 +35,7 @@ ; amforth needs two essential parameters: CPU clock ; and command terminal line. ; cpu clock in hertz, 1MHz is factory default -.equ F_CPU = 8000000 +.equ F_CPU = 20000000 ; terminal settings ; check http://amforth.sourceforge.net/TG/recipes/Usart.html -- cgit v1.2.3