THANKS!
Here is what the serial traffic looks like:
- waiting for SD card
- [ 3813][W][sd_diskio.cpp:174] sdCommand(): no token received
- [ 3915][W][sd_diskio.cpp:174] sdCommand(): no token received
- [ 4015][W][sd_diskio.cpp:174] sdCommand(): no token received
- [ 4114][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
- [ 4114][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
- [ 4115][E][sd_diskio.cpp:802] sdcard_mount(): f_mount failed: (3) The physical drive cannot work
- [ 4124][W][sd_diskio.cpp:174] sdCommand(): no token received
- waiting for SD card
- Found SD Card
- SD Card Type: SDHC
- SD Card Size: 30543MB
- config.ini found.
- bool CheckForSDCard()
- {
- if(!SD.begin(CS_PIN))
- {
- bSDCardPresent = false;
- return 0;
- }
- else
- {
- bSDCardPresent = true;
- return 1;
- }
- }
- void setup()
- {
- Serial.begin(115200);
- Serial.println("Hello World!");
- while(!CheckForSDCard())
- {
- Serial.println("waiting for SD card");
- }
- Serial.println("\n\nFound SD Card\n");
- // ETC, ETC, ETC