Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

SD Card not working


  • Please log in to reply
3 replies to this topic

#1 pxl357

pxl357

    Member

  • Members
  • PipPip
  • 18 posts

Posted 20 August 2011 - 10:44 PM

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

#2 Omar (OZ)

Omar (OZ)

    Advanced Member

  • Members
  • PipPipPip
  • 564 posts

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 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

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 Omar (OZ)

Omar (OZ)

    Advanced Member

  • Members
  • PipPipPip
  • 564 posts

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

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.