dave@huckleberrycove.ca
Member
Hello
I have just purchased a SparkFun " level shifting microSD breakout" (DEV-13743) and some Teensy 3.2's and have not had any luck seeing the card from various demos. I am sure the problems are due to my lack of understanding of Arduino Library management.
I have installed Arduino 1.6.8 and the beta teensydunio which should work with that. I am running under Linux Mint 17. Various other sketches work.
I have wired the breakout as per the drawing in the SparkFun site (see below) and use CS on pin 8.
I am testing the Examples -> SD -> CardInfo sketch and it builds and loads and runs but reports ....
Initializing SD card...initialization failed. Things to check:
* is a card inserted?
* is your wiring correct?
* did you change the chipSelect pin to match your shield or module?
I have checked those.
I am confused about how to know which SD.h (and others) are being used. There is one in the .../hardware/teensy... and one in /home/dave/Desktop/arduino-1.6.8/libraries/SD/src. I am also unsure how to force one or the other to be used.
I have done some searching on the forum and found a recommendation to "install the SDFat library". I downloaded the zip file from https://github.com/greiman/SdFat and extracted the SDFat folder and placed it in the Arduino libraries folder. I then loaded the sketch SDInfo. I fixed SD_CHIP_SELECT 8. It builds and gives the following output
SdFat version: 20150324
Assuming the SD is the only SPI device.
Edit DISABLE_CHIP_SELECT to disable another device.
Assuming the SD chip select pin is: 8
Edit SD_CHIP_SELECT to change the SD chip select pin.
type any character to start
cardBegin failed
SD errorCode: 0X1
SD errorData: 0X0
I have the board wired as follows
board teensy
Vcc Vin (There is 5 V on the breakout)
CS 8
DI 11
SCLK 13
DO 12
CD 9
GND GND
I can read and write the (new) microSD card by plugging it into the SD/microSD adapter and into my laptop reader.
Any suggestions?
Dave Heffler
I have just purchased a SparkFun " level shifting microSD breakout" (DEV-13743) and some Teensy 3.2's and have not had any luck seeing the card from various demos. I am sure the problems are due to my lack of understanding of Arduino Library management.
I have installed Arduino 1.6.8 and the beta teensydunio which should work with that. I am running under Linux Mint 17. Various other sketches work.
I have wired the breakout as per the drawing in the SparkFun site (see below) and use CS on pin 8.
I am testing the Examples -> SD -> CardInfo sketch and it builds and loads and runs but reports ....
Initializing SD card...initialization failed. Things to check:
* is a card inserted?
* is your wiring correct?
* did you change the chipSelect pin to match your shield or module?
I have checked those.
I am confused about how to know which SD.h (and others) are being used. There is one in the .../hardware/teensy... and one in /home/dave/Desktop/arduino-1.6.8/libraries/SD/src. I am also unsure how to force one or the other to be used.
I have done some searching on the forum and found a recommendation to "install the SDFat library". I downloaded the zip file from https://github.com/greiman/SdFat and extracted the SDFat folder and placed it in the Arduino libraries folder. I then loaded the sketch SDInfo. I fixed SD_CHIP_SELECT 8. It builds and gives the following output
SdFat version: 20150324
Assuming the SD is the only SPI device.
Edit DISABLE_CHIP_SELECT to disable another device.
Assuming the SD chip select pin is: 8
Edit SD_CHIP_SELECT to change the SD chip select pin.
type any character to start
cardBegin failed
SD errorCode: 0X1
SD errorData: 0X0
I have the board wired as follows
board teensy
Vcc Vin (There is 5 V on the breakout)
CS 8
DI 11
SCLK 13
DO 12
CD 9
GND GND
I can read and write the (new) microSD card by plugging it into the SD/microSD adapter and into my laptop reader.
Any suggestions?
Dave Heffler