Also ich mache nochmal ein Programm das ich früher mal geschrieben habe und es hat zu 100% gefunkt
Code:
#include "asuro.h"
int main (void)
{
Init();
int z;
MotorSpeed(110,100);
while(1)
{
if (PollSwitch()< 1)
{MotorDir(FWD,FWD);
BackLED(ON,OFF);}
else
{MotorDir(FWD,RWD);
BackLED(OFF,ON);}
for(z=0 ; z < 230 ; z++){Sleep(216);}
MotorDir(FWD,FWD);
}
return(0);
}
ich gebe es ein
Drücke auf die diskette um es zu speichern
(zur sicherheit schaue ich hier C:\ASURO_src\FirstTry nach und da ist es dann auch in test.c)
Ok
dann auf make all
Und hier das ergebniss
Code:
> "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 -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:04
Edit:
Das stimmt doch so oder?
Lesezeichen