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

Request For Help In Running C#, "Hello World" Program

netduingo hello world c#

  • Please log in to reply
1 reply to this topic

#1 Denisetoo

Denisetoo

    Member

  • Members
  • PipPip
  • 22 posts

Posted 20 January 2013 - 05:51 PM

Hello,

 

I am having issues running a simple "Hello World" with my netduingo using C# express, Windows 7

 

This is the code:

 

"using System;

using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
 
 
 
namespace HelloWorld
{
    public class HelloWorld
    {
        public static void Main()
        {
            // write your code here
 
            Debug.Print("Hello World");
        }
 
    }
}
"
 
After debugging it, F5,
 
This is what I get in the output window "Incrementally deploying assemblies to device
Deploying assemblies for a total size of 296 bytes
Assemblies successfully deployed to device.
The debugging target and the debugger engine failed to initialize because of unspecified device errors.
The debugger engine thread has terminated unexpectedly with error 'Could not reconnect to the debugging target after rebooting it.'.
"


#2 Verdris

Verdris

    Advanced Member

  • Members
  • PipPipPip
  • 128 posts
  • LocationReno, NV

Posted 20 January 2013 - 09:16 PM

Hello,

 

I am having issues running a simple "Hello World" with my netduingo using C# express, Windows 7

 

This is the code:

 

"using System;

using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
 
 
 
namespace HelloWorld
{
    public class HelloWorld
    {
        public static void Main()
        {
            // write your code here
 
            Debug.Print("Hello World");
        }
 
    }
}
"
 
After debugging it, F5,
 
This is what I get in the output window "Incrementally deploying assemblies to device
Deploying assemblies for a total size of 296 bytes
Assemblies successfully deployed to device.
The debugging target and the debugger engine failed to initialize because of unspecified device errors.
The debugger engine thread has terminated unexpectedly with error 'Could not reconnect to the debugging target after rebooting it.'.
"

It looks like you're not using the hardware libraries. Which exact Netduino are you using? For the Netduino 2 it should look like this:

 

using System;using System.Net;using System.Net.Sockets;using System.Threading;using Microsoft.SPOT;using Microsoft.SPOT.Hardware;using SecretLabs.NETMF.Hardware;using SecretLabs.NETMF.Hardware.Netduino;namespace NetduinoApplication1{    public class Program    {        public static void Main()        {            // write your code here            Debug.Print("Hello world!");        }    }}

 

Also make sure your firmwares and SDKs are up to date.







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.