Hello ,
I start to work with a Kingston 2 gig SD card and can't get it to work.
string[] rootDirs = Directory.GetDirectories(@"\");
>>rootDirs return \\WINFS and \\ROOT
DirectoryInfo rootDirectory = new DirectoryInfo(@"\\SD\\");
>> rootDirectory.Exist return 0
OutputPort SdPower = new OutputPort((Cpu.Pin)25, false); // ensure that the SD card is powered
InputPort sdDetected = new InputPort((Cpu.Pin)57, false, Port.ResistorMode.PullUp);
>> sdDetected return true.
The SD card is formated in FAT and contains tiny text files i added manually with my computer.
I used different framework and my current setup is :
DeviceInfo:
HAL build info: 4.1.2821.0, Netduino Plus by Secret Labs LLC
OEM Product codes (vendor, model, SKU): 34, 177, 4097
Serial Numbers (module, system):
00000000000000000000000000000000
0000000000000000
Solution Build Info: 4.1.0.5, Netduino Plus by Secret Labs LLC
AppDomains:
default, id=1
Assemblies:
mscorlib,4.1.2821.0
Microsoft.SPOT.Native,4.1.2821.0
Microsoft.SPOT.Hardware,4.1.2821.0
Microsoft.SPOT.Net,4.1.2821.0
System,4.1.2821.0
Microsoft.SPOT.IO,4.1.2821.0
System.IO,4.1.2821.0
Microsoft.SPOT.Hardware.SerialPort,4.1.2821.0
Microsoft.SPOT.Hardware.Usb,4.1.2821.0
SecretLabs.NETMF.Hardware,4.1.0.0
SecretLabs.NETMF.Diagnostics,4.1.0.0
ListenForLedCommand,1.0.0.0
SecretLabs.NETMF.Hardware.NetduinoPlus,4.1.0.0
Any idea ?
Thanks !
PXl
SD Card not working
Started by pxl357, Aug 20 2011 10:44 PM
3 replies to this topic
#1
Posted 20 August 2011 - 10:44 PM
#2
Posted 20 August 2011 - 11:05 PM
In case you forget this is the one i used successfully http://www.amazon.com/dp/B000VOU91U/
A note to others: when using your netduino plus avoid kingston cards.
#3
Posted 21 August 2011 - 05:39 AM
I think the SD card can be found at \SD rather than \\SD.
Regards,
Mark
To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life
Follow @nevynuk on Twitter
#4
Posted 21 August 2011 - 02:33 PM
I think the SD card can be found at \SD rather than \\SD.
Regards,
Mark
You are correct, @"\SD\" is the same as "\\SD\\" but those two were mixed. I did give him some code which worked for me but it didn't work for him. So his SD card is bad, but that code is also bad. Good catch
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users