Hallo zusammen,

makefile und main sind im test.c vorhanden.

Leider ist in der ASURO Beschreibung kein Hinweis zu finden,
wie man die DEMO Files mit FirstTry in test.c starten kann.
Haben nach langem suchen einen Thread gefunden mit einem Link
der dies beschreibt:

Man soll z.B die ...Demo.c und ...Demo.h von /ASURO_src/SelfTest
nach /ASURO/FirstTry kopieren.
Danach in der File test.c nach #include "asuro.h" #incude "...Demo.c"
einfügen. Um die ...Demo function aufzurufen soll in test.c nach
Init(); ...Demo(); noch ergänzt werden.

Da wir Test.c flashen wollen haben wir das versucht.
Code:
#include "asuro.h"

#include "Test.c"






int main(void)

{

	Init();

	Test();

	

	while(1);

	return 0;

}

Nach einem make:
peter@KPF:~/ASURO/FirstTry$ make
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 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=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 (GCC) 3.4.3
Copyright (C) 2004 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 test.c -o test.o
test.c: In function `main':
test.c:7: warning: implicit declaration of function `Test'
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst 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=test.o test.o asuro.o --output test.elf -Wl,-Map=test.map,--cref -lm
test.o(.text+0x38a): In function `main':
/home/peter/ASURO/FirstTry/test.c:7: undefined reference to `Test'
make: *** [test.elf] Fehler 1

Was ist da noch falsch..in der undefined reference für Test

mfg volpe