Using the MF emulator to run SD examples

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 !

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…

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

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

Never used it but yes.

1 Like

@ David

Interesting!!!

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.

1 Like

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.

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