Open
Description
Hi All,
Found a bug experimenting with the Sparkfun MMDLCB with v2 of the Apollo3 Core.
Issue: Essentially, when disabling onboard LDOs, I measure an increase in current consumption, not a decrease as expected (as in v1.2.3). These LDOs have an enable pin that when driven low should cut all power downstream to peripherals, such as SD sockets, which is what I was experimenting with), but this is no longer the case.
I'm attaching my code below where I observed this behavior. Opening this issue following posting to sparkfun forums here.
Thanks!
#define PIN_SD_POWER 33 // G1 - Drive low to turn off SD/Perhipherals
#define SD_CONFIG SdSpiConfig(41, SHARED_SPI, SD_SCK_MHZ(24))
#include <SdFat.h>
#include <SPI.h>
SdFs sd;
void setup() {
//Serial.begin(115200);
digitalWrite(PIN_SD_POWER, LOW);
pinMode(LED_BUILTIN, OUTPUT);
delay(2000);
}
void loop() {
// TURN PERIPHERAL uSD ON
SPI.begin();
digitalWrite(PIN_SD_POWER, HIGH);
digitalWrite(LED_BUILTIN, HIGH);
delay(100);
if (!sd.begin(SD_CONFIG)) {
while (1);
}
// TURN PERIPHERAL uSD OFF
delay(5000);
SPI.end();
digitalWrite(PIN_SD_POWER, LOW);
digitalWrite(LED_BUILTIN, LOW);
delay(5000);
}
Metadata
Metadata
Assignees
Labels
No labels