Main Site Documentation

Me again. GHI Premium and Spider


#1

Quick question.

Using Firmware 4.2.9.0
I cannot get my SD Card to work. Using SD Card 1.2 with a 16 GB SanDisk.
I read someplace in here that SD/SDHC is OK and no size limit… Is that correct?



using GHI.Premium.IO;
using GHI.Premium.System;
using GHI.Premium.Hardware;

static PersistentStorage ps;

ps = new GHI.Premium.IO.PersistentStorage("SD");
 
ps always returns null


SD is formatted FAT32 and I can obtain
VolumeInfo vi = sdCard.GetStorageDevice().Volume;

I just cannot mount it.

Anything I should be aware of?

Thank you again!


#2

@ andre.m - Is this something new?
With 4.2.7 i implemented it like this.

new PersistenStorrage("SD")
Mount
Wait for Removable storrage inserted event

This still works for me with 4.2.9 on G120 (Tested with 4.2.7 and 4.2.8 also with Cobra I)


#3

@ andre.m -

Thank You AGAIN!


#4

My Cobra (I) has EMX as well, and it works fine with PersistentStorrage(SD) and Mounting.
just curious, as Long as it works :wink:


#5

@ Reinhard Ostermeier - you still need this in plain NETMF applications. If you use Gadgeteer project and classes then Mainboard implementation does it for you internally.


#6

@ Architect - Ah, thats why I did it that way. I don’t use Gadgeteer.
Thank you for the info.