Main Site Documentation

COBRA-II SD Access in 2014 R5


#1

My apologies in advance if this question has already been asked.

Is it expected that the following code should throw an exception when no SD Card is present?


SDCard sd = new SDCard(); 


An unhandled exception of type 'System.Exception' occurred in GHI.Hardware.dll

This really throws a monkey wrench in to our existing code. Our perception was that we could construct the SDCard object and then mount (using the card detect pin). Why did this change?

Thanks.


#2

@ Diesel Engineer - Are you using Gadgeteer?


#3

No, straight NETMF.


#4

@ Diesel Engineer - I do not believe mounting or constructing has changed in any recent SDK. Once you receive the detect interrupt from your interrupt object, you can create the SDCard object and mount it.