PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Fehler im Code?



mtzE
06.05.2010, 22:00
Halli Hallo :)
Habe gerade versucht mit der neuen Lib etwas umzugehen jedoch gleich einen Fehler bekommen.. habe folgenden Code:

#include "asuro.h"

int main(void)
{
int i;

i = 0;

Init();
EncoderInit();

while(i != 1){
MotorDir(FWD,FWD);
Go(500,255);
i = i + 1;
}

return 0;
}


Und die Ausgabe ist:

D:\Asuro\ASURO_src\EigeneSrc>make MCU=atmega8 LIBFILE=asuro
set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Asuro/ASURO_SRC/AsuroLib/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst asuro.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > asuro.d; \
[ -s asuro.d ] || rm -f asuro.d
C:\Users\Matze\AppData\Local\Temp\make45522.sh: /c/WinAVR/bin/avr-gcc: Invalid argument
set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Asuro/ASURO_SRC/AsuroLib/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
C:\Users\Matze\AppData\Local\Temp\make45523.sh: /c/WinAVR/bin/avr-gcc: Invalid argument
-------- begin --------
avr-gcc --version
avr-gcc (GCC) 3.3.1
Copyright (C) 2003 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.

avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Asuro/ASURO_SRC/AsuroLib/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c -o test.o
avr-gcc -c -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Asuro/ASURO_SRC/AsuroLib/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst asuro.c -o asuro.o
avr-gcc -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -ID:/Asuro/ASURO_SRC/AsuroLib/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.o test.o asuro.o --output test.elf -Wl,-Map=test.map,--cref -LD:/Asuro/ASURO_SRC/AsuroLib/lib -lm -lasuro
C:\WinAVR\bin\..\lib\gcc-lib\avr\3.3.1\..\..\..\..\avr\bin\ld.exe: BFD 2.14 20030612 + coff-avr-patch (20030831) internal error, aborting at ../../bfd/reloc.c line 444 in bfd_get_reloc_size

C:\WinAVR\bin\..\lib\gcc-lib\avr\3.3.1\..\..\..\..\avr\bin\ld.exe: Please report this bug.

make: *** [test.elf] Error 1

D:\Asuro\ASURO_src\EigeneSrc>pause
Drcken Sie eine beliebige Taste . . .


Worin liegt mein Fehler??

MfG. mtzE

syn_error
06.05.2010, 23:20
C:\WinAVR\bin\..\lib\gcc-lib\avr\3.3.1\..\..\..\..\avr\bin\ld.exe: BFD 2.14 20030612 + coff-avr-patch (20030831) internal error, aborting at ../../bfd/reloc.c line 444 in bfd_get_reloc_size

C:\WinAVR\bin\..\lib\gcc-lib\avr\3.3.1\..\..\..\..\avr\bin\ld.exe: Please report this bug.
die installierte software hat einen fehler, ist veraltet oder nicht richtig installiert.

mtzE
06.05.2010, 23:42
Hmm Problem gelöst.. hab mal ne neue Version von WinAVR installiert..
kommt zwar jetzt immer noch ein Fehler.. Mit dem Errorcode: 128 aber die Hex Datei wird erstellt und ist voll funktionsfähig.. :)

MfG. mtzE

Valen
07.05.2010, 20:25
... Errorcode: 128

Ich habe dieses gefunden in das Arexx forum:

http://www.arexx.com/forum/viewtopic.php?t=704

mtzE
07.05.2010, 21:45
Wunderbar :)
hat mir geholfen.. dankeschön!
Hätte nicht gedacht das es an einer dll lag :P

MfG. mtzE

radbruch
07.05.2010, 22:26
Sherlock Valen ;)

Valen
07.05.2010, 23:40
Es hat mich auch bewundert das ich es so schnell gefunden habe. Und das es so in die nähe war, bei unsere sehr ge-ehrte Asuro Hersteller.