: piątek 11 sie 2017, 18:08
Dziękuję za informację.
Jednak mam problem z wgraniem programiku do Attiny13a. Do tego celu używam Arduino uno.
Podczas wgrywania kodu z pierwszej strony wyskakuje mi -- no właśnie too:
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Hosesor\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Hosesor\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Hosesor\Documents\Arduino\libraries -fqbn=MicroCore:avr:attiny13:clock=9M6,BOD=2v7,flag=Os_flto -vid-pid=0X2341_0X0001 -ide-version=10803 -build-path C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087 -warnings=none -build-cache C:\Users\Hosesor\AppData\Local\Temp\arduino_cache_354872 -prefs=build.warn_data_percentage=75 -verbose C:\Users\Hosesor\Documents\Arduino\blink13\latarka\latarka.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Hosesor\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Hosesor\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Hosesor\Documents\Arduino\libraries -fqbn=MicroCore:avr:attiny13:clock=9M6,BOD=2v7,flag=Os_flto -vid-pid=0X2341_0X0001 -ide-version=10803 -build-path C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087 -warnings=none -build-cache C:\Users\Hosesor\AppData\Local\Temp\arduino_cache_354872 -prefs=build.warn_data_percentage=75 -verbose C:\Users\Hosesor\Documents\Arduino\blink13\latarka\latarka.ino
Using board 'attiny13' from platform in folder: C:\Users\Hosesor\AppData\Local\Arduino15\packages\MicroCore\hardware\avr\1.0.2
Using core 'microcore' from platform in folder: C:\Users\Hosesor\AppData\Local\Arduino15\packages\MicroCore\hardware\avr\1.0.2
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=attiny13a -DF_CPU=9600000L -DARDUINO=10803 -DARDUINO_attiny -DARDUINO_ARCH_AVR -Wextra -flto "-IC:\Users\Hosesor\AppData\Local\Arduino15\packages\MicroCore\hardware\avr\1.0.2\cores\microcore" "C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087\sketch\latarka.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=attiny13a -DF_CPU=9600000L -DARDUINO=10803 -DARDUINO_attiny -DARDUINO_ARCH_AVR -Wextra -flto "-IC:\Users\Hosesor\AppData\Local\Arduino15\packages\MicroCore\hardware\avr\1.0.2\cores\microcore" "C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087\sketch\latarka.ino.cpp" -o "C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087\preproc\ctags_target_for_gcc_minus_e.cpp"
Kompilowanie szkicu...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=attiny13a -DF_CPU=9600000L -DARDUINO=10803 -DARDUINO_attiny -DARDUINO_ARCH_AVR -Wextra -flto "-IC:\Users\Hosesor\AppData\Local\Arduino15\packages\MicroCore\hardware\avr\1.0.2\cores\microcore" "C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087\sketch\latarka.ino.cpp" -o "C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087\sketch\latarka.ino.cpp.o"
C:\Users\Hosesor\Documents\Arduino\blink13\latarka\latarka.ino: In function 'void Zakrestrybow()':
latarka:40: error: cannot convert 'short unsigned int*' to 'uint8_t* {aka unsigned char*}' for argument '1' to 'void eeprom_update_byte(uint8_t*, uint8_t)'
eeprom_update_byte(&Numertrybu,Ntryb); //zapisz numer trybu jeśli się zmienił
^
C:\Users\Hosesor\Documents\Arduino\blink13\latarka\latarka.ino: In function 'void Strobo()':
latarka:85: error: cannot convert 'short unsigned int*' to 'uint8_t* {aka unsigned char*}' for argument '1' to 'void eeprom_write_byte(uint8_t*, uint8_t)'
eeprom_write_byte(&Licznikklikow, 255); //wykasowanie licznika klików, aby po wyjściu nie zmienić trybu
^
C:\Users\Hosesor\Documents\Arduino\blink13\latarka\latarka.ino: In function 'int main()':
latarka:99: error: cannot convert 'short unsigned int*' to 'const uint8_t* {aka const unsigned char*}' for argument '1' to 'uint8_t eeprom_read_byte(const uint8_t*)'
Lklik = eeprom_read_byte(&Licznikklikow); //odczyt licznika klikĂłw
^
latarka:109: error: cannot convert 'short unsigned int*' to 'uint8_t* {aka unsigned char*}' for argument '1' to 'void eeprom_update_byte(uint8_t*, uint8_t)'
eeprom_update_byte(&Licznikklikow, Lklik); //aktualizacja licznika klików jeśli się zmienił
^
latarka:117: error: cannot convert 'short unsigned int*' to 'const uint8_t* {aka const unsigned char*}' for argument '1' to 'uint8_t eeprom_read_byte(const uint8_t*)'
Ntryb = eeprom_read_byte(&Numertrybu);
^
latarka:120: error: cannot convert 'short unsigned int*' to 'uint8_t* {aka unsigned char*}' for argument '1' to 'void eeprom_update_byte(uint8_t*, uint8_t)'
eeprom_update_byte(&Licznikklikow, 0); //jeśli nie było klika, wyzeruj licznik klików w eprom
^
exit status 1
cannot convert 'short unsigned int*' to 'uint8_t* {aka unsigned char*}' for argument '1' to 'void eeprom_update_byte(uint8_t*, uint8_t)'
Co tu jest nie tak????
Jednak mam problem z wgraniem programiku do Attiny13a. Do tego celu używam Arduino uno.
Podczas wgrywania kodu z pierwszej strony wyskakuje mi -- no właśnie too:
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Hosesor\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Hosesor\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Hosesor\Documents\Arduino\libraries -fqbn=MicroCore:avr:attiny13:clock=9M6,BOD=2v7,flag=Os_flto -vid-pid=0X2341_0X0001 -ide-version=10803 -build-path C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087 -warnings=none -build-cache C:\Users\Hosesor\AppData\Local\Temp\arduino_cache_354872 -prefs=build.warn_data_percentage=75 -verbose C:\Users\Hosesor\Documents\Arduino\blink13\latarka\latarka.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Hosesor\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Hosesor\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Hosesor\Documents\Arduino\libraries -fqbn=MicroCore:avr:attiny13:clock=9M6,BOD=2v7,flag=Os_flto -vid-pid=0X2341_0X0001 -ide-version=10803 -build-path C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087 -warnings=none -build-cache C:\Users\Hosesor\AppData\Local\Temp\arduino_cache_354872 -prefs=build.warn_data_percentage=75 -verbose C:\Users\Hosesor\Documents\Arduino\blink13\latarka\latarka.ino
Using board 'attiny13' from platform in folder: C:\Users\Hosesor\AppData\Local\Arduino15\packages\MicroCore\hardware\avr\1.0.2
Using core 'microcore' from platform in folder: C:\Users\Hosesor\AppData\Local\Arduino15\packages\MicroCore\hardware\avr\1.0.2
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=attiny13a -DF_CPU=9600000L -DARDUINO=10803 -DARDUINO_attiny -DARDUINO_ARCH_AVR -Wextra -flto "-IC:\Users\Hosesor\AppData\Local\Arduino15\packages\MicroCore\hardware\avr\1.0.2\cores\microcore" "C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087\sketch\latarka.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=attiny13a -DF_CPU=9600000L -DARDUINO=10803 -DARDUINO_attiny -DARDUINO_ARCH_AVR -Wextra -flto "-IC:\Users\Hosesor\AppData\Local\Arduino15\packages\MicroCore\hardware\avr\1.0.2\cores\microcore" "C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087\sketch\latarka.ino.cpp" -o "C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087\preproc\ctags_target_for_gcc_minus_e.cpp"
Kompilowanie szkicu...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=attiny13a -DF_CPU=9600000L -DARDUINO=10803 -DARDUINO_attiny -DARDUINO_ARCH_AVR -Wextra -flto "-IC:\Users\Hosesor\AppData\Local\Arduino15\packages\MicroCore\hardware\avr\1.0.2\cores\microcore" "C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087\sketch\latarka.ino.cpp" -o "C:\Users\Hosesor\AppData\Local\Temp\arduino_build_683087\sketch\latarka.ino.cpp.o"
C:\Users\Hosesor\Documents\Arduino\blink13\latarka\latarka.ino: In function 'void Zakrestrybow()':
latarka:40: error: cannot convert 'short unsigned int*' to 'uint8_t* {aka unsigned char*}' for argument '1' to 'void eeprom_update_byte(uint8_t*, uint8_t)'
eeprom_update_byte(&Numertrybu,Ntryb); //zapisz numer trybu jeśli się zmienił
^
C:\Users\Hosesor\Documents\Arduino\blink13\latarka\latarka.ino: In function 'void Strobo()':
latarka:85: error: cannot convert 'short unsigned int*' to 'uint8_t* {aka unsigned char*}' for argument '1' to 'void eeprom_write_byte(uint8_t*, uint8_t)'
eeprom_write_byte(&Licznikklikow, 255); //wykasowanie licznika klików, aby po wyjściu nie zmienić trybu
^
C:\Users\Hosesor\Documents\Arduino\blink13\latarka\latarka.ino: In function 'int main()':
latarka:99: error: cannot convert 'short unsigned int*' to 'const uint8_t* {aka const unsigned char*}' for argument '1' to 'uint8_t eeprom_read_byte(const uint8_t*)'
Lklik = eeprom_read_byte(&Licznikklikow); //odczyt licznika klikĂłw
^
latarka:109: error: cannot convert 'short unsigned int*' to 'uint8_t* {aka unsigned char*}' for argument '1' to 'void eeprom_update_byte(uint8_t*, uint8_t)'
eeprom_update_byte(&Licznikklikow, Lklik); //aktualizacja licznika klików jeśli się zmienił
^
latarka:117: error: cannot convert 'short unsigned int*' to 'const uint8_t* {aka const unsigned char*}' for argument '1' to 'uint8_t eeprom_read_byte(const uint8_t*)'
Ntryb = eeprom_read_byte(&Numertrybu);
^
latarka:120: error: cannot convert 'short unsigned int*' to 'uint8_t* {aka unsigned char*}' for argument '1' to 'void eeprom_update_byte(uint8_t*, uint8_t)'
eeprom_update_byte(&Licznikklikow, 0); //jeśli nie było klika, wyzeruj licznik klików w eprom
^
exit status 1
cannot convert 'short unsigned int*' to 'uint8_t* {aka unsigned char*}' for argument '1' to 'void eeprom_update_byte(uint8_t*, uint8_t)'
Co tu jest nie tak????