Main Site Documentation

Cerb40 II MF 4.3 SD Card doesn`t work!


#1

Cerb40 II MF 4.3 SD Card doesn`t work!

This is my code:

SDCard sdCard;

sdCard = new SDCard(); <----- Always generate Exception
’System.Exception’ in GHI.Hardware.dll
sdCard.Mount();

thanks!


#2

@ candelo - Do you have the SD card inserted when you call mount?


#3

Yes! the SD card is inserted and all wiring is OK!

The error occurs before call mount() method.

This line generates the error:

sd = new SDCard();


#4

@ candelo - Do you have any other SD cards you can try?


#5

Yes, I have 2 SD Cards,

  1. Verbatim 4GB HC
  2. Kingston 4GBHC

Both works perfect on my computer.

Do you think that is a hardware (wiring, SD, etc…) problem?


#6

@ candelo - My initial guess would be to check your wiring. We have tested numerous SD cards on the cerb-family and they all work.


#7

it raises exception when create object means connection not good, check your wires, or you need re-format it on PC again.


#8

@ Dat - I see that you always recommend to reformat SD Card on PC. What about formatting it with NETMF?
https://msdn.microsoft.com/en-us/library/jj610787(v=vs.102).aspx

If that method is not good for any reason, how hard would it be for you to include such an option in your libraries?


#9

is Working now! Thank you. My SD Card socket was damaged.


#10

@ Dat - Can you answer my question? :slight_smile:


#11

@ iamin -

That because in case you can not mount in NetMF. If you can mount and format in NETMF successful, then you don’t need reformat by the PC.