SD card

Hello,

I have a problem with my SD card and the RINO.

My code :

        if (PersistentStorage.DetectSDCard())
        {
            Debug.Print("[TEST] : {MicroSDTest} SD Card Detected!");
            Debug.Print("[TEST] : {MicroSDTest} Mounting Persistent Storage device");
            try
            {
                sdCard = new PersistentStorage("SD");
                sdCard.MountFileSystem();
                SDCardLoaded = true;
            }
            catch (Exception ex)
            {
                Debug.Print("Failed to mount SD card: " + ex.Message);
                SDCardLoaded = false;
            }

        }

I have always the same execption.

“Une exception de première chance de type ‘System.Exception’ s’est produite dans GHIElectronics.NETMF.IO.dll
Failed to mount SD card: Exception was thrown: System.Exception

My SDK is 4.1.3 and the runtime version is 4.0.30319

The firmware of the RINO is :

ClrInfo.clrVersion: 4.1.2821.0
ClrInfo.clrVendorInfo: Microsoft Copyright © Microsoft Corporation. All rig
ClrInfo.targetFrameworkVersion: 4.1.2821.0
SolutionReleaseInfo.solutionVersion: 4.1.3.0
SolutionReleaseInfo.solutionVendorInfo: GHI Electronics, LLC
SoftwareVersion.BuildDate: Oct 15 2010
SoftwareVersion.CompilerVersion: 310739

Any Idea ?

Hi.
I have the same problem… I have posted some code in another thread which gives me the same error.
Looking forward to a solution!

Best Regards
Thomas Jespersen

  1. use the code tag when you post code, makes it much more readable!

  2. try adding a thread.sleep(1000) after New PersistentStorage

Hello,

Excuse me for the smileys, it’s was not wanted.

The thread.sleep(1000) is not necessary actually, because my problem appear here :


sdCard = new PersistentStorage("SD");

I have try with an another Rino card it’s the same problem.
I have tried the SD card with the domino card and it’s ok…

The SD card works fine on Domino but on on Rhino?

Can you try it with a power supply?

Hi Gus,

The SD card work fine with the FEZ Domino
The SD card doesn’t work with the FEZ Rino.

So I have solved my problem.

My problem was the power supply.

When the power supply is supplied by the USB debug connector, it’s not possible with the FEZ Rino to work with the SD card-
I have used an external power supply (6.5V) and the FEZ Rino has worked correctly with the SD card…

The configuration of the Rino is 128*64 Graphic display connected and module Ethernet soldered.
The configuration of the FEZ domino : nothing connected !

I have remove the line

Thread.Sleep(1000)

And all work correctly.

I hope my experience can help

Septic,

It strongly makes sense.

Thank you.