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.

jmorrisosu

Member Since 24 Feb 2013
Offline Last Active Jul 16 2013 01:50 AM
-----

Topics I've Started

NP2 reboots on deploy; never debugs/runs app

24 February 2013 - 04:27 PM

Hey everyone,

 

I found one similar topic here: http://forums.netdui...tate-rebooting/ but it was over a year old and with no resolution.

 

I bought a netduino plus 2 yesterday after tinkering with a netduino and wanting to try my hand at using the built on LAN port.  Unfortunately I've spent the last 24 hours without a successful deployment as when I deploy from VS2010, I get the "target is not in an initialized state; rebooting" message in VS, and then once my device reboots, VS seems to lose attachment from the process(debugging has stopped) and my device is also not running the program.

 

Has anyone found a resolution to this?  I can successfully deploy to the Netduino, and have tried flashing the firmware to 4.2.2.

 

Here is my program(and I've tried adding Thread.Sleep() many additional places and tried a few other variations using netduinioplus dlls and namespaces)[namespace and program name omitted for brevity]

 

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;

  public static void Main()
  {
  // write your code here
  OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);
  bool State = false;

  while (true)
  {
  led.Write(State);
  State = !State;
  Thread.Sleep(2000);
  }

  }

Here is the output from my NP2 in MFDeploy:

 

HalSystemInfo.halVersion: 4.2.0.0
HalSystemInfo.halVendorInfo:   Netduino Plus 2 (v4.2.2.2) by Secret Labs LLC
HalSystemInfo.oemCode:   34
HalSystemInfo.modelCode:   177
HalSystemInfo.skuCode:   4102
HalSystemInfo.moduleSerialNumber: 00000000000000000000000000000000
HalSystemInfo.systemSerialNumber: 0000000000000000
ClrInfo.clrVersion: 4.2.0.0
ClrInfo.clrVendorInfo:   Netduino Plus 2 (v4.2.2.2) by Secret Labs LLC
ClrInfo.targetFrameworkVersion: 4.2.0.0
SolutionReleaseInfo.solutionVersion:   4.2.2.2
SolutionReleaseInfo.solutionVendorInfo: Netduino Plus 2 (v4.2.2.2) by Secret Labs LLC
SoftwareVersion.BuildDate:   Jan 26 2013
SoftwareVersion.CompilerVersion:   410894
FloatingPoint:   True
SourceLevelDebugging: True
ThreadCreateEx: True
LCD.Width:   0
LCD.Height: 0
LCD.BitsPerPixel: 0
AppDomains: True
ExceptionFilters: True
IncrementalDeployment:   True
SoftReboot: False
Profiling:   False
ProfilingAllocations: False
ProfilingCalls: False
IsUnknown:   False

 

Any Ideas?

 

Thanks in advance

 

Jessie


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.