Wave shild library troubles

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
floff
 
Posts: 4
Joined: Thu Apr 23, 2009 8:11 am

Wave shild library troubles

Post by floff »

Hello,
just received my wave shield and trying to figure out how it works. (fairly new to arduino and the like, but can manage all basics)

The trouble is found in the WaveHC library, as the uploader can't upload it due to following error:

Code: Select all

23: error: FatReader.h: No such file or directory In function 'void setup()':
 In function 'void loop()':
 In function 'void sdErrorCheck()':
 At global scope:
Bad error line: -9
But the WaveHC library is in the right place, i presume:
/library/WaveHC/ .. the files
and I checked if the FatReader.h file is present, and it is.

For specs:
I am working on a Mac OSx 15.something
Arduino 0017
Arduino Duemillanova (Atmega 328)
FAT16 formatted SD-card (SanDisk HP)

I hope that somebody can help me to figure this out!
Cheers!!
Floris

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Wave shild library troubles

Post by adafruit »

these days, the library files (.c and .h files) should go into YOURARDUINOSKETCHBOOK/libraries/WaveHC
try that
we gotta update all the instructions -oof-

User avatar
fat16lib
 
Posts: 595
Joined: Wed Dec 24, 2008 1:54 pm

Re: Wave shild library troubles

Post by fat16lib »

Sorry, I tried to put the instructions early in the readme but people miss it
To use this library place the uncompressed WaveHC folder into the
libraries subfolder in your main sketches folder. You may need to
create the libraries folder. Restart the Arduino IDE if it was open.


Any suggestions how to improve the instructions?

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Wave shild library troubles

Post by adafruit »

the info on the waveshield pages need to be updated as well

floff
 
Posts: 4
Joined: Thu Apr 23, 2009 8:11 am

Re: Wave shild library troubles

Post by floff »

Hey Adafruit &fat16lib,

thanks for your help! Your instruction are very helpful! Kind of funny that the folder location changes between versions and OS releases. I placed all the files from the WaveLib.zip into the sktechfolder ( user/Documents/Arduino/librabries/WaveHC/...
That worked fine and now the FatReader.h can be found.

Unfortunately I am not there yet.
When i run the SdReadTest.pde i receive this output in the monitor, so it seems to be doing something right:
init time: 40

Card type: SD1

Manufacturer ID: 3
OEM ID: SD
Product: SD016
Version: 3.0
Serial number: 2116170382
Manufacturing date: 6/2002

card size: 28800 (512 byte blocks)
partion,boot,type,start,length
1,0,EE,1,28799
2,0,0,0,0
3,0,0,0,0
4,0,0,0,0
But when I compile the example 'Digital Audio Player' using the WaveHC library, i get this error message:
error: redefinition of 'SdReader card' In function 'int freeRam()':
In function 'void sdErrorCheck()':
In function 'void printName(dir_t&)':
In function 'void lsR(FatReader&)':
In function 'void play(FatReader&)':
In function 'void setup()':
In function 'void loop()':
Hope you have some clues on that?

cheers!
Floris

MitchV
 
Posts: 9
Joined: Tue Feb 09, 2010 3:35 pm

Re: Wave shild library troubles

Post by MitchV »

You have another library installed that has that function name defined already. I remember reading that there were some function name collisions with another library but I can't recall what library it was. Do you have the older AF_Wave library installed?

User avatar
fat16lib
 
Posts: 595
Joined: Wed Dec 24, 2008 1:54 pm

Re: Wave shild library troubles

Post by fat16lib »

Remove the folder with the problem sketch and copy a fresh version of daphc.pde to a new folder named 'daphc'. There should be only one file in the folder.

Possible but not all causes of the problem are the daphc.pde file has been change, more than one pde file is in the daphc folder or there are two copies of the WaveHC folder on your computer.

floff
 
Posts: 4
Joined: Thu Apr 23, 2009 8:11 am

Re: Wave shield library troubles

Post by floff »

Yep!! Thanks a lot for you help, it works.
Had indeed the AF_Wave library in the same folder.

Really appreciate your help!

Cheers

User avatar
danieldean1
 
Posts: 2
Joined: Mon Oct 17, 2011 3:15 am

Re: Wave shild library troubles

Post by danieldean1 »

Hoping for some help here with the Arduino IDE recognizing my files. I get this:

daphc.cpp:4:20: error: WaveHC.h: No such file or directory
daphc.cpp:5:22: error: WaveUtil.h: No such file or directory
daphc:5: error: variable or field 'play' declared void
daphc:5: error: 'FatReader' was not declared in this scope
daphc:5: error: 'dir' was not declared in this scope
daphc:6: error: 'SdReader' does not name a type
daphc:7: error: 'FatVolume' does not name a type
daphc:8: error: 'FatReader' does not name a type
daphc:9: error: 'WaveHC' does not name a type
daphc:12: error: 'dir_t' does not name a type
daphc:21: error: variable or field 'play' declared void
daphc:21: error: 'FatReader' was not declared in this scope
daphc:21: error: 'dir' was not declared in this scope
daphc.cpp: In function 'void setup()':
daphc:27: error: 'putstring_nl' was not declared in this scope
daphc:29: error: 'putstring' was not declared in this scope
daphc:30: error: 'FreeRam' was not declared in this scope
daphc:33: error: 'card' was not declared in this scope
daphc:34: error: 'PSTR' was not declared in this scope
daphc:38: error: 'card' was not declared in this scope
daphc:43: error: 'vol' was not declared in this scope
daphc:47: error: 'PSTR' was not declared in this scope
daphc:54: error: 'vol' was not declared in this scope
daphc:57: error: 'root' was not declared in this scope
daphc:58: error: 'PSTR' was not declared in this scope
daphc:65: error: 'root' was not declared in this scope
daphc:65: error: 'LS_R' was not declared in this scope
daphc:65: error: 'LS_FLAG_FRAGMENTED' was not declared in this scope
daphc.cpp: In function 'void loop()':
daphc:70: error: 'root' was not declared in this scope
daphc:71: error: 'play' was not declared in this scope
daphc.cpp: In function 'void error_P(const char*)':
daphc:79: error: 'PgmPrint' was not declared in this scope
daphc:80: error: 'SerialPrint_P' was not declared in this scope
daphc.cpp: In function 'void sdErrorCheck()':
daphc:88: error: 'card' was not declared in this scope
daphc:89: error: 'PgmPrint' was not declared in this scope
daphc:90: error: 'card' was not declared in this scope
daphc.cpp: At global scope:
daphc:98: error: variable or field 'play' declared void
daphc:98: error: 'FatReader' was not declared in this scope
daphc:98: error: 'dir' was not declared in this scope

Despite having the Ard prefs set correctly to sublibrary, with the WaveHC uncompressed in there, have restarted the A.IDE many times, open up the daphc sketch and still get this message above. Should this sketch be able to run solo, without being connected to an arduino? Either way, I have verified communication with the Blink example and all's well. Still new but have pored over many tutes etc on here to get this going, no luck
Screen Shot 2011-10-17 at 2.28.04 AM.png
Screen Shot 2011-10-17 at 2.28.04 AM.png (100.43 KiB) Viewed 1936 times

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”