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

New Netduino 3 cyclic reboot - please help

N3 cyclic reboot

  • Please log in to reply
5 replies to this topic

#1 kerk-akker

kerk-akker

    Member

  • Members
  • PipPip
  • 12 posts
  • LocationNetherlands

Posted 24 February 2016 - 09:49 PM

Dears,

 

Today I plugged in my brand new N3 Ethernet. I can see the device in MFDeploy and there is a response on 'ping' -> pinging Tiny CLR. However, I do not see the N3 in the Netduino Update Tool. 

 

But when I tried to load a N2+ program I end up in cyclic reboots with the following error:

 

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.'.
 
Can someone help ? Do I need to upgrade something ? When switching back to my N2+ everything still works fine. 
 
Br,
 
Arno
 


#2 kerk-akker

kerk-akker

    Member

  • Members
  • PipPip
  • 12 posts
  • LocationNetherlands

Posted 25 February 2016 - 09:53 PM

Dears,

 

An update, I have loaded VS2013 and all other associated programs. Also loaded the latest V4.3.2.3 on the N3. The N3 now pops up in the NetduinoUpdate Tool.

 

However, when I load a program it still continues to cyclic reboot itself and then throws the same error message as above. The output is ( from a small blinky program:

 

Deploying assemblies for a total size of 808 bytes
Assemblies successfully deployed to device.
Restarting interpreter...
Attaching to device...
Waiting for device to initialize...
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.'.
 
Any tips ?
 
Br,
Arno


#3 KiwiDev

KiwiDev

    Advanced Member

  • Members
  • PipPipPip
  • 100 posts
  • LocationNew Zealand

Posted 26 February 2016 - 07:35 AM

Hi Arno,
 
Could you try a couple of things for me?
 
1) Use the ".Net Micro Framework Deployment Tool " \Plug-In\Show Device Info" to get a dump of all the assemblies etc, on the device
 
It should look something like this 
 
DeviceInfo:
  HAL build info: 4.3.1.0, Netduino 3 (v4.3.2.2) by Secret Labs LLC
  OEM Product codes (vendor, model, SKU): 34, 177, 4103
  Serial Numbers (module, system):
    00000000000000000000000000000000
    0000000000000000
  Solution Build Info: 4.3.2.2, Netduino 3 (v4.3.2.2) by Secret Labs LLC
  AppDomains:
    default, id=1
  Assemblies:
    mscorlib,4.3.1.0
    Microsoft.SPOT.Native,4.3.1.0
    Microsoft.SPOT.Hardware,4.3.1.0
    Microsoft.SPOT.Hardware.SerialPort,4.3.1.0
    Microsoft.SPOT.IO,4.3.1.0
    System.IO,4.3.1.0
    Microsoft.SPOT.Hardware.PWM,4.3.1.0
    Microsoft.SPOT.Hardware.Usb,4.3.1.0
    SecretLabs.NETMF.Diagnostics,4.3.1.0
    GoBus,1.5.0.0
    SecretLabs.NETMF.Hardware.Netduino,4.3.1.0
    SecretLabs.NETMF.IO,4.3.1.0
    Microsoft.SPOT.Hardware.OneWire,4.3.1.0
    System,4.3.1.0
    SecretLabs.NETMF.Hardware,4.3.1.0
    Microsoft.SPOT.Net,4.3.1.0
    YourApplication,1.0.0.0
 
 
2) Check all the references of the problematic project(s) and make sure they match the version of .NetMF on the device
 
SecretLabs.NETMF.Hardware.Netduino
Identity SecretLabs.NETMF.Hardware.Netduino
Path C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.3\SecretLabs.NETMF.Hardware.Netduino.dll
...
Runtime version v4.0.30319
Specific version false
...
Version 4.3.1.0
 
Hopefully it's just a version mismatch
 
3) Post the code for you test application
 
 
@KiwiBryn
blog.devmobile.co.nz


#4 kerk-akker

kerk-akker

    Member

  • Members
  • PipPip
  • 12 posts
  • LocationNetherlands

Posted 26 February 2016 - 09:19 AM

Hi KiwiBryn,

 

First, thanks a lot for getting back to me. Please find below the requested information. I have also compared the used versions in my program and all versions are 4.3.1.0 which is the same as in the assemblies. From the MFDeploy it seems my program is running but cyclic reboot continues untill I get the error message given above. 

 

 

Looking forward to a solution. 

 

MFDeploy Device Info: 

 

Give short pulse to light

Light is on

Give short pulse to light

Light is off

Give short pulse to light

Light is on

Give short pulse to light

Light is off

Give short pulse to light

Light is on

Give short pulse to liDeviceInfo:

ght

Light is off

Give short pulse to light

  HAL build info: 4.3.1.0, Netduino 3 Ethernet (v4.3.2.3) by Secret Labs LLC

Light is on

  OEM Product codes (vendor, model, SKU): 34, 177, 4104

  Serial Numbers (module, system):

    00000000000000000000000000000000

    0000000000000000

  Solution Build Info: 4.3.2.2, Netduino 3 Ethernet (v4.3.2.3) by Secret Labs LLC

  AppDomains:

    default, id=1

  Assemblies:

    mscorlib,4.3.1.0

    Microsoft.SPOT.Native,4.3.1.0

    Microsoft.SPOT.Hardware,4.3.1.0

    Microsoft.SPOT.Net,4.3.1.0

    Microsoft.SPOT.Net.Security,4.3.1.0

    System,4.3.1.0

    System.Net.Security,4.3.1.0

    Microsoft.SPOT.Hardware.SerialPort,4.3.1.0

    Microsoft.SPOT.IO,4.3.1.0

    System.IO,4.3.1.0

    Microsoft.SPOT.Hardware.PWM,4.3.1.0

    Microsoft.SPOT.Hardware.Usb,4.3.1.0

    Netduino.IP,1.0.1.0

    Netduino.IP.Interop,1.0.0.0

    Netduino.IP.LinkLayers.AX88796C,1.0.0.0

    SecretLabs.NETMF.Diagnostics,4.3.1.0

    GoBus,1.5.0.0

    SecretLabs.NETMF.Hardware.Netduino,4.3.1.0

    Microsoft.SPOT.Hardware.OneWire,4.3.1.0

    Simple_Test,1.0.0.0

    SecretLabs.NETMF.Hardware,4.3.1.0

 

 

Sample Code

 

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 Simple_Test

{

    public class Program

    {

        public static void Main()

        {

            // write your code here

            var LightPort = new OutputPort(Pins.GPIO_PIN_D0, false);

            var v0Port = new OutputPort(Pins.ONBOARD_LED,false);

            bool toggle = false;

            while (true)

            {

                toggle = !toggle;

                v0Port.Write(toggle);

                Thread.Sleep(5000);

                Debug.Print("Give short pulse to light");

                LightPort.Write(true);

                Thread.Sleep(50);

                LightPort.Write(false);

                Debug.Print("Light is on");

                Thread.Sleep(5000);

                Debug.Print("Give short pulse to light");

                LightPort.Write(true);

                Thread.Sleep(50);

                LightPort.Write(false);

                Debug.Print("Light is off");

 

            }

 

 

        }

 

    }

}

 

Best Regards,

Arno



#5 kerk-akker

kerk-akker

    Member

  • Members
  • PipPip
  • 12 posts
  • LocationNetherlands

Posted 26 February 2016 - 09:28 AM

Hi,

 

For the sake of completeness I added the output window information below:

 

Looking for a device on transport 'USB'
Starting device deployment...
Iteration 0
Opening port \\?\USB#VID_22B1&PID_1000#000000000000#{09343630-a794-10ef-334f-82ea332c49f3}\Operations
Attaching debugger engine...
... debugger engine attached!
Querying device assemblies...
Found Assembly mscorlib 4.3.1.0
Found Assembly Microsoft.SPOT.Native 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware 4.3.1.0
Found Assembly Microsoft.SPOT.Net 4.3.1.0
Found Assembly Microsoft.SPOT.Net.Security 4.3.1.0
Found Assembly System 4.3.1.0
Found Assembly System.Net.Security 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware.SerialPort 4.3.1.0
Found Assembly Microsoft.SPOT.IO 4.3.1.0
Found Assembly System.IO 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware.PWM 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware.Usb 4.3.1.0
Found Assembly Netduino.IP 1.0.1.0
Found Assembly Netduino.IP.Interop 1.0.0.0
Found Assembly Netduino.IP.LinkLayers.AX88796C 1.0.0.0
Found Assembly SecretLabs.NETMF.Diagnostics 4.3.1.0
Found Assembly GoBus 1.5.0.0
Found Assembly SecretLabs.NETMF.Hardware.Netduino 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware.OneWire 4.3.1.0
Found Assembly Simple_Test 1.0.0.0
Found Assembly SecretLabs.NETMF.Hardware 4.3.1.0
Adding pe file C:\Users\Amcire BV\Documents\Visual Studio 2012\Projects\Simple_Test\Simple_Test\bin\Debug\le\Simple_Test.pe to deployment bundle
Adding pe file C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.3\le\secretlabs.netmf.hardware.pe to deployment bundle
Attempting deployment...
Incrementally deploying assemblies to device
Deploying assemblies for a total size of 808 bytes
Assemblies successfully deployed to device.
Restarting interpreter...
Attaching to device...
Waiting for device to initialize...
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.'.
 
Br,
Arno


#6 kerk-akker

kerk-akker

    Member

  • Members
  • PipPip
  • 12 posts
  • LocationNetherlands

Posted 27 February 2016 - 10:16 AM

Hi,

 

Update: I manually flashed the board again ( with STM Dfu tools ). Same problem still exists...... getting a bit desparate.

 

Br, 






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.