KrisKasprzak
Well-known member
All,
I have a board with a display and SD card and when using a Teensy 3.2 all works well (SPI display and the SD card). The SD card is on the display, but resistors replaced with 0 ohm and it works.
I recompiled my code for a teensy 4.0 and the SD card fails on sd.begin(). I'm using pin 10 as my SD chip select. I can't even get the Sdfat examples to work. Generally, do we expect the 4.0 to be able to use SD cards w/o code changes? If not what code changes are needed
I have a project from a few months back, that uses a 4.0 and SD card and no issues.
I'm using Teensy loader 1.54
Thoughts?
I have a board with a display and SD card and when using a Teensy 3.2 all works well (SPI display and the SD card). The SD card is on the display, but resistors replaced with 0 ohm and it works.
I recompiled my code for a teensy 4.0 and the SD card fails on sd.begin(). I'm using pin 10 as my SD chip select. I can't even get the Sdfat examples to work. Generally, do we expect the 4.0 to be able to use SD cards w/o code changes? If not what code changes are needed
I have a project from a few months back, that uses a 4.0 and SD card and no issues.
I'm using Teensy loader 1.54
Thoughts?
Code:
#include <SdFat.h>
bool IsSD = false;
SdFat sd;
SdFile dataFile;
void setup() {
Serial.begin(9600);
delay(2000);
IsSD = sd.begin(10);
Serial.println(IsSD);
}
void loop() {
}