GHI NETMF v4.2 and .NET Gadgeteer Package (Beta 7-23-2012) SD FileMount Feature

There appears to be an interesting feature in MountFileSystem in the Beta 4.2 support for the SD card on the Spider. Even if you have no user application code at all you get the following message:

Using mainboard GHI Electronics FEZSpider version 1.0
#### Exception System.Exception - 0xffffffff (1) ####
#### Message:
#### GHI.Premium.IO.PersistentStorage::MountFileSystem [IP: 0000] ####
#### GHIElectronics.Gadgeteer.FEZSpider::MountStorageDevice [IP: 000f] ####
#### Gadgeteer.Modules.GHIElectronics.SDCard::MountSDCard [IP: 000f] ####
#### SD_Test.Program::InitializeModules [IP: 0006] ####
A first chance exception of type ‘System.Exception’ occurred in GHI.Premium.IO.dll
SDCard ERROR : Error mounting SD card - no card detected.

Actually, as someone previously posted, the text does not quite match reality. If you open the sdCard object you will find that the card is present but not mounted. If you attempt to mount manually, you get the same message.

I used the exact same hardware and software (well I did need to change from GHIElectronics.NETMF to GHI.Premium) on 4.1 and I can read a binary file from the SD card.

In the source code I see the following:

                    //_storage = new PersistentStorage("SD");
                    //_storage.MountFileSystem();
                    Mainboard.MountStorageDevice("SD");
                    IsCardMounted = true;
                    Thread.Sleep(500);

The commented out section seems OK, not sure what the rest does.

Anyone know how to get the MountFileSystem to work for the SD card attached to a spider usingGHI NETMF v4.2 and .NET Gadgeteer Package (Beta 7-23-2012)?

There is no 4.2 for Spider yet.

there is a known issue with PersistentStorage with the current beta 4.2 premium library.

should be fixed in next release.

Testing is done so we should have it this week. Crossing fingers.

1 Like