Skip to content

SD card initialization fails after SD power down/new init sequence #1103

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Init SD card
2. Turn SD card off (by cutting power to SD card, but also to all other SD 
input pins)
3. Turn SD card on
4. Initialize SD card again

What is the expected output? What do you see instead?

The expected output would be to have the SD card re-initialize itself. Instead, 
the second initialization fails.

I have tracked the failure cause to SDFile.openRoot method that return failure 
if the root had been already opened.


What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?

Arduino IDE 1.0.1
Mac OS X
Custom board


Please provide any additional information below.

A fix can be implemented, for example by calling a method that resets the state 
of the SDClass object in the initialization routine, making sure we start from 
a blank state.

I am willing to implement the fix, but just want to make sure I implement it 
the way people would like it.

Original issue reported on code.google.com by fakuf...@gmail.com on 7 Nov 2012 at 6:50

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions