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

uSD writing issue.


  • Please log in to reply
2 replies to this topic

#1 gouaches

gouaches

    Member

  • Members
  • PipPip
  • 11 posts

Posted 04 January 2012 - 02:51 PM

Hi ALL, i am a newbie for Netduino plus and now i am trying any features it has. now i am focusing on uSD using; i have read it doesn't have to be mounted because Netduino+ mounts it automatically. I have enclosed in my C# project the System.IO namespace but I cannot compile or run the project on Netduino plus. Could anyone give me some ideas or instruction about how i have to manage uSD? Thanks in advance to everyone who replies.... :-) Best Regards, Daniele.

#2 Nevyn

Nevyn

    Advanced Member

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

Posted 04 January 2012 - 03:07 PM

I have enclosed in my C# project the System.IO namespace but I cannot compile or run the project on Netduino plus.

Could anyone give me some ideas or instruction about how i have to manage uSD?

One thing to check is the references for the project - Is System.IO in the references (make sure you check the project references and not just the using statements.)?

BTW - you did not attach the project to the message.

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


#3 gouaches

gouaches

    Member

  • Members
  • PipPip
  • 11 posts

Posted 20 January 2012 - 10:45 PM

Hi All,

I am trying to adjust uSD writing routine but it doesn't work yet.

I post the code:

using System;
using System.Net;
using System.IO;
using System.Net.Sockets;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;

namespace uSDwriting
{
    public class Program
    {
        public static void Main()
        {
            DirectoryInfo usd = new DirectoryInfo(@"\SD\");
            if (usd.Exists)
            {
                usd.CreateSubdirectory(@"\SD\Prova\");
                FileInfo prova_file = new FileInfo("Prova.txt");
            }

        }

    }
}

could someone help me?

thank u for your effort!

Daniele.




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.