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.

Dizel's Content

There have been 5 items by Dizel (Search limited from 03-May 23)


By content type

See this member's

Sort by                Order  

#60990 Beta: Visual Studio 2013 support

Posted by Dizel on 16 December 2014 - 10:07 AM in Visual Studio

Hi ccondo,

Are things working now for you, with this latest update?

Chris

 

I had same problem.

 

1. Install MF SDK

2. Install ND SDK

3. Install netmfvs2013.vsix

4. All works fine  ;)




#60335 SD Card Write issue

Posted by Dizel on 03 October 2014 - 12:17 PM in Netduino Plus 2 (and Netduino Plus 1)

using(FileStream file = new FileStream(fileWrite, FileMode.OpenOrCreate, FileAccess.ReadWrite))
using (StreamWriter writer = new StreamWriter(file))
{
    writer.WriteLine("Hello");
    writer.WriteLine("SD");
}

Thanks sfx

 

At all, this code works fine, but my Windows 8 can't recognize SD after file writing, but i can read data programmatically. Amazing.

 

Solution: format e: /fs:FAT

Read\Write only from Netduino




#60334 SD Card Write issue

Posted by Dizel on 03 October 2014 - 11:19 AM in Netduino Plus 2 (and Netduino Plus 1)

I do not know what is going on, but i hate this "Magic". After several(approximately 100 :blink: (4 hours)) times of debugging application, it can some time work, some time did not work.Deployment Erasing and VS rebooting can some time help, some time no. I wasted a lot of time ... and i cant find any logic dependencies.

 

And again Reader works fine  <_<

 

Default .Net application with SD Card works fine.




#60328 SD Card Write issue

Posted by Dizel on 02 October 2014 - 08:33 PM in Netduino Plus 2 (and Netduino Plus 1)

I use VS 2013 and last version of MF and Netduino SDK, also firmware on my board 4.3.1




#60322 SD Card Write issue

Posted by Dizel on 02 October 2014 - 12:19 PM in Netduino Plus 2 (and Netduino Plus 1)

Hello guys,

I have problem with SD card, when i read from it all fine, but when i try write i have Exception in System.IO

DirectoryInfo dir = new DirectoryInfo(@"\SD\");
bool dirExist = dir.Exists;
var files = dir.GetFiles();
string fileName = @"\SD\test.txt.txt";
string fileWrite = @"\SD\testWrite.txt";
bool fileExist = File.Exists(fileName);
OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);
using (FileStream file = 
    new FileStream(fileName, FileMode.OpenOrCreate, FileAccess.ReadWrite))

//using (FileStream file=
    new FileStream(fileWrite, FileMode.OpenOrCreate, FileAccess.ReadWrite))
//using(StreamWriter wr = new StreamWriter(fileWrite))
//{
//    wr.WriteLine("Hello");
//    wr.WriteLine("StreamWriter");
//}

using (StreamReader reader = new StreamReader(file))
{
    string line;
    while ((line = reader.ReadLine()) != null)
    {
        led.Write(true);
        Thread.Sleep(250);
        led.Write(false);
        Thread.Sleep(250);
     }
}

Exception raised in commented code

 

Can some one help me?





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.