Audrino erros when compiling VS_LOADER

Audrino erros when compiling VS_LOADER

Postby mirage00 » Thu Dec 29, 2011 8:53 pm

Hello,

When I try to compile your VSLoader program, I get errors regarding pins_arduino.h

Here are the errors..

In file included from C:\Users\Anthony\Documents\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/Arduino.h:212,
from VS_Loader.cpp:26:
C:\Users\Anthony\Documents\arduino-1.0-windows\arduino-1.0\hardware\arduino\variants\standard/pins_arduino.h:40: error: expected unqualified-id before numeric constant
C:\Users\Anthony\Documents\arduino-1.0-windows\arduino-1.0\hardware\arduino\variants\standard/pins_arduino.h:41: error: expected unqualified-id before numeric constant


I noticed you have defined the SPI pins in the voiceshield.h as should I changed these?

#define SS 5 // ISD Pin mapping to Arduino = ISD Select, LOW = Selected
#define MOSI 2 // ISD Pin mapping to Arduino = Master Out Slave In
#define SCLK 3 // ISD Pin mapping to Arduino = Serial clock
#define INTU 4 // ISD Pin mapping to Arduino = INT or EOM ISD output

I am using the Arduino Uno. It arent the SPI pins hardcoded as 10,11,12,13?/?

Help!
mirage00
 
Posts: 3
Joined: Thu Dec 29, 2011 5:53 pm

Re: Audrino erros when compiling VS_LOADER

Postby Spike » Thu Jan 05, 2012 9:18 am

Thanks for spotting this!

Arduino has made a lot of changes to their software recently, and it looks like two of these changes caused this problem;

First they renamed one of the standard header files from WProgram.h to Arduino.h.

Also, the definition of some pins may cause a conflict: In our VoiceShield Library we had named some pins SS, MOSI, SCLK etc ...

Solutions:

1. We updated the library to take the new header file into consideration depending on the version of Arduino IDE that is being used.
2. Since the SPI pins in the VS library are actually referring to the SPI pin on the ISD chip and not the "standard" SPI pin usage on the Arduino, we renamed our these in the library.

Download:

Get the updated library here;

www.spikenzielabs.com/Downloadables/VS_ ... uinoV1.zip
Spike
Site Admin
 
Posts: 95
Joined: Tue Feb 16, 2010 12:51 pm

Re: Audrino erros when compiling VS_LOADER

Postby mirage00 » Thu Jan 05, 2012 11:46 am

Great thanks... Also, do you have a schematic of the voiceshield. It would be helpful to know how it works while implementing it in other projects. Thanks
mirage00
 
Posts: 3
Joined: Thu Dec 29, 2011 5:53 pm

Re: Audrino erros when compiling VS_LOADER

Postby nostro » Fri Feb 24, 2012 2:45 pm

I keep getting the following error message when I try to compile VS_LOADER. Let me know what I'm doing wrong. Thanks!

VS_Loader.cpp:24:66: error: VoiceShield.h: No such file or directory
VS_Loader.pde:-1: error: 'VoiceShield' does not name a type
VS_Loader.cpp: In function 'void loop()':
VS_Loader.pde:-1: error: 'vs' was not declared in this scope
nostro
 
Posts: 2
Joined: Fri Feb 24, 2012 2:44 pm


Return to VoiceShield

Who is online

Users browsing this forum: No registered users and 1 guest