Hi everyone. Experienced electronics engineer here but just starting to dip my toe into the Arduino world. Working on a small project that requires logging data to as SD card. I am using a ESP32-WROOM-32UE board:
https://www.sparkfun.com/products/17381
I have wired this up (correctly I believe) to:
https://www.sparkfun.com/products/13743
Running through some very basic code I keep getting errors and the card will not initialize (the card is formatted to FAT32). Here is the sample code:
The output error I get is:
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode: DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x40080400,len:3028
entry 0x400805e4
E (159) esp_core_dump_flash��ɕ�dump data check failed:
Calculated checksum='3936a6d4'
Image checksum='ffffffff'
SD card initialization failed!
As I've been going through this project I've learnt a lot about the Arduino ecosystem and overcome so (probably basic for everyone here) issues but this is the first one that has really stumped me.
Thanks in advance for any advice.
https://www.sparkfun.com/products/17381
I have wired this up (correctly I believe) to:
https://www.sparkfun.com/products/13743
Running through some very basic code I keep getting errors and the card will not initialize (the card is formatted to FAT32). Here is the sample code:
Code:
#include <SPI.h>
#include <SD.h>
const int chipSelectPin = 17; // Change to your CS pin
void setup() {
Serial.begin(115200);
pinMode(chipSelectPin, OUTPUT);
if (!SD.begin(chipSelectPin)) {
Serial.println("SD card initialization failed!");
while (1);
}
Serial.println("SD card initialized successfully!");
}
void loop() {
// This loop can be left empty for the test
delay(1000); // Add a delay if desired
}
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode: DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x40080400,len:3028
entry 0x400805e4
E (159) esp_core_dump_flash��ɕ�dump data check failed:
Calculated checksum='3936a6d4'
Image checksum='ffffffff'
SD card initialization failed!
As I've been going through this project I've learnt a lot about the Arduino ecosystem and overcome so (probably basic for everyone here) issues but this is the first one that has really stumped me.
Thanks in advance for any advice.