Dukebats / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Hi,

I have sort of the same problem. When I use usb power and connects with 
hyperterminal to see data the cards initialize. But when i use external VIN 
power and uses bluetooth to see data, it won't initialize.

Please make a fix for this.

Original comment by Martin.M...@gmail.com on 23 Dec 2012 at 3:26