Help with V-USB Library for Arduino
hi, i'm trying follow instructions in blog post create arduino device emulates usb keyboard. i've hit few bumps in road , last one's got me stumped. best hope i'm using wrong version of v-usb arduino project. got here:
https://code.google.com/archive/p/vusb-for-arduino/
and required cutting out "usbkeyboard" directory under "libraries", , found built on top of old version of usb libraries, , saw guidance elsewhere whomp old copy new stuff here:
https://www.obdev.at/products/vusb/download.html
that replaced of files in usbkeyboard folder. left compile error pretty easy sort, i'm getting link-time error now, , it's mystifying:
compiling debug version of 'sketch1' 'arduino/genuino uno'
error compiling board arduino/genuino uno
debug build failed project 'sketch1'
winterrupts.c.o (symbol plugin)*: in function attachinterrupt
(.text+0x0)*: multiple definition of __vector_1
usbdrvasm.s.o*: c:\program files (x86)\arduino\libraries\usbkeyboard\usbdrvasm16.inc:34: first defined here
cctmpovv.ltrans0.ltrans.o*: in function __vector_1
winterrupts.c:309: multiple definition of __vector_1
usbdrvasm.s.o*: c:\program files (x86)\arduino\libraries\usbkeyboard\usbdrvasm16.inc:34: first defined here
cctmpovv.ltrans0.ltrans.o*: in function __base_ctor
usbkeyboard.h:139: undefined reference usbinit()
usbkeyboard.h:146: undefined reference usbsetinterrupt(unsigned char*, unsigned char)
collect2.exe*: error: ld returned 1 exit status
there no __vector_1 anywhere , don't see how creative macro's make either. undefined references seem should easier solve, haven't managed yet.
any tips appreciated.
https://code.google.com/archive/p/vusb-for-arduino/
and required cutting out "usbkeyboard" directory under "libraries", , found built on top of old version of usb libraries, , saw guidance elsewhere whomp old copy new stuff here:
https://www.obdev.at/products/vusb/download.html
that replaced of files in usbkeyboard folder. left compile error pretty easy sort, i'm getting link-time error now, , it's mystifying:
compiling debug version of 'sketch1' 'arduino/genuino uno'
error compiling board arduino/genuino uno
debug build failed project 'sketch1'
winterrupts.c.o (symbol plugin)*: in function attachinterrupt
(.text+0x0)*: multiple definition of __vector_1
usbdrvasm.s.o*: c:\program files (x86)\arduino\libraries\usbkeyboard\usbdrvasm16.inc:34: first defined here
cctmpovv.ltrans0.ltrans.o*: in function __vector_1
winterrupts.c:309: multiple definition of __vector_1
usbdrvasm.s.o*: c:\program files (x86)\arduino\libraries\usbkeyboard\usbdrvasm16.inc:34: first defined here
cctmpovv.ltrans0.ltrans.o*: in function __base_ctor
usbkeyboard.h:139: undefined reference usbinit()
usbkeyboard.h:146: undefined reference usbsetinterrupt(unsigned char*, unsigned char)
collect2.exe*: error: ld returned 1 exit status
there no __vector_1 anywhere , don't see how creative macro's make either. undefined references seem should easier solve, haven't managed yet.
any tips appreciated.
the error tells you have 2 libraries willing use same interrupt
Arduino Forum > Using Arduino > Programming Questions > Help with V-USB Library for Arduino
arduino
Comments
Post a Comment