Hallo,
ich hab mir die Dokumentation mal durchgelesen!
Für mich Anfänger ist das Chinesisch und Japanisch gemixt.
Das mit der Makefile hab ich noch hinbekommen, also den Libpath anzugeben
aber dann bei neue Projekte verstand ich nur noch Bahnhof.

Ich hab immer noch mein altes Programm namens werner.c:
#include "asuro.h"
#define cm 75
int main(void)

{
Init();
MotorDir (FWD,FWD);

//Strecke 1m;
MotorSpeed (125,125);
Msleep ( 100 * cm );

MotorSpeed (0,0);
}
So wie ich bei "Neue Projekte" gelesen hab soll ich nur die dateien benötigen die ich im anhang hab(ohne asuro.h), dann meckert er aber, dass er asuro.h nicht findet:

> "make.exe" all
set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -I../../lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \
[ -s test.d ] || rm -f test.d
test.c:9:19: error: asuro.h: No such file or directory
-------- begin --------
avr-gcc --version
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

make.exe: *** No rule to make target `test.hex', needed by `all'. Stop.

> Process Exit Code: 2
> Time Taken: 00:01


So wenn ich dann asuro.h im selben Verzeichnis habe (wie im Bild) meint er:
> "make.exe" all
set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -I../../lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \
[ -s test.d ] || rm -f test.d
-------- begin --------
avr-gcc --version
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

make.exe: *** No rule to make target `test.hex', needed by `all'. Stop.

> Process Exit Code: 2
> Time Taken: 00:01

Im Voraus vielen Dank

Klicke auf die Grafik für eine größere Ansicht

Name:	problem.PNG
Hits:	3
Größe:	17,3 KB
ID:	29675