Netduino home hardware projects downloads community

Jump to content

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


Member Since 08 Nov 2011
Offline Last Active Private

Topics I've Started

Nut/OS on netduino

27 November 2011 - 01:27 AM

Hello, I have just started trying to use Nut/OS on the Netduino plus with no success at networking.

On the web server example(httpd) I have verified that the code hangs on NutNetIfConfig(DEV_ETHER_NAME, mac, ip_addr, ip_mask).

-Doesn't work on either Nut/OS 4.1(Stable) or 5.0(latest beta).
-I'm using YAGARTO toolchain(GCC 4.6.2) and tools(v. 20100703).
-As IDE, I have CodeLite, although not really relevant.
-I'm deploying* with SAM-BA 2.11(executing the flash boot script)
-This is my simple make batch script, which is used with default makefiles on each app directory:
set makeLocation=C:\ethernut-5.0\nutapp\httpd
set pathExtra=C:\ethernut-5.0\nut\tools\win32;C:\yagarto\toolchain\bin;

cd %makeLocation%
set PATH=%pathExtra%;%PATH%
make clean all install

::%SystemRoot%\explorer.exe "%makeLocation%

Please post some hints if you have managed to make Nut/OS work with N+ :(

SD card not working on N+ 4.2 RC3

14 November 2011 - 05:47 AM

Hello. First of all, I'd like to say thanks for this fun and easy development platform.

The reason I am posting is that I am facing issues with micro SD cards(using a Kingston SDC/2GB atm), as other people have already posted.

The following code works just fine with firmware on NetduinoPlus:

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

namespace MicroSdTest
    public class Program
        public static void Main()
            VolumeInfo vol = new VolumeInfo("\\SD");

            string dir = Directory.GetCurrentDirectory();
            string[] dirs = Directory.GetDirectories("\\");
            dirs = Directory.GetDirectories("\\SD\\");
            foreach (string d in dirs)


I usually set a breakpoint before
dirs = Directory.GetDirectories("\\SD\\");
so I can check the contents of vol or I can just let it pass crashing or printing. It turns out that on, it detects the FAT filesystem just fine and I can format/print the directories. On 4.2 RC3 none of that occurs and the code crashes whenever I try to access any of the card's features.

I have tried this simple code running back and forth from to 4.2RC3 a few times and the behavior was consistent. Am I missing something like mounting it on 4.2RC3 or is it a bug? This particular issue is delaying a project of mine...

edit:forgot to post the actual exception I get
A first chance exception of type 'System.NotSupportedException' occurred in Microsoft.SPOT.IO.dll
A first chance exception of type 'System.IO.IOException' occurred in System.IO.dll
An unhandled exception of type 'System.IO.IOException' occurred in System.IO.dll

Geancarlo Rocha

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.