I've got a project involving an Arduino MKR Zero. I'm utilizing the onboard SD card reader/writer. I'd like to place the Zero in a project box which then requires extending the card reader/writer functionality to the edge of the box. I've tried extension cables but always get a "failed to initialize" error from the sample SD.h code.
Any idea what might be causing the problem?
Try adding a 47uF to 100uF cap to the supply line at the SD board end and check the signal lines are pulled up by 10K to 47K resistors at the SD board. Fixed a similar issue for me.
The problem with SD cards is you cannot 'reset' them you need to power cycle them.