how to "Factory reset" Netduino Plus (ver 1 & 2) ? - Netduino Plus 2 (and Netduino Plus 1) - Netduino Forums
   
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

how to "Factory reset" Netduino Plus (ver 1 & 2) ?


  • Please log in to reply
6 replies to this topic

#1 OZ8ET

OZ8ET

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts
  • LocationHundested, Denmark

Posted 06 June 2013 - 04:14 AM

[font="calibri;"]This might be a stupid question, but I have been messing around with different versions of firmware on my devices and want to go back to start ("factory reset").[/font]

 

[font="calibri;"]The result is strange behavior: One NP1 will deploy a program, but ends all threads without doing anything when started.[/font]

[font="calibri;"]Both NP1 and NP2 will throw a socket exception whenever I try a DNS request for ex. “Microsoft.com”.[/font]

[font="calibri;"](This happens even with this as the only one codeline in the software:[/font]

	IPEndPoint ep = new IPEndPoint(Dns.GetHostEntry("microsoft.com").AddressList[0], 80);

[font="calibri;"] [/font]

Other devices - with the same IP-setting - performs well.

 

[font="calibri;"]Now I want to “factory reset” my devices and try all over with new firmware. I touched the blank spot and tried all the obvious ways but nothing helps. [/font]

 

[font="calibri;"]What can I do?[/font]

 

[font="calibri;"]The socket exception occurs with 4.2 as well as with 4.3 beta.[/font]

 

[font="calibri;"]Please advice![/font]

 

Erik

 



#2 Bi Qin

Bi Qin

    Member

  • Members
  • PipPip
  • 23 posts

Posted 06 June 2013 - 04:40 AM

1?Re-flash your netduino's firmware,make sure you get the correct version this time;

 

http://wiki.netduino...ep-by-step.ashx

 

2?Re-config you netduino's network configuration:

http://wiki.netduino...duino-Plus.ashx

 

BTW:A exception on socket doesn't equals a  device issue,there might be something wrong with your internet connection,some times using a static IP for netduino will be more reliable than using DHCP.



#3 OZ8ET

OZ8ET

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts
  • LocationHundested, Denmark

Posted 06 June 2013 - 06:22 AM

Tnx Bi Qin but this is what I did. 

For NP1 I am using TonyA's firmware here as I need OneWire. It worked for som units but not all.

I always use static IP - I set it in the program together with DNS and MAC.

Again - it works on some units - not all.



#4 OZ8ET

OZ8ET

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts
  • LocationHundested, Denmark

Posted 23 June 2013 - 11:35 AM

I realy needs help on this!

I have two NetduinoPlus (version 1) with excatly the same firmware. Both with static IP (same settings)

Same program. Assembly and Deploy is ok on both devices.

One runs ok - the other does not.

In debug mode everything is normal on one board - the other stops with an Error: a3000000

Resolving.Link failure: some assembly references cannot be resolved!!Assembly: NewWeb (1.0.0.0) needs assembly 'SecretLabs.NETMF.Hardware.NetduinoPlus' (4.2.2.0)Error: a3000000Waiting for debug commands...The program '[2] Micro Framework application: Managed' has exited with code 0 (0x0).

What is worng?

 

[font="calibri;"]The problem seems to arise when the program reaches a certain size.[/font]



#5 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 23 June 2013 - 08:30 PM

Hi OZ8ET,

 

That error appears to be saying that an assembly is missing on your Netduino Plus.

 

Is this on a Netduino Plus 2?  Is "SecretLabs.NETMF.Hardware.NetduinoPlus.dll" included as a reference on your project?  What version of the Netduino SDK do you have installed? Finally--try using the ERASE button in MFDeploy to erase your current app, then "clean build" and "rebuild" from Visual Studio.  Finally deploy the app again and let me know if you still get an error.

 

In the end, I think it's a reference/version/board mismatch.  We can help; we just need to understand what's going on on your machine and boards a bit better.

Chris



#6 OZ8ET

OZ8ET

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts
  • LocationHundested, Denmark

Posted 24 June 2013 - 07:37 AM

Thanks Chris

 

This is on NetduinoPlus (version 1).

As mentioned - I test with 2 identical units. One Works as expected - one fails.

The dll is available (Works with the other board).

After following your instructions (Erase, clean, build) the error changed.

There are no error en build - the error comes when running Debug in VS2012 (and VS2010).

The new Error indications is:

Cannot find any entrypoint!Done

Here comes first the full result of "ERASE" operation in MFDebug:

DM9161_DSCSR = 0xF3F0Link Update:          IP: 192.168.1.30         GW: 192.168.1.1Configuration version != versionDM9161_AutoNegotiateValid PHY Found: 31PHY: Vendor Number Model = 0xAPHY: Model Revision Number = 0x0AutoNegotiate completeDM9161_GetLinkSpeed passedLink detected 0x0Link Update:          IP: 192.168.1.30         GW: 192.168.1.1ip address from interface info: 192.168.1.30Created EE.Started Hardware.Create TS. Loading start at 154668, end 16cc40   Assembly: mscorlib (4.2.0.0)   Assembly: Microsoft.SPOT.Native (4.2.0.0)   Assembly: Microsoft.SPOT.Hardware (4.2.0.0)   Assembly: Microsoft.SPOT.Net (4.2.0.0)   Assembly: System (4.2.0.0)   Assembly: Microsoft.SPOT.Hardware.SerialPort (4.2.0.0)   Assembly: Microsoft.SPOT.IO (4.2.0.0)   Assembly: System.IO (4.2.0.0)   Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1)   Assembly: Microsoft.SPOT.Hardware.OneWire (4.2.0.0)   Assembly: SecretLabs.NETMF.Diagnostics (4.2.0.0)Loading Deployment Assemblies.Resolving.Ready.Cannot find any entrypoint!Done.Waiting for debug commands...

Following the result of Build operation in VS2012:

Looking for a device on transport 'USB'Starting device deployment...Iteration 0Opening port ?usb#vid_22b1&pid_1001#7&374e48c&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}Attaching debugger engine...... debugger engine attached!Querying device assemblies...Found Assembly mscorlib 4.2.0.0Found Assembly Microsoft.SPOT.Native 4.2.0.0Found Assembly Microsoft.SPOT.Hardware 4.2.0.0Found Assembly Microsoft.SPOT.Net 4.2.0.0Found Assembly System 4.2.0.0Found Assembly Microsoft.SPOT.Hardware.SerialPort 4.2.0.0Found Assembly Microsoft.SPOT.IO 4.2.0.0Found Assembly System.IO 4.2.0.0Found Assembly Microsoft.SPOT.Hardware.PWM 4.2.0.1Found Assembly Microsoft.SPOT.Hardware.OneWire 4.2.0.0Found Assembly SecretLabs.NETMF.Diagnostics 4.2.0.0Adding pe file C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2lesecretlabs.netmf.hardware.netduinoplus.pe to deployment bundleAdding pe file C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2lesecretlabs.netmf.hardware.netduino.pe to deployment bundleAdding pe file C:UsersErikDropboxSoucesEasyweb7Easyweb7binReleaseleEasyweb7.pe to deployment bundleAdding pe file C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Graphics.pe to deployment bundleAdding pe file C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2lesecretlabs.netmf.hardware.pe to deployment bundleAttempting deployment...Incrementally deploying assemblies to deviceDeploying assemblies for a total size of 63496 bytesAssemblies successfully deployed to device.

.Finally the result of running Debug in VS2012:

Found debugger!Create TS. Loading start at 154668, end 16cc40   Assembly: mscorlib (4.2.0.0)   Assembly: Microsoft.SPOT.Native (4.2.0.0)   Assembly: Microsoft.SPOT.Hardware (4.2.0.0)   Assembly: Microsoft.SPOT.Net (4.2.0.0)   Assembly: System (4.2.0.0)   Assembly: Microsoft.SPOT.Hardware.SerialPort (4.2.0.0)   Assembly: Microsoft.SPOT.IO (4.2.0.0)   Assembly: System.IO (4.2.0.0)   Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1)   Assembly: Microsoft.SPOT.Hardware.OneWire (4.2.0.0)   Assembly: SecretLabs.NETMF.Diagnostics (4.2.0.0)Loading Deployment Assemblies.Attaching deployed file.   Assembly: SecretLabs.NETMF.Hardware.NetduinoPlus (4.2.2.0)Attaching deployed file.   Assembly: SecretLabs.NETMF.Hardware.Netduino (4.2.1.0)Resolving.The debugging target runtime is loading the application assemblies and starting execution.Ready.Cannot find any entrypoint!Done.Waiting for debug commands...'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2Assemblieslemscorlib.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Native.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Hardware.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Net.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleSystem.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Hardware.SerialPort.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.IO.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleSystem.IO.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Hardware.PWM.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Hardware.OneWire.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2leSecretLabs.NETMF.Diagnostics.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2leSecretLabs.NETMF.Hardware.Netduino.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2leSecretLabs.NETMF.Hardware.NetduinoPlus.dll', Symbols loaded.The program '[1] Micro Framework application: Managed' has exited with code 0 (0x0).

If you need any other information please ask.

Erik  



#7 OZ8ET

OZ8ET

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts
  • LocationHundested, Denmark

Posted 24 June 2013 - 11:02 AM

Additional Info:

Using MFDeploy->Plug-in->Debug->Show Device Info, I get different infor for the two boards:

The good board says:

AuAutoNegotiate completeDeviceInfo:  HAL build info: 4.2.0.0, Netduino Plus (v4.2.0.1) by Secret Labs LLC [CW2 mod]  OEM Product codes (vendor, model, SKU): 34, 177, 4097  Serial Numbers (module, system):    00000000000000000000000000000000    0000000000000000  Solution Build Info: 4.2.0.0, Netduino Plus (v4.2.0.1) by Secret Labs LLC [CW2 mod]  AppDomains:    default, id=1  Assemblies:    mscorlib,4.2.0.0    Microsoft.SPOT.Native,4.2.0.0    Microsoft.SPOT.Hardware,4.2.0.0    Microsoft.SPOT.Net,4.2.0.0    System,4.2.0.0    Microsoft.SPOT.Hardware.SerialPort,4.2.0.0    Microsoft.SPOT.IO,4.2.0.0    System.IO,4.2.0.0    Microsoft.SPOT.Hardware.PWM,4.2.0.1    Microsoft.SPOT.Hardware.OneWire,4.2.0.0    SecretLabs.NETMF.Diagnostics,4.2.0.0    Microsoft.SPOT.Graphics,4.2.0.0    Easyweb7,1.2013.624.1057    SecretLabs.NETMF.Hardware.Netduino,4.2.1.0    SecretLabs.NETMF.Hardware.NetduinoPlus,4.2.2.0

The bad board says:

AuAutoNegotiate completeDeviceInfo:  HAL build info: 4.2.0.0, Netduino Plus (v4.2.0.1) by Secret Labs LLC [CW2 mod]  OEM Product codes (vendor, model, SKU): 34, 177, 4097  Serial Numbers (module, system):    00000000000000000000000000000000    0000000000000000  Solution Build Info: 4.2.0.0, Netduino Plus (v4.2.0.1) by Secret Labs LLC [CW2 mod]  AppDomains:    default, id=1  Assemblies:    mscorlib,4.2.0.0    Microsoft.SPOT.Native,4.2.0.0    Microsoft.SPOT.Hardware,4.2.0.0    Microsoft.SPOT.Net,4.2.0.0    System,4.2.0.0    Microsoft.SPOT.Hardware.SerialPort,4.2.0.0    Microsoft.SPOT.IO,4.2.0.0    System.IO,4.2.0.0    Microsoft.SPOT.Hardware.PWM,4.2.0.1    Microsoft.SPOT.Hardware.OneWire,4.2.0.0    SecretLabs.NETMF.Diagnostics,4.2.0.0    Microsoft.SPOT.Graphics,4.2.0.0

The Secretlab assemblies does has not been loaded??

 

Another diff.:

When pressing hte Erase button in MFDeploy, the good board shows both "Deployment" and "File System". The bad board only shows "Deployment".

 

Erik






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.