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

Netduino doen't run or debug

Netduino Debug

Best Answer Chris Walker, 11 January 2013 - 04:35 PM

Hi bramVD,

  Oke, did the Reboot CLR and Ping, this is the result:

Assembly: MicroLiquidCrystal (1.1.0.0)Attaching deployed file. needs assembly 'Microsoft.SPOT.Native' (4.1.2821.0)   Assembly: SecretLabs.NETMF.Hardware.Netduino (4.2.1.0)
It looks like you're using a library which requires .NET MF 4.1. But your board has .NET MF 4.2 on it. With the desktop .NET framework, you can include .NET 3.0 assemblies in a .NET 4.0 application. But with .NET Micro Framework, the assemblies all need to be compiled for the same version of .NET Micro Framework. This is one of the reasons why .NET code can fit on these tiny micros. The NETMF runtime is stopping your program from running, due to the version mismatch. Otherwise you'd get unexpected and invalid operations. Do you have a copy of the library built for .NET MF 4.2? Chris Go to the full post


  • Please log in to reply
5 replies to this topic

#1 bramVD

bramVD

    Member

  • Members
  • PipPip
  • 16 posts
  • LocationDen Bosch, NL

Posted 11 January 2013 - 11:05 AM

Hallo

 

Just last week I build and tested a PWM RGB project on my Netduino, and yesterday I wanted to do something else so I made a new program and was ready for testing.

 

Hooked up my Netduino and deployed the program, Without errors.

But nothing happened!!

 

Tried a simple program (blinky) for testing. put a breakpoint in the program, and ran it again.

Nothing, not even a break.

 

After a second look I figured out that the program did not even start.

 

I flashed the firmware on the Netduino, tried it again, nothing.

 

 

Has Anyone encountered this problem before?

 

 

 

Bram


Posted Image

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 11 January 2013 - 12:08 PM

Hi Bram, Can you try running MFDeploy really quick? Then connect to your device (using F5) and select "Plug-in > Debug > Reboot CLR" from the menu. If you don't see any data after a few seconds, press Ping. This should print out the boot-up info from your Netduino...including which app is running and if it encountered an exception. If you can copy that info here, we can help diagnose your scenario. It's possible that an app on your Netduino is locking out the debugger. BTW, you can always erase and reflash your Netduino--which will put it back into a known good state. We've built in multiple layers of backup for you, in case you get into trouble. Chris

#3 bramVD

bramVD

    Member

  • Members
  • PipPip
  • 16 posts
  • LocationDen Bosch, NL

Posted 11 January 2013 - 04:31 PM

Oke, did the Reboot CLR and Ping, this is the result:

 

Configuration version != versionAssembly: MicroLiquidCrystal (1.1.0.0)Found debugger!Create TS. Loading start at 142afc, end 1583e0   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.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) needs assembly 'mscorlib' (4.1.2821.0)   Assembly: SecretLabs.NETMF.Diagnostics (4.2.0.0)Assembly: MicroLiquidCrystal (1.1.0.0)   Assembly: SecretLabs.NETMF.IO (4.2.0.0) needs assembly 'Microsoft.SPOT.Hardware' (4.1.2821.0)Loading Deployment Assemblies.Assembly: MicroLiquidCrystal (1.1.0.0)Attaching deployed file. needs assembly 'Microsoft.SPOT.Native' (4.1.2821.0)   Assembly: SecretLabs.NETMF.Hardware.Netduino (4.2.1.0)Error: a3000000Attaching deployed file.Waiting for debug commands...   Assembly: LCD_Buttons (1.0.0.0)Attaching deployed file.   Assembly: MicroLiquidCrystal (1.1.0.0)Attaching deployed file.   Assembly: SecretLabs.NETMF.Hardware (4.2.0.0)Resolving.Pinging... TinyCLRPinging... TinyCLR

Posted Image

#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 11 January 2013 - 04:35 PM   Best Answer

Hi bramVD,

  Oke, did the Reboot CLR and Ping, this is the result:

Assembly: MicroLiquidCrystal (1.1.0.0)Attaching deployed file. needs assembly 'Microsoft.SPOT.Native' (4.1.2821.0)   Assembly: SecretLabs.NETMF.Hardware.Netduino (4.2.1.0)
It looks like you're using a library which requires .NET MF 4.1. But your board has .NET MF 4.2 on it. With the desktop .NET framework, you can include .NET 3.0 assemblies in a .NET 4.0 application. But with .NET Micro Framework, the assemblies all need to be compiled for the same version of .NET Micro Framework. This is one of the reasons why .NET code can fit on these tiny micros. The NETMF runtime is stopping your program from running, due to the version mismatch. Otherwise you'd get unexpected and invalid operations. Do you have a copy of the library built for .NET MF 4.2? Chris

#5 bramVD

bramVD

    Member

  • Members
  • PipPip
  • 16 posts
  • LocationDen Bosch, NL

Posted 11 January 2013 - 04:46 PM

AH, lol. didn't know that.
always thought is was backward compatible.
 
its posible to go back to the 4.1 framework  if your on the 4.2?
 
 
no longer necessary.. fixed it.
 
i searched for the MicroLiquidCrystal  source code, and found it.
used the 2 classes necessary for the LCD. and imported those into the project.
 
and it works fine now :)

Edited by bramVD, 11 January 2013 - 06:31 PM.

Posted Image

#6 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 11 January 2013 - 07:34 PM

Hi bramVD, Yes, you can always downgrade your firmware. You have full control over your Netduino, including completely erasing the microcontroller and flashing it with any NETMF or non-NETMF firmware you'd like :) There is no NETMF 4.1 firmware for Netduino Plus 2 though...the first version of NETMF which included support for the new STM32 Cortex-M3/M4 micros was NETMF 4.2. Chirs




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.