Skocz do zawartości

Problem z wgraniem gotowego szkicu na moduł Arduino Micro


lyru

Pomocna odpowiedź

A więc tak, zaczynam dopiero swoją przygodę i jestem w tym kompletnie zielony aczkolwiek szybko się uczę. Zakupiłem płytkę Arduino Leonardo którą chcę wykorzystać do skrzyni biegów do komputera (tzw skrzynia sekwencyjna). Mam gotowca którego chciałem wgrać, dograłem odpowiednie biblioteki a mimo to nie przechodzi, wrzucam kod błędu, proszę o podpowiedź co robię źle, zapewne dla kogoś oblatanego w temacie błachostka... Próbowałem sam do tego dojść ale bezskutecznie

FQBN: arduino:avr:micro
Using board 'micro' from platform in folder: C:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...
C:\Users\artix\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="Arduino Micro" -IC:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\micro C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\DIYSimShifter.ino.cpp -o nul
Alternatives for Joystick.h: [Joystick@2.1.1 Joystick]
ResolveLibrary(Joystick.h)
  -> candidates: [Joystick@2.1.1 Joystick]
C:\Users\artix\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="Arduino Micro" -IC:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\micro -Ic:\Users\artix\OneDrive\Dokumenty\Arduino\libraries\Joystick C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\DIYSimShifter.ino.cpp -o nul
Alternatives for HID.h: [HID@1.0]
ResolveLibrary(HID.h)
  -> candidates: [HID@1.0]
C:\Users\artix\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="Arduino Micro" -IC:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\micro -Ic:\Users\artix\OneDrive\Dokumenty\Arduino\libraries\Joystick -IC:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\HID\src C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\DIYSimShifter.ino.cpp -o nul
Using cached library dependencies for file: C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp
Using cached library dependencies for file: c:\Users\artix\OneDrive\Dokumenty\Arduino\libraries\Joystick\Joystick.cpp
Using cached library dependencies for file: C:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\HID\src\HID.cpp
Generating function prototypes...
C:\Users\artix\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="Arduino Micro" -IC:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\micro -Ic:\Users\artix\OneDrive\Dokumenty\Arduino\libraries\Joystick -IC:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\HID\src C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\DIYSimShifter.ino.cpp -o C:\Users\artix\AppData\Local\Temp\606801616\sketch_merged.cpp
C:\Users\artix\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\artix\AppData\Local\Temp\606801616\sketch_merged.cpp
Kompilowanie szkicu...
"C:\\Users\\artix\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Micro\"" "-IC:\\Users\\artix\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\artix\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\micro" "-Ic:\\Users\\artix\\OneDrive\\Dokumenty\\Arduino\\libraries\\Joystick" "-IC:\\Users\\artix\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries\\HID\\src" "C:\\Users\\artix\\AppData\\Local\\Temp\\arduino\\sketches\\C202A76AC40B18C68071BD1C34CB2757\\sketch\\DIYSimShifter.ino.cpp" -o "C:\\Users\\artix\\AppData\\Local\\Temp\\arduino\\sketches\\C202A76AC40B18C68071BD1C34CB2757\\sketch\\DIYSimShifter.ino.cpp.o"
Użycie wcześniej skompilowanego pliku: C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o
Compiling libraries...
Compiling library "Joystick"
Użycie wcześniej skompilowanego pliku: C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o
Compiling library "HID"
Użycie wcześniej skompilowanego pliku: C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\HID\HID.cpp.o
Compiling core...
Using precompiled core: C:\Users\artix\AppData\Local\Temp\arduino\cores\arduino_avr_micro_523039940f271da491a01b151d85b65a\core.a
Linking everything together...
"C:\\Users\\artix\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4 -o "C:\\Users\\artix\\AppData\\Local\\Temp\\arduino\\sketches\\C202A76AC40B18C68071BD1C34CB2757/DIYSimShifter.ino.elf" "C:\\Users\\artix\\AppData\\Local\\Temp\\arduino\\sketches\\C202A76AC40B18C68071BD1C34CB2757\\sketch\\DIYSimShifter.ino.cpp.o" "C:\\Users\\artix\\AppData\\Local\\Temp\\arduino\\sketches\\C202A76AC40B18C68071BD1C34CB2757\\sketch\\Joystick.cpp.o" "C:\\Users\\artix\\AppData\\Local\\Temp\\arduino\\sketches\\C202A76AC40B18C68071BD1C34CB2757\\libraries\\Joystick\\Joystick.cpp.o" "C:\\Users\\artix\\AppData\\Local\\Temp\\arduino\\sketches\\C202A76AC40B18C68071BD1C34CB2757\\libraries\\HID\\HID.cpp.o" "C:\\Users\\artix\\AppData\\Local\\Temp\\arduino\\sketches\\C202A76AC40B18C68071BD1C34CB2757/..\\..\\cores\\arduino_avr_micro_523039940f271da491a01b151d85b65a\\core.a" "-LC:\\Users\\artix\\AppData\\Local\\Temp\\arduino\\sketches\\C202A76AC40B18C68071BD1C34CB2757" -lm
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::Joystick_()'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::Joystick_()'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::end()'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::sendState()'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::begin(bool)'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::pressButton(unsigned char)'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::releaseButton(unsigned char)'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::setButton(unsigned char, unsigned char)'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::setThrottle(unsigned char)'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::setRudder(unsigned char)'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::setXAxis(signed char)'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::setYAxis(signed char)'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::setZAxis(signed char)'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::setXAxisRotation(int)'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::setYAxisRotation(int)'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::setZAxisRotation(int)'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick_::setHatSwitch(signed char, int)'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\libraries\Joystick\Joystick.cpp.o (symbol from plugin): In function `Joystick_::Joystick_()':
(.text+0x0): multiple definition of `Joystick'
C:\Users\artix\AppData\Local\Temp\arduino\sketches\C202A76AC40B18C68071BD1C34CB2757\sketch\Joystick.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Znaleziono wiele bibliotek w "Joystick.h"
  Wykorzystane: C:\Users\artix\OneDrive\Dokumenty\Arduino\libraries\Joystick
  Niewykorzystane: C:\Users\artix\OneDrive\Dokumenty\Arduino\libraries\ArduinoJoystickLibrary-master
Użycie biblioteki Joystick z folderu C:\Users\artix\OneDrive\Dokumenty\Arduino\libraries\Joystick (przestarzałe)
Użycie biblioteki HID w wersji 1.0 z folderu: C:\Users\artix\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\HID 
exit status 1

Compilation error: exit status 1

 

  • Lubię! 1
Link do komentarza
Share on other sites

(edytowany)

Przeinstalowałem jeszcze raz Arduino INO, dodałem biblioteki i zadziałało 🙂 nie wiem co tam było namieszane chociaż od początku robiłem IMO wszystko zgodnie z instrukcją. 

Jak nie działało to potem już zapewne coś namieszałem dodając niepotrzebnie kompletne biblioteki autora tego szkicu.

Edytowano przez lyru
  • Lubię! 2
Link do komentarza
Share on other sites

Bądź aktywny - zaloguj się lub utwórz konto!

Tylko zarejestrowani użytkownicy mogą komentować zawartość tej strony

Utwórz konto w ~20 sekund!

Zarejestruj nowe konto, to proste!

Zarejestruj się »

Zaloguj się

Posiadasz własne konto? Użyj go!

Zaloguj się »
×
×
  • Utwórz nowe...

Ważne informacje

Ta strona używa ciasteczek (cookies), dzięki którym może działać lepiej. Więcej na ten temat znajdziesz w Polityce Prywatności.