also ich denke mal, dass du mit dem asuro.c file den asuro file unter
C:\...\Asuro lib\AsuroLib-v270rc3\lib
meinst.
den habe ich hinzugefügt, so dass unter "Source Files" nun
001.c
asuro.c
und
TestProjekt.c
aufgelistet ist.
unter External Dependencies ist zu finden:
asuro.h
interrupt.h
inttypes.h
io.h
iom8.h
libasuro.a
libasuro.a
libc.a
libm.a
libprintf_flt.a
...
und noch ein paar andere h dateien mit unidentifizierbarem namen 
der outputFileName ist program.hex in directory default.
auch ein häckchen ist bei Create Hex File gesetzt.
im Makefile unter dafault dteht nun:
Code:
###############################################################################
# Makefile for the project TestProjekt
###############################################################################
## General Flags
PROJECT = TestProjekt
MCU = atmega8
TARGET = program.hex
CC = avr-gcc.exe
## Options common to compile, link and assembly rules
COMMON = -mmcu=$(MCU)
## Compile options common for all C compilation units.
CFLAGS = $(COMMON)
CFLAGS += -Wall -gdwarf-2 -Os -fsigned-char
CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d
## Assembly specific flags
ASMFLAGS = $(COMMON)
ASMFLAGS += $(CFLAGS)
ASMFLAGS += -x assembler-with-cpp -Wa,-gdwarf2
## Linker flags
LDFLAGS = $(COMMON)
LDFLAGS +=
## Intel Hex file production flags
HEX_FLASH_FLAGS = -R .eeprom
HEX_EEPROM_FLAGS = -j .eeprom
HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load"
HEX_EEPROM_FLAGS += --change-section-lma .eeprom=0 --no-change-warnings
## Include Directories
INCLUDES = -I"C:\Users\michael\Asuro\Workspace\eigener test\TestProjekt\..\..\..\Asuro lib\AsuroLib-v270rc3\lib\inc" -I"C:\Users\michael\Asuro\Workspace\eigener test\TestProjekt\..\..\..\..\..\..\WinAVR\avr\include"
## Library Directories
LIBDIRS = -L"C:\Users\michael\Asuro\Asuro lib\AsuroLib-v270rc3\lib" -L"C:\WinAVR\avr\lib"
## Libraries
LIBS = -lasuro -lc -lm -lprintf_flt -lprintf_min -lscanf_flt -lscanf_min -lasuro -lc -lm -lprintf_flt -lprintf_min -lscanf_flt -lscanf_min -lasuro -lasuro -lc -lm -lprintf_flt -lprintf_min -lscanf_flt -lscanf_min
## Objects that must be built in order to link
OBJECTS = TestProjekt.o 001.o asuro.o
## Objects explicitly added by the user
LINKONLYOBJECTS = "crt86401.o" "crtc8534.o" "crts1200.o" "crts2313.o" "crts2323.o" "crts2333.o" "crts2343.o" "crts4414.o" "crts4433.o" "crts4434.o" "crts8515.o" "crts8535.o" "crttn11.o" "crttn12.o" "crttn13.o" "crttn15.o" "crttn22.o" "crttn2313.o" "crttn24.o" "crttn25.o" "crttn26.o" "crttn261.o" "crttn28.o" "crttn44.o" "crttn45.o" "crttn461.o" "crttn84.o" "crttn85.o" "crttn861.o" "crt86401.o" "crtc8534.o" "crts1200.o" "crts2313.o" "crts2323.o" "crts2333.o" "crts2343.o" "crts4414.o" "crts4433.o" "crts4434.o" "crts8515.o" "crts8535.o" "crttn11.o" "crttn12.o" "crttn13.o" "crttn15.o" "crttn22.o" "crttn2313.o" "crttn24.o" "crttn25.o" "crttn26.o" "crttn261.o" "crttn28.o" "crttn44.o" "crttn45.o" "crttn461.o" "crttn84.o" "crttn85.o" "crttn861.o"
## Build
all: $(TARGET) program.hex program.eep size
## Compile
TestProjekt.o: ../TestProjekt.c
$(CC) $(INCLUDES) $(CFLAGS) -c $<
001.o: ../001.c
$(CC) $(INCLUDES) $(CFLAGS) -c $<
asuro.o: ../../../../Asuro lib/AsuroLib-v270rc3/lib/asuro.c
$(CC) $(INCLUDES) $(CFLAGS) -c $<
##Link
$(TARGET): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) $(LINKONLYOBJECTS) $(LIBDIRS) $(LIBS) -o $(TARGET)
%.hex: $(TARGET)
avr-objcopy -O ihex $(HEX_FLASH_FLAGS) $< $@
%.eep: $(TARGET)
-avr-objcopy $(HEX_EEPROM_FLAGS) -O ihex $< $@ || exit 0
%.lss: $(TARGET)
avr-objdump -h -S $< > $@
size: ${TARGET}
@echo
@avr-size -C --mcu=${MCU} ${TARGET}
## Clean target
.PHONY: clean
clean:
-rm -rf $(OBJECTS) program.hex dep/* program.hex program.eep
## Other dependencies
-include $(shell mkdir dep 2>/dev/null) $(wildcard dep/*)
aber eine hex wird immer noch nicht erzeugt. auch die warnungen erscheinen bei meinem testprogramm immer noch.
habe ich irgend etwas vergessen???
Lesezeichen