Dnia wtorek 02 października 2007, Bart napisał: > Tak troche OT - macie jakies dzialajace gui do avrdude albo uisp ? >
Polecam po prostu ustawić opcje programatora w /etc/avrdude.conf i zrobić
Makefile, taki jak np. ten:
MCU=atmega16
CC=avr-gcc
OBJCOPY=avr-objcopy
CFLAGS=-g -mmcu=$(MCU) -Wall -Wstrict-prototypes
#-Wl,-u,vfprintf -lprintf_min
robot.hex : robot.out
$(OBJCOPY) -R .eeprom -O ihex robot.out robot.hex
robot.out : robot.o
$(CC) $(CFLAGS) -o robot.out -Wl,-Map,robot.map robot.o uart.o
robot.o : main.c uart.c uart.h globals.h
$(CC) $(CFLAGS) -Os -c -o robot.o main.c
$(CC) $(CFLAGS) -Os -c -o uart.o uart.c
load: robot.hex
avrdude -p m16 -U flash:w:robot.hex
clean:
rm -f *.o *.map *.out *.hex
Teraz tylko make load i załaduje, a w razie potrzeby i skompiluje. Jeśli
kolega używa KDE, wbudowany terminal w Kate jest do tego idealny.
--
Remigiusz "Enleth" Marcinkiewicz, [EMAIL PROTECTED]
WWW http://enleth.com http://heroes.net.pl
JID [EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ pld-users-pl mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-users-pl
