bei mir steht das garnich. Ich glaub mein makefile ist schlecht (nicht selber geschrieben).
Hier ist es mal:

makefile:
Code:
# makefile, written by guido socher
MCU=atmega32
CC=avr-gcc
OBJCOPY=avr-objcopy
# optimize for size:
CFLAGS=-g -mmcu=$(MCU) -Wall -Wstrict-prototypes -Os -mcall-prologues
#-------------------
all: test.hex
#-------------------
help: 
	@echo "Usage: make all|load|load_pre|rdfuses|wrfuse1mhz|wrfuse4mhz|wrfusecrystal"
	@echo "Warning: you will not be able to undo wrfusecrystal unless you connect an"
	@echo "         external crystal! uC is dead after wrfusecrystal if you do not"
	@echo "         have an external crystal."
#-------------------
test.hex : test.out 
	$(OBJCOPY) -R .eeprom -O ihex test.out test.hex 
test.out : test.o 
	$(CC) $(CFLAGS) -o test.out -Wl,-Map,test.map test.o 
test.o : test.c 
	$(CC) $(CFLAGS) -Os -c test.c 
#------------------
load: test.hex
	./prg_load_uc test.hex
# here is a pre-compiled version in case you have trouble with
# your development environment
load_pre: test_pre.hex
	./prg_load_uc test.hex
#
loaduisp: test.hex
	./prg_load_uc -u test.hex
# here is a pre-compiled version in case you have trouble with
# your development environment
load_preuisp: test_pre.hex
	./prg_load_uc -u test.hex
#-------------------
# fuse byte settings:
#  Atmel AVR ATmega8 
#  Fuse Low Byte      = 0xe1 (1MHz internal), 0xe3 (4MHz internal), 0xe4 (8MHz internal)
#  Fuse High Byte     = 0xd9 
#  Factory default is 0xe1 for low byte and 0xd9 for high byte
# Check this with make rdfuses
rdfuses:
	./prg_fusebit_uc -r
# use internal RC oscillator 1 Mhz
wrfuse1mhz:
	./prg_fusebit_uc -w 1
# use internal RC oscillator 4 Mhz
wrfuse4mhz:
	./prg_fusebit_uc -w 4
# use external 3-8 Mhz crystal
# Warning: you can not reset this to intenal unless you connect a crystal!!
wrfusecrystal:
	@echo "Warning: The external crystal setting can not be changed back without a working crystal"
	@echo "         You have 3 seconds to abort this with crtl-c"
	@sleep 3
	./prg_fusebit_uc -w 0
#-------------------
clean:
	rm -f *.o *.map *.out *t.hex
#-------------------
prg_load_uc
Code:
#!/bin/sh 
prg="adude"
if [ "$1" = "-u" ]; then
	shift;
	prg="uisp"
fi
if [ -z "$1" -o "$1" = "-h" -o "$1" = "--help" ]; then
	echo "prg_load_uc -- load a .hex file into a atmega8 microcontroller"
	echo ""
	echo "Usage: prg_load_uc [-hu] File.hex"
	echo ""
	echo "OPTIONS: -h this help"
	echo "         -u use uisp instead of avrdude"
	echo "            avrdude can automatically detect dapa or avrusb500."
	echo "            uisp can only be used with the parallel port dapa."
	echo ""
	echo "This script can be easily adapted to different Programmer types"
	exit 0
fi
pfile="$1"

if [ "$prg" = "uisp" ]; then
	set -x
	uisp -dlpt=/dev/parport0 --erase  -dprog=dapa
	uisp -dlpt=/dev/parport0 --upload if="$pfile" -dprog=dapa  -v=3 --hash=32 --verify
	set +x
fi
if [ "$prg" = "adude" ]; then
	if grep "Vendor=0403 ProdID=6001" /proc/bus/usb/devices > /dev/null ; then
		set -x
		avrdude -p m32 -c avrusb500 -e -U flash:w:"$pfile"
		set +x
	else
		set -x
		avrdude -p atmega32 -c stk200 -e -U flash:w:"$pfile"
		set +x
	fi
fi

Kannst du mir mal deins posten?

mfg
jagdfalke