Error compiling code

7 views
Skip to first unread message

Cameron

unread,
Mar 21, 2011, 7:22:01 PM3/21/11
to USB-Octomod
Hi all-

I'm running Arduino 022 with Teensyduino installed. Board selected as
Teensy 2, USB Type selected as Serial. I get the following error when
compiling:

Octomod/spi.c.o: In function `setup_spi':
/Applications/Arduino_022.app/Contents/Resources/Java/libraries/
Octomod/spi.c:34: multiple definition of `setup_spi'
spi.c.o:spi.c:34: first defined here
/Applications/Arduino_022.app/Contents/Resources/Java/hardware/tools/
avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld: Disabling
relaxation: it will not work with multiple definitions
Octomod/spi.c.o: In function `disable_spi':
/Applications/Arduino_022.app/Contents/Resources/Java/libraries/
Octomod/spi.c:60: multiple definition of `disable_spi'
spi.c.o:spi.c:60: first defined here
Octomod/spi.c.o: In function `send_spi':
/Applications/Arduino_022.app/Contents/Resources/Java/libraries/
Octomod/spi.c:65: multiple definition of `send_spi'
spi.c.o:spi.c:65: first defined here
Octomod/spi.c.o: In function `received_from_spi':
/Applications/Arduino_022.app/Contents/Resources/Java/libraries/
Octomod/spi.c:72: multiple definition of `received_from_spi'
spi.c.o:spi.c:72: first defined here

Any idea what's going on?

cameron

unread,
Mar 22, 2011, 1:32:12 AM3/22/11
to USB-Octomod
Well, getting a fresh install of Arduino seemed to clear it up.

Now that I'm up and running, my voltage output is -3.2v to +3.6v. I
thought the Octomod was supposed to output +/-5v?

Reply all
Reply to author
Forward
0 new messages