Das versuche ich sofort. Ich hatte beim installieren den Ordner "WinAVR" genannt, ohne die Versionsnummer, die vorgeschalgen wurde. War das falsch? Doch wohl eher nicht. AVR Studio auch neu installieren?
Hier das Make-File
################################################## #############################
# Makefile for the project AsuroTest
################################################## #############################
## General Flags
PROJECT = AsuroTest
MCU = atmega8
TARGET = AsuroTest.elf
CC = avr-gcc
CPP = avr-g++
## 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 -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d
sorry, hast ja recht.
################################################## #############################
# Makefile for the project AsuroTest
################################################## #############################
## General Flags
PROJECT = AsuroTest
MCU = atmega8
TARGET = AsuroTest.elf
CC = avr-gcc
CPP = avr-g++
## 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 -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d
So, ich hab das ganze jetzt mal probiert.
Im Anhang ist mein Test, probier das mal.
Mit deiner WinAVR-Installation sollte ein Programm namens Programmers-Notepad mitgekommen sein.
Öffne in diesem mal nach dem entpacken der zip-Datei die test.c im Ordner testprog.
Dann klick oben in der Leiste auf "Tools->make" (so heißt es glaube ich). So müsste es funktionieren.
Wenn nicht, dann bin ich mit meinem Latein leider auch am Ende
Hatte keine Geduld bis heute Abend zu warten,
Dein Orginal, ohne asuro.h, ergab den Fehler "asuro.h nicht gefunden."
Asuro.h ins Projekt kopiert, alles roger.
Es wurde in beiden Fällen kein test.hex erstellt.
Bringt Dich das weiter?
VG Willi
Lesezeichen