Na, dan ist irgendwie das falsche quelcode compiliert, oder nicht gut im asuro geflashed. Weil den Statusled aus gehen solte wenn den bootloader fertig ist. Grun sollte es gar nicht leuchten in Stochri's code.
Druckbare Version
Na, dan ist irgendwie das falsche quelcode compiliert, oder nicht gut im asuro geflashed. Weil den Statusled aus gehen solte wenn den bootloader fertig ist. Grun sollte es gar nicht leuchten in Stochri's code.
Hallo Valen,
habe jetzt nochmal mit den Lib gespielt und nun flasht er zwar Alles richtig aber der Asuro bleibt stumm "stehen". Die Geheim.hex umfasst auch 32pages im Gegensatz zu meiner compilierten mit 28pages.
Habe einfach die Dateien aus der Motor.zip in den Avr-Lib Ordner kopiert.
MfG Jurii, der am Verzweifeln ist :-(
Ich denke nicht das es im AVR-Lib order am richtigen platz ist. Die dateien sehen aus wie fur einer normalen Asuro program, ahnlich wie den Firsttry oder Selbtest Ordner. Denn test.c in diesen motor.zip lasst den Statusled blinken. Also ist nicht die quelcode oben compiliert sonnst die motor.zip test.c. Ich furchte du muss den AVR compiler und so wieder neu instalieren damit es wieder gut wirkt. Moglich hast du den wichtigen dateien uberschrieben.
Welches Lib brauchst du eigentlich. Den orginalen lib vom Asuro-CD oder die neue erweiterten Lib (2.7 oder 2.8 ) von Sourceforge?
Hallo Valen,
habe gerade die 2,71 Lib laut der Anleitung installiert. Sollte jetzt eigentlich funktionieren. Die Hex Datei ist jetzt auch nur noch 11pages gross und der Asuro leuchte grün auf. Mehr tut er aber auch nicht.
Ich versuche jetzt noch ein bisschen und ansonsten muss ich wohl das Handtuch werfen und aufgeben.
MfG Jurii
Servus @ all,
so habe jetzt nochmals Alles deinstalliert und nun nach den Anleitung in der Lib neuinstalliert.
Wenn ich nun ein eigenes Projekt anfertige und compiliere kommt folgende Fehlermeldungen
Wäre wahnsinnig nett wenn mir da jemand was zu sagen könnte.Code:> "C:\ASURO_SRC\FirstTry\Test-all.bat"
C:\ASURO_SRC\FirstTry>make all
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -IC:/ASURO_SRC/AsuroLib/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=C:/ASURO_SRC/AsuroLib/lib/asuro.lst C:/ASURO_SRC/AsuroLib/lib/asuro.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > asuro.d; \
[ -s asuro.d ] || rm -f asuro.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -IC:/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
-------- begin --------
avr-gcc --version
avr-gcc (WinAVR 20090313) 4.3.2
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.
avr-gcc -c -mmcu=atmega8 -I. -g -Os -IC:/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 -I. -g -Os -IC:/ASURO_SRC/AsuroLib/lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=C:/ASURO_SRC/AsuroLib/lib/asuro.lst C:/ASURO_SRC/AsuroLib/lib/asuro.c -o asuro.o
avr-gcc -mmcu=atmega8 -I. -g -Os -IC:/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 -LC:/ASURO_SRC/AsuroLib/lib -lm -lasuro
c:/winavr-20090313/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr4/crtm8.o:(.init9+0x0): undefined reference to `main'
make: *** [test.elf] Error 1
> Process Exit Code: 2
> Time Taken: 00:01
MfG Jurii
Das ist schon ofter vorbei gekommen hier Im Asuro abteilung. Aber was dar fehlt geht mich uber den kopf.Zitat:
undefined reference to `main'
[/quote]Zitat:
Zitat von stochri
Hallo! Ich bekomme folgenden Fehlermeldung beim erstellen der HEX file!
Wenn ich die Methoden "EncoderInit, EncoderSet, EncoderStar, EncoderStop" funktioniert das HEX file erstellen?Code:"-------- 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 -I../../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 -I../../lib/inc -funsigned
-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=../../lib/asuro.lst ../../lib/asuro.c -o asuro.o
avr-gcc -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -I../../lib/inc -funsigned-ch
ar -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -W
a,-ahlms=test.o test.o asuro.o --output test.elf -Wl,-Map=test.map,--cref -L..
/../lib -lm -lasuro
C:\WinAVR\bin\..\lib\gcc-lib\avr\3.3.1\..\..\..\..\avr\bin\ld.exe: BFD 2.14 2003
0612 + coff-avr-patch (20030831) internal error, aborting at ../../bfd/reloc.c l
ine 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"
Deine letzte frage verstehe ich nicht. Aber du benutzt eine alte version von den compiler (WinAVR 3.3.1). Versuch es mal mit ein spätere version:
http://sourceforge.net/projects/winavr/files/