Hello!
Today I thought I would try out the SD card module but am getting a problem:
“SDCard ERROR : Error mounting SD card - no card detected.”
I went through the SD card info and program examples and put in all the assemblies, etc.
(I put in the premium assemblies).
I’m using an 8GB HD video SanDisk SD card which works fine with my camera.
When I insert it into the SD module, I get the above error after about 1 second.
Note that this line of code works ok - just showing that the sdCard is connected ok
to socket 5 (F type):
if (!sdCard.IsCardInserted || !sdCard.IsCardMounted)
{
Debug.Print( “SDCard is missing.”);
}
Note that when I insert the card, none of these events trigger, instead I just get the error.
sdCard.SDCardMounted += new GTM.GHIElectronics.SDCard.SDCardMountedEventHandler(sdCard_SDCardMounted);
sdCard.SDCardUnmounted += new GTM.GHIElectronics.SDCard.SDCardUnmountedEventHandler(sdCard_SDCardUnmounted);
Note that if I start the program with the card already inserted, I get the error before this line of code is called:
void ProgramStarted()
{
sdCard.MountSDCard();
...........
}
Then if I continue, I get the error again when sdCard.MountSDCard(); gets called.
Not sure what to do - from the documentation, it sounds like pretty much any SD card will work.
Also, if I try to create a persistent object as shown in the example 3 premium access of the sd module code examples -
pStore = new PersistentStorage(“SD”);
This causes an error window to pop up with this message:
"An unhandled exception of type ‘System.Exception’ occurred in GHI.Premium.IO.dll.
Thanks for your help!