Author Topic: Reading microSD cards on Wiring  (Read 2520 times)

0 Members and 1 Guest are viewing this topic.

gcarrillo

Reading microSD cards on Wiring
« on: March 14, 2015, 12:17:39 AM »
Hi All,

I'd like to ask you whether you've had any experience reading microSD cards on Wiring.

I haven't been able to find a library to read microSD cards for Wiring, all that I find are for Arduino, and it has been a nightmare to try to make them to work.

I'm using wiring-0100 and have tried this library [1] and this library [2] with no success. I keep getting errors like this:

----------------------------------------------------------------------------------------
In file included from /docs/downloads/software/wiring-0100/libraries/SD/SD.h:25,
sdtest2:19: error: /docs/downloads/software/wiring-0100/libraries/SD/utility/SdFat.h:288: error: conflicting return type specified for 'virtual size_t SdFile::write(uint8_t)'
/docs/downloads/software/wiring-0100/cores/Common/Print.h:36: error:   overriding 'virtual void Print::write(uint8_t)'
/docs/downloads/software/wiring-0100/libraries/SD/utility/SdFat.h:290: error: conflicting return type specified for 'virtual size_t SdFile::write(const char*)'
/docs/downloads/software/wiring-0100/cores/Common/Print.h:39: error:   overriding 'virtual void Print::write(const char*)'
sdtest2.cpp: In function 'void setup()':
sdtest2:39: error: error: no match for 'operator!' in '!Serial'
sdtest2:39: error: note: candidates are: operator!(bool) <built-in>

----------------------------------------------------------------------------------------

I use this [3] SD adapter for Arduino.

What library do you use for reading microSD cards on Wiring?
Any help is greatly appreciated, I'm stuck.

Regards,

Germán
--
[1] https://github.com/adafruit/SD
[2] http://embeddedcomputing.weebly.com/lcd_screen-download.html
[3] http://www.dx.com/p/spi-microsd-card-adapter-v0-9b-for-arduino-works-with-official-arduino-board-246784

barragan

Re: Reading microSD cards on Wiring
« Reply #1 on: March 15, 2015, 06:27:56 PM »
I´ll check it out.

barragan

Re: Reading microSD cards on Wiring
« Reply #2 on: March 15, 2015, 06:45:10 PM »
It was matter of correcting the occurrences of Arduino.h etc on the files, also commenting the Serial verification loop in setup on each example, here is a .zip file with the library and examples fixed, note the changes and enjoy. http://wiring.org.co/download/SD-master.zip


gcarrillo

Re: Reading microSD cards on Wiring
« Reply #3 on: March 16, 2015, 07:09:27 PM »
Thanks a lot for your time.

I've tried the zip file you attached, but I keep getting errors I cannot resolve. Specifically, I'm trying to compile the CardInfo.pde example on GNU/Linux and get this message:

-------------------------------------------------------------------------
In file included from /docs/downloads/wiring-0100/libraries/SD/SD.h:21,
sketch_mar16a:19: error: /docs/downloads/wiring-0100/libraries/SD/utility/SdFat.h:288: error: conflicting return type specified for 'virtual size_t SdFile::write(uint8_t)'
/docs/downloads/wiring-0100/cores/Common/Print.h:36: error:   overriding 'virtual void Print::write(uint8_t)'
/docs/downloads/wiring-0100/libraries/SD/utility/SdFat.h:290: error: conflicting return type specified for 'virtual size_t SdFile::write(const char*)'
/docs/downloads/wiring-0100/cores/Common/Print.h:39: error:   overriding 'virtual void Print::write(const char*)'
sketch_mar16a:19: error: /docs/downloads/wiring-0100/libraries/SD/SD.h:37: error: conflicting return type specified for 'virtual size_t File::write(uint8_t)'
/docs/downloads/wiring-0100/cores/Common/Print.h:36: error:   overriding 'virtual void Print::write(uint8_t)'
/docs/downloads/wiring-0100/libraries/SD/SD.h:38: error: conflicting return type specified for 'virtual size_t File::write(const uint8_t*, size_t)'
/docs/downloads/wiring-0100/cores/Common/Print.h:40: error:   overriding 'virtual void Print::write(const uint8_t*, size_t)'

-------------------------------------------------------------------------

Regards,

Germán

barragan

Re: Reading microSD cards on Wiring
« Reply #4 on: March 16, 2015, 11:11:56 PM »
Please get the latest Wiring and try: http://wiring.org.co/download for now it is only available for Windows and Macosx.

gcarrillo

Re: Reading microSD cards on Wiring
« Reply #5 on: March 18, 2015, 09:15:33 AM »
Thank you Hernando! It works on Windows using wiring-v1.0.1-dev (current version). Hope you can finish the GNU/Linux version of the IDE.

Regards,

Germán Carrillo

barragan

Re: Reading microSD cards on Wiring
« Reply #6 on: March 20, 2015, 10:35:12 PM »
great, yes we will upload the linux package as soon as we can.

kenedy

Re: Reading microSD cards on Wiring
« Reply #7 on: June 20, 2016, 05:12:18 PM »
I had no  experience reading microSD cards on Wiring...












http://www.soran.edu.iq

Qynx

Re: Reading microSD cards on Wiring
« Reply #8 on: June 26, 2016, 04:33:28 AM »
I had no  experience reading microSD cards on Wiring...



A good reason to start with it.......  Any questions ?








http://www.soran.edu.iq