Main Site Documentation

Using the MF emulator to run SD examples


#1

Hi
I am unable to run the examples from “SD Card Module” using the MF emulator.

do you know if it is possible to use it ?

I got:
“An unhandled exception of type ‘System.NotSupportedException’”

thanks !


#2

I may be wrong but I think that periphals such as SD can not been emulated. However you can replace SD dependant code to access byte array and read write into that byte array.

Perhaps there’s already someone that has made a librairy for that…


#3

Isn’t there an Option in the Emulator Menu (when started) to Mount drives?


#4

Or you can use WINFS which should already be mounted and then you can access your files directly from Windows Explorer.


#5

Never used it but yes.


#6

@ David

Interesting!!!


#7

Incidentally I was working on exactly the same problem today.

I just assembled a small example with file system access that runs on the simulator as well as on GHI premium devices.

https://www.ghielectronics.com/community/codeshare/entry/878

David already posted an image on how to mount a sd device.

Please note that you can make your own custom emulator, when you don’t like the way this emulator works.


#8

You will not be able to use the GHI Drivers for the SD Card module. You can however, as @ David said, emulate the insertion of an SD card and handle read/write access through core NETMF libraries.


#9

@ Peter B - Thanks !!! this example is really helpful ;D