PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Compiler Fehlermeldung in Parameter-Ermittlungs Software



irobot_22587
19.01.2008, 23:49
ich versuche Sternthalers Programm zur Asuro Parameterermittlung zum laufen zu bekommen.

Beim Compilieren mit WinAVR / PN kriege ich folgende Fehlermeldungen:


> "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_st.lst asuro_st.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > asuro_st.d; \
[ -s asuro_st.d ] || rm -f asuro_st.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) 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 test.c -o test.o
test.c: In function 'get_switch':
test.c:602: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:604: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:645: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:648: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:649: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:650: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c: In function 'get_odo':
test.c:864: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:865: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:866: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:870: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:881: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:961: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:965: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:976: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:987: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c: In function 'get_go':
test.c:1130: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:1132: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c: In function 'get_turn':
test.c:1267: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
test.c:1269: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro_st.lst asuro_st.c -o asuro_st.o
asuro_st.c: In function 'PrintInt':
asuro_st.c:1078: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
C:\DOKUME~1\PETERS~1.PN1\LOKALE~1\Temp/cc33U6Im.s: Assembler messages:
C:\DOKUME~1\PETERS~1.PN1\LOKALE~1\Temp/cc33U6Im.s:490: Warning: expression dangerous with linker stubs
C:\DOKUME~1\PETERS~1.PN1\LOKALE~1\Temp/cc33U6Im.s:491: Warning: expression dangerous with linker stubs
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_st.o --output test.elf -Wl,-Map=test.map,--cref -lm
avr-objcopy -O ihex -R .eeprom test.elf test.hex
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 -O ihex test.elf test.eep
c:\Asuro\WinAVR\bin\avr-objcopy.exe: --change-section-lma .eeprom=0x00000000 never used
avr-objdump -h -S test.elf > test.lss
Size after:
test.elf :
section size addr
.text 6768 0
.data 158 8388704
.bss 486 8388862
.stab 888 0
.stabstr 95 0
.debug_aranges 64 0
.debug_pubnames 716 0
.debug_info 3553 0
.debug_abbrev 817 0
.debug_line 4400 0
.debug_frame 384 0
.debug_str 1464 0
.debug_loc 940 0
Total 20733


Errors: none
-------- end --------

> Process Exit Code: 0
> Time Taken: 00:04


hier sind die ersten warning Codezeilen (Zeilen 601 bis 604):


/* Dem PC-Programm den Tasten-ADC-Wert mitteilen */
SerWrite ("<", 1);
PrintInt (v_taster);
SerWrite (">", 1);

Wie muss die Funktion SerWrite benutzt werden, um nicht diese Warnung zu generieren?

Wenn ich das Programm compiliert habe, auf den Asuro geflashed habe und die Windows App SENSOREN executiere, kriege ich keine Daten vom Asuro in die WIN App. Kann jemand helfen?