mborgerson
Well-known member
I just started working with the Teensy MM and Data Logger Carrier Board. I can't seem to get the SD Card to start up.
I'm using IDE 2.0.1 and the latest Teensy json: https://www.pjrc.com/teensy/package_teensy_index.json
When I run the same code on a T4.1, the SD Card opens as expected. The same SD card was used for the MM and T 4.1. I checked that 3.3V was present on the carrier board 3.3_LP power pins.
Here is the test code:
Does the MM and data logger carrier board require a SD card different setup than the T4.1?
I'm using IDE 2.0.1 and the latest Teensy json: https://www.pjrc.com/teensy/package_teensy_index.json
When I run the same code on a T4.1, the SD Card opens as expected. The same SD card was used for the MM and T 4.1. I checked that 3.3V was present on the carrier board 3.3_LP power pins.
Here is the test code:
Code:
// Test for SD operation on Teensy MM and Data Logger Carrier board
// MJB 11/13/22
#include "SD.h"
#if defined(ARDUINO_TEENSY_MICROMOD)
constexpr uint8_t G1 = 41; // GPIO7-05 |
#define peripheralPowerControl G1
#endif
void setup() {
delay(500);
// put your setup code here, to run once:
#if defined(ARDUINO_TEENSY_MICROMOD)
Serial.println("MicroMod Peripheral power on.");
pinMode(peripheralPowerControl, OUTPUT);
digitalWriteFast(peripheralPowerControl, HIGH); //turn on 3.3V power to SDIO
#endif
Serial.println("SD Card initialization test.");
if (!SD.begin(BUILTIN_SDCARD)) {
Serial.println("\nSD File initialization failed.\n");
} else {
Serial.println("initialization done.");
}
}
void loop() {
// put your main code here, to run repeatedly:
}
Does the MM and data logger carrier board require a SD card different setup than the T4.1?