steven32bits
Active member
I am trying to play an audio file from a micro SD card while simultaneously record an audio signal to pin 14 a(0). I am having trouble communicating with the SD card. The board is selected on Teensy 3.2 which shows up on port 6 in my device manager. I select port 6 in the IDE and began with an example code found under the tab file>>examples>>SD>>cardinfo. The only line changed was from
const int chipSelect = 4;
to
const int chipSelect = 10;
However the code wouldn't even compile giving me:
error compiling for board Teensy 3.2/3.1.
So next I try an example found on the forum:
https://forum.pjrc.com/threads/540-ChibiOS-RTand-FreeRTOS-for-Teensy-3-0
which directs me to download a library, SdFatBeta20130621.zip. I placed the SDfat in libraries folder found in documents>>Arduino>>libraries
the SdFatBeta20130621.zip download can also be found here:
https://code.google.com/archive/p/beta-lib/downloads
I then try the SDfat example, exactly as is, through file>>examples>>SDfat>>quickstart
It compiled an uploaded via com 6 to the Teensy. Opening the serial monitor it asked me to enter the chip select pin number in which I entered 10.
The feedback read:
SD initialization failed.
Do not reformat the card!
Is the card correctly inserted?
Is chipSelect set to the correct value?
Is there a wiring/soldering problem?
errorCode: 0x1, errorData: 0x0
To not confuse my wiring I have inserted a picture that shows the Teensy placed on top of the shield match the left and right 14 pins.
Am I doing something wrong? How can I get the Teensy 3.2 to communicate with the SD card (preferably through the audio shield instead of another SD card adapter.
const int chipSelect = 4;
to
const int chipSelect = 10;
However the code wouldn't even compile giving me:
error compiling for board Teensy 3.2/3.1.
So next I try an example found on the forum:
https://forum.pjrc.com/threads/540-ChibiOS-RTand-FreeRTOS-for-Teensy-3-0
which directs me to download a library, SdFatBeta20130621.zip. I placed the SDfat in libraries folder found in documents>>Arduino>>libraries
the SdFatBeta20130621.zip download can also be found here:
https://code.google.com/archive/p/beta-lib/downloads
I then try the SDfat example, exactly as is, through file>>examples>>SDfat>>quickstart
It compiled an uploaded via com 6 to the Teensy. Opening the serial monitor it asked me to enter the chip select pin number in which I entered 10.
The feedback read:
SD initialization failed.
Do not reformat the card!
Is the card correctly inserted?
Is chipSelect set to the correct value?
Is there a wiring/soldering problem?
errorCode: 0x1, errorData: 0x0
To not confuse my wiring I have inserted a picture that shows the Teensy placed on top of the shield match the left and right 14 pins.
Am I doing something wrong? How can I get the Teensy 3.2 to communicate with the SD card (preferably through the audio shield instead of another SD card adapter.