mirekk36 napisał(a):
zdecydowanie to jest to o czym pisze micky
Hmmm . . . ale co?
------------------------ [ Dodano po: 5 minutach ]Tutaj przebieg kompilacji:
compiling process, please wait...
"C:\Users\Wlodek\Documents\MkClipse\AVR Toolchain\bin\avr-gcc" -Wall -Os -Wstrict-aliasing=1 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -Wl,--section-start=.text=0x0000 -mmcu=atmega8 -DF_CPU=8000000UL -MMD -MP -MF"Release/mk_build.d" -MT"Release/mk_build.o" -c -o "Release/mk_build.o" "mk_build.c""
"C:\Users\Wlodek\Documents\MkClipse\AVR Toolchain\bin\avr-gcc" -Wall -Os -Wstrict-aliasing=1 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -Wl,--section-start=.text=0x0000 -mmcu=atmega8 -DF_CPU=8000000UL -MMD -MP -MF"Release/HD44780.d" -MT"Release/HD44780.o" -c -o "Release/HD44780.o" "HD44780.c""
"C:\Users\Wlodek\Documents\MkClipse\AVR Toolchain\bin\avr-gcc" -Wall -Os -Wstrict-aliasing=1 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -Wl,--section-start=.text=0x0000 -mmcu=atmega8 -DF_CPU=8000000UL -MMD -MP -MF"Release/main.d" -MT"Release/main.o" -c -o "Release/main.o" "main.c""
main.c: In function 'main':
main.c:182:13: warning: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
itoa( temperatureH, str, 10 );
^
main.c: In function 'Zapis':
main.c:226:28: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]
eeprom_write_byte( adres, humidityL );
^
In file included from main.c:18:0:
c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'
void eeprom_write_byte (uint8_t *__p, uint8_t __value);
^
main.c:228:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]
eeprom_write_byte(( adres + 1 ), humidityH );
^
In file included from main.c:18:0:
c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'
void eeprom_write_byte (uint8_t *__p, uint8_t __value);
^
main.c:230:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]
eeprom_write_byte(( adres + 2 ), 0xAA );
^
In file included from main.c:18:0:
c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'
void eeprom_write_byte (uint8_t *__p, uint8_t __value);
^
main.c:232:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]
eeprom_write_byte(( adres + 3 ), temperatureL );
^
In file included from main.c:18:0:
c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'
void eeprom_write_byte (uint8_t *__p, uint8_t __value);
^
main.c:234:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]
eeprom_write_byte(( adres + 4 ), temperatureH );
^
In file included from main.c:18:0:
c:\users\wlodek\documents\mkclipse\avr
toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'
void eeprom_write_byte (uint8_t *__p, uint8_t __value);
^
main.c:236:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]
eeprom_write_byte(( adres + 5 ), 0xAA );
^
In file included from main.c:18:0:
c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'
void eeprom_write_byte (uint8_t *__p, uint8_t __value);
^
main.c:238:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]
eeprom_write_byte(( adres + 6 ), suma_kontrolna );
^
In file included from main.c:18:0:
c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'
void eeprom_write_byte (uint8_t *__p, uint8_t __value);
^
main.c:240:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]
eeprom_write_byte(( adres + 7 ), 256 );
^
In file included from main.c:18:0:
c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'
void eeprom_write_byte (uint8_t *__p, uint8_t __value);
^
main.c:240:42: warning: large integer implicitly truncated to unsigned type [-Woverflow]
eeprom_write_byte(( adres + 7 ), 256 );
^
main.c: In function 'dht11_gettemperature':
main.c:117:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
main.c: In function 'dht11_gethumidity':
main.c:128:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
----------------
WARNING --> main.c --> Line: 182
------------------------ [ Dodano po: 35 minutach ]Może dajmy spokój tamtemu programowi. Stworzyłem nowy projekt, przekopiowałem kod z AVR Studio i pomimo poprawnego działania w AS tu nie da się skompilować. Poniżej kod:
język cpp
Musisz się zalogować, aby zobaczyć kod źródłowy. Tylko zalogowani użytkownicy mogą widzieć kod.