Hallo Osser,
Ich Habe denn Fehler gefunden, Hoffentlich.
Mußte nur asuro.c und asuro.h mit einbinden.
Gruß
Juelicher
Hallo Osser,
ich schreibe zum ersten mal und habe mit deinen Programm schwierigkeiten. Bekomme immer diese Fehlermeldung die ich nicht verstehe.
C:\AsuroFlash\Projekte\Zweite\Project2.hex
is set as default flash file.
Use program button to flash it to hardware.
File saved.
Default make_all.cmd file created.
Default makefile created.
Make
C:\AsuroFlash\Projekte\Zweite>C:\WinAVR\utils\bin\ make.exe all
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=new.lst -IC:\AsuroFlash\include new.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > new.d; \
[ -s new.d ] || rm -f new.d
-------- 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.
Size before:
Project2.elf :
section size addr
.text 102 0
.data 0 8388704
.bss 0 8388704
.noinit 0 8388704
.eeprom 0 8454144
.stab 768 0
.stabstr 1685 0
Total 2555
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=new.lst -IC:\AsuroFlash\include new.c -o new.o
new.c:3: warning: return type of `main' is not `int'
new.c: In function `main':
new.c:9: warning: `return' with a value, in function returning void
avr-gcc -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=new.o -IC:\AsuroFlash\include new.o --output Project2.elf -Wl,-Map=Project2.map,--cref -IC:\AsuroFlash\lib -lm
new.o(.text+0x: In function `main':
C:\AsuroFlash\Projekte\Zweite/new.c:4: undefined reference to `Init'
make.exe: *** [Project2.elf] Error 1
ExitCode 2
Ready.
Wie bekomme ich diesen Error 1 weg
Gruß
Juelicher
Hallo Osser,
Ich Habe denn Fehler gefunden, Hoffentlich.
Mußte nur asuro.c und asuro.h mit einbinden.
Gruß
Juelicher
Hi,
würde dein Programm auch sehr gerne mal benutzen aber leider sind bei mir die Schaltflächen "Make all" und "Make clean" grau hinterlegt.
Woran kann das liegen?
Habe den richtigen Pfad angegeben aber leider geht nichts.
Mfg Tom
Hallo Minifuzi,
Habe immer noch Schwierigkeiten mit dem Programm vom Osser,
aber wie du die Make all und Make clean aktivieren kannst, das weis ich schon.
Einfach das Projekt und die Dateien abspeichern. Bei mir hat es Funktioniert die Dateien einzelnt abzuschbeichern.
Wenn ich dann auf Projekt speichern gehe werden Alle Dateien und das Projekt abgespeichert.
Gruß
Juelicher
Dankeschön, das das so einfach hätt ich mir nicht gedacht. Jetzt bin ich schon mal einen Schritt weiter zu meinem egenen Programm.
Mfg Tom
So, jetzt hab ich zwar dei Schaltflächen bekomm aber immer wieder folgende Fehlermeldung:
Code:Asuro Flash (Alias Eierlegendewollmilchsau) V1.1.5.30 (c) O.O. Müller 2006 User has admin rights. Processor , OS WINXP Hello Tom on PAUL, have fun :) Session Environment Variables: AF_AVRDIR=C:\Programme\Asuro\WinAVR AF_PROJECT=Project1 AF_SOURCE_FILES= AF_ASM_SRC_FILES= AF_PRGDIR=C:\Programme\Asuro\AsuroFlash >Ready. File saved as C:\Programme\Asuro\AsuroFlash\test.c Session Environment Variables: AF_AVRDIR=C:\Programme\Asuro\WinAVR AF_PROJECT=test AF_SOURCE_FILES=test.c AF_ASM_SRC_FILES= AF_PRGDIR=C:\Programme\Asuro\AsuroFlash File test.c saved. Default make_all.cmd file created. Default makefile created. Make C:\Programme\Asuro\AsuroFlash>C:\Programme\Asuro\WinAVR\utils\bin\make.exe all set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst -IC:\Programme\Asuro\AsuroFlash\include 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 (GCC) 4.2.2 (WinAVR 20071221) Copyright (C) 2007 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 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst -IC:\Programme\Asuro\AsuroFlash\include test.c -o test.o test.c:1:19: error: asuro.h: No such file or directory test.c:3: warning: return type of 'main' is not 'int' test.c: In function 'main': test.c:9: warning: 'return' with a value, in function returning void make: *** [test.o] Error 1 ExitCode 2 Ready. File test.c saved. Session Environment Variables: AF_AVRDIR=C:\Programme\Asuro\WinAVR AF_PROJECT=test AF_SOURCE_FILES=test.c AF_ASM_SRC_FILES= AF_PRGDIR=C:\Programme\Asuro\AsuroFlash File test.c saved. Default make_all.cmd file created. Default makefile created. Make C:\Programme\Asuro\AsuroFlash>C:\Programme\Asuro\WinAVR\utils\bin\make.exe all set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst -IC:\Programme\Asuro\AsuroFlash\include test.c \ | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \ [ -s test.d ] || rm -f test.d test.c:1:54: error: asuro.h: No such file or directory set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst -IC:\Programme\Asuro\AsuroFlash\include test.c \ | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \ [ -s test.d ] || rm -f test.d test.c:1:54: error: asuro.h: No such file or directory -------- begin -------- avr-gcc --version avr-gcc (GCC) 4.2.2 (WinAVR 20071221) Copyright (C) 2007 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 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst -IC:\Programme\Asuro\AsuroFlash\include test.c -o test.o test.c:1:54: error: asuro.h: No such file or directory test.c:3: warning: return type of 'main' is not 'int' test.c: In function 'main': test.c:9: warning: 'return' with a value, in function returning void make: *** [test.o] Error 1 ExitCode 2 Ready. File saved as C:\Programme\Asuro\AsuroFlash\test.c Session Environment Variables: AF_AVRDIR=C:\Programme\Asuro\WinAVR AF_PROJECT=test AF_SOURCE_FILES=..\test.c AF_ASM_SRC_FILES= AF_PRGDIR=C:\Programme\Asuro\AsuroFlash File test.c saved. Default make_all.cmd file created. Default makefile created. Make C:\Programme\Asuro\AsuroFlash\FirstTry>C:\Programme\Asuro\WinAVR\utils\bin\make.exe all set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=..\test.lst -IC:\Programme\Asuro\AsuroFlash\include ..\test.c \ | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > ..\test.d; \ [ -s ..\test.d ] || rm -f ..\test.d avr-gcc.exe: ..test.c: No such file or directory avr-gcc.exe: no input files -------- begin -------- avr-gcc --version avr-gcc (GCC) 4.2.2 (WinAVR 20071221) Copyright (C) 2007 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 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=..\test.lst -IC:\Programme\Asuro\AsuroFlash\include ..\test.c -o ..\test.o ..\test.c:1:54: error: asuro.h: No such file or directory ..\test.c:3: warning: return type of 'main' is not 'int' ..\test.c: In function 'main': ..\test.c:9: warning: 'return' with a value, in function returning void make: *** [..\test.o] Error 1 ExitCode 2 Ready. Session Environment Variables: AF_AVRDIR=C:\Programme\Asuro\WinAVR AF_PROJECT=test AF_SOURCE_FILES=..\test.c test.c AF_ASM_SRC_FILES= AF_PRGDIR=C:\Programme\Asuro\AsuroFlash Default make_all.cmd file created. Default makefile created. Make C:\Programme\Asuro\AsuroFlash\FirstTry>C:\Programme\Asuro\WinAVR\utils\bin\make.exe all set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst -IC:\Programme\Asuro\AsuroFlash\include test.c \ | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \ [ -s test.d ] || rm -f test.d test.c:1:19: error: asuro.h: No such file or directory -------- begin -------- avr-gcc --version avr-gcc (GCC) 4.2.2 (WinAVR 20071221) Copyright (C) 2007 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: *** No rule to make target `test.hex', needed by `all'. Stop. ExitCode 2 Ready. File saved as C:\Programme\Asuro\AsuroFlash\FirstTry\test.c Session Environment Variables: AF_AVRDIR=C:\Programme\Asuro\WinAVR AF_PROJECT=test AF_SOURCE_FILES=..\test.c test.c AF_ASM_SRC_FILES= AF_PRGDIR=C:\Programme\Asuro\AsuroFlash Default make_all.cmd file created. Default makefile created. Make C:\Programme\Asuro\AsuroFlash\FirstTry>C:\Programme\Asuro\WinAVR\utils\bin\make.exe all set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst -IC:\Programme\Asuro\AsuroFlash\include test.c \ | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \ [ -s test.d ] || rm -f test.d test.c:1:54: error: asuro.h: No such file or directory -------- begin -------- avr-gcc --version avr-gcc (GCC) 4.2.2 (WinAVR 20071221) Copyright (C) 2007 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: *** No rule to make target `test.hex', needed by `all'. Stop. ExitCode 2 Ready.
Hallo Minifuzi,
test.c:1:54: error: asuro.h: No such file or directory
Kann es sein das du im Projektverzeichnis kein asuro.h eingebunden hast?
AF_SOURCE_FILES=..\test.c test.c
Und das es zwei test.c im Projektverzeichnis gibt?
Gruß
Juelicher
Hallo allerseits,
ich bin noch relativ neu hier und möchte dieses Programm auch benutzen, weiß aber nicht was ich da alles einstellen muss (z.B. den Pfad für den AVR, muss man da eine bestimmte Datei auswählen?)
mfg hai1991
Wo ist Osser? Oder Jemand der weiß wie es geht??
Habe immer noch Probleme!!!
Ein einfaches Programm.
#include <asuro.h>
int main(void) {
Init();
while (1) {
}
while (1) {}
return 0;
}
Macht mir diese Schwierigkeiten.
Asuro Flash (Alias Eierlegendewollmilchsau) V1.1.5.30 (c) O.O. Müller 2006
User has admin rights.
Processor , OS WINXP
Hello Gerhard on KSHK, have fun
Session Environment Variables:
AF_AVRDIR=C:\WinAVR-20071221
AF_PROJECT=Project1
AF_SOURCE_FILES=
AF_ASM_SRC_FILES=
AF_PRGDIR=C:\Programme\AsuroFlash2
>Ready.
File new.c saved.
File asuro.h saved.
File myasuro.h saved.
File asuro.c saved.
Session Environment Variables:
AF_AVRDIR=C:\WinAVR-20071221
AF_PROJECT=Project1
AF_SOURCE_FILES=new.c asuro.c
AF_ASM_SRC_FILES=
AF_PRGDIR=C:\Programme\AsuroFlash2
File new.c saved.
File asuro.h saved.
File myasuro.h saved.
File asuro.c saved.
Default make_all.cmd file created.
Default makefile created.
Make
C:\AsuroFlash2>C:\WinAVR-20071221\utils\bin\make.exe all
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst -IC:\Programme\AsuroFlash2\include 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 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=new.lst -IC:\Programme\AsuroFlash2\include new.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > new.d; \
[ -s new.d ] || rm -f new.d
-------- begin --------
avr-gcc --version
avr-gcc (GCC) 4.2.2 (WinAVR 20071221)
Copyright (C) 2007 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 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=new.lst -IC:\Programme\AsuroFlash2\include new.c -o new.o
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst -IC:\Programme\AsuroFlash2\include asuro.c -o asuro.o
avr-gcc -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=new.o -IC:\Programme\AsuroFlash2\include new.o asuro.o --output Project1.elf -Wl,-Map=Project1.map,--cref -IC:\Programme\AsuroFlash2\lib -lm
asuro.o: In function `__vector_4':
C:\AsuroFlash2/asuro.c:208: undefined reference to `count36kHz'
C:\AsuroFlash2/asuro.c:208: undefined reference to `count36kHz'
C:\AsuroFlash2/asuro.c:209: undefined reference to `count36kHz'
C:\AsuroFlash2/asuro.c:210: undefined reference to `timebase'
C:\AsuroFlash2/asuro.c:210: undefined reference to `timebase'
C:\AsuroFlash2/asuro.c:210: undefined reference to `timebase'
C:\AsuroFlash2/asuro.c:210: undefined reference to `timebase'
C:\AsuroFlash2/asuro.c:210: undefined reference to `timebase'
asuro.o:C:\AsuroFlash2/asuro.c:210: more undefined references to `timebase' follow
asuro.o: In function `__vector_2':
C:\AsuroFlash2/asuro.c:247: undefined reference to `switched'
C:\AsuroFlash2/asuro.c:247: undefined reference to `switched'
asuro.o: In function `__vector_14':
C:\AsuroFlash2/asuro.c:282: undefined reference to `autoencode'
C:\AsuroFlash2/asuro.c:282: undefined reference to `autoencode'
C:\AsuroFlash2/asuro.c:300: undefined reference to `encoder'
C:\AsuroFlash2/asuro.c:300: undefined reference to `encoder'
C:\AsuroFlash2/asuro.c:305: undefined reference to `encoder'
C:\AsuroFlash2/asuro.c:305: undefined reference to `encoder'
asuro.o: In function `Init':
C:\AsuroFlash2/asuro.c:164: undefined reference to `FrontLED'
C:\AsuroFlash2/asuro.c:165: undefined reference to `BackLED'
C:\AsuroFlash2/asuro.c:166: undefined reference to `BackLED'
C:\AsuroFlash2/asuro.c:167: undefined reference to `StatusLED'
C:\AsuroFlash2/asuro.c:169: undefined reference to `MotorDir'
C:\AsuroFlash2/asuro.c:170: undefined reference to `MotorSpeed'
C:\AsuroFlash2/asuro.c:172: undefined reference to `autoencode'
C:\AsuroFlash2/asuro.c:172: undefined reference to `autoencode'
make: *** [Project1.elf] Error 1
ExitCode 2
Ready.
Im Projektverzeichnis Proiekt1.apri ist asuro.h , asuro.c , myasuro.h und new.c eingebunden und gespeichert.
Wer kann mir Helfen?
Gruß
Juelicher
lies ein wenig in der hilfe und im thread, dann dürftest du alles finden.
Lesezeichen