I’m having some debug problems and I don’t know what to do, as there are no error codes from the SD library functions (just pass or fail).
I’ve tried to test that my hardware is wired up correctly by using Sparkfun’s code (keeping my code out - just pulling Sparkfun’s code from https://learn.sparkfun.com/tutorials/microsd-breakout-with-level-shifter-hookup-guide#code-example ).
I can’t get out of initialization. And, what is weird, is that the failures change based on what board I’m using.
* Blue Board (v02) - CardDetect pin stays high - stuck at SD.begin(chipselect) at line 87
* Red Board (v10) - CardDetect pin stays low - stuck at digitalRead(cardDetect) at line 80
I’m using Arduino uno
I’m not sure how to debug this from here. Any thoughts?