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

Firmware update


  • Please log in to reply
11 replies to this topic

#1 Wim Roeling

Wim Roeling

    Member

  • Members
  • PipPip
  • 11 posts

Posted 14 March 2012 - 09:26 PM

Today I updated my Netduino Plus to firmware 4.2.0.0 RC4. First I erased the Netduino and loaded the new bootloader with the SAM-BA 2.11 CDC tool. After that I updated the firmware with MFDeploy. All worked well, as you can see from the device info below. I also updated the MF SDK to version 4.2 and finally I deployed a tiny program to blink the onboard LED. But whatever I try: it just doesn't do anything. I can't even step through the program with the debugger. It just doesn't seem to react on anything. I happen to have two Netduino's (the other one still running version 4.1) and that one run's the same tiny program as expected. What can be wrong with the one that I updated to 4.2 ?? Can anybody help me? DeviceInfo: HAL build info: 4.2.0.0, Netduino Plus (v4.2.0.0 RC4) by Secret Labs LLC OEM Product codes (vendor, model, SKU): 255, 255, 65535 Serial Numbers (module, system): FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Solution Build Info: 4.2.0.0, Netduino Plus (v4.2.0.0 RC4) by Secret Labs LLC 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.0 Microsoft.SPOT.Hardware.Usb,4.2.0.0 SecretLabs.NETMF.Hardware,4.2.0.0 SecretLabs.NETMF.Diagnostics,4.2.0.0 NetduinoPlusApplication3,1.0.0.0 SecretLabs.NETMF.Hardware.NetduinoPlus,4.1.0.0 SecretLabs.NETMF.Hardware,4.1.0.0

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 14 March 2012 - 09:39 PM

Hi Wim,

SecretLabs.NETMF.Hardware.NetduinoPlus,4.1.0.0
SecretLabs.NETMF.Hardware,4.1.0.0

It looks like you're still deploying some 4.1 assemblies with your application. Did you change the target framework from .NET MF 4.1 to .NET MF 4.2 in the project properties?

You might want to manually replace the few assemblies in your project references which are targeting the old version. That shouldn't happen--but it appears that there's a mismatch somehow.

Did you uninstall the .NET MF 4.1 and Netduino 4.1 SDKs...and install the .NET MF 4.2 QFE1 SDK and Netduino 4.2 Beta SDK?

Chris

#3 Wim Roeling

Wim Roeling

    Member

  • Members
  • PipPip
  • 11 posts

Posted 15 March 2012 - 01:51 PM

Hi Wim,

It looks like you're still deploying some 4.1 assemblies with your application. Did you change the target framework from .NET MF 4.1 to .NET MF 4.2 in the project properties?

You might want to manually replace the few assemblies in your project references which are targeting the old version. That shouldn't happen--but it appears that there's a mismatch somehow.

Did you uninstall the .NET MF 4.1 and Netduino 4.1 SDKs...and install the .NET MF 4.2 QFE1 SDK and Netduino 4.2 Beta SDK?

Chris


I changed the target framework in the project to MF 4.2, since a warning message tells you to do so if it is configured wrongly.

I did not uninstall MF 4.1, nor Netduino 4.1 SDK, because I thought they can live next to each other.
I understand it's better to remove them first and just install 4.2 for both? Can I still switch to 4.1 for the second Netduino I own? It's not realy important, because as soon as 4.2 works I will upgrade the other board aswell.

Thnx in advance,
Wim Roeling

#4 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 15 March 2012 - 02:16 PM

I did not uninstall MF 4.1, nor Netduino 4.1 SDK, because I thought they can live next to each other.
I understand it's better to remove them first and just install 4.2 for both? Can I still switch to 4.1 for the second Netduino I own? It's not realy important, because as soon as 4.2 works I will upgrade the other board aswell.

Hi Wim,

If you remove 4.1 and install 4.2, you can still develop projects in 4.0, 4.1 and 4.2. It has downwards compatibility.

Hopefully that'll answer your question! Please let us know if you need any help.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#5 Wim Roeling

Wim Roeling

    Member

  • Members
  • PipPip
  • 11 posts

Posted 15 March 2012 - 08:08 PM

Hi Wim,

If you remove 4.1 and install 4.2, you can still develop projects in 4.0, 4.1 and 4.2. It has downwards compatibility.

Hopefully that'll answer your question! Please let us know if you need any help.

I removed 4.1 and reinstalled 4.2. The test program (blinking LED) is working properly now on the updated Netduino, but all other apps that I made (needing network support and an LCD display) fail to run.
MFDeploy device info shows the info below now. I'm worried about "SecretLabs.NETMF.IO,4.1.0.0". Still version 4.1 apparently.

DeviceInfo:
HAL build info: 4.2.0.0, Netduino Plus (v4.2.0.0 RC4) by Secret Labs LLC
OEM Product codes (vendor, model, SKU): 255, 255, 65535
Serial Numbers (module, system):
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Solution Build Info: 4.2.0.0, Netduino Plus (v4.2.0.0 RC4) by Secret Labs LLC
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.0
Microsoft.SPOT.Hardware.Usb,4.2.0.0
SecretLabs.NETMF.Hardware,4.2.0.0
SecretLabs.NETMF.Diagnostics,4.2.0.0
SecretLabs.NETMF.IO,4.1.0.0
Kobush.NETMF.Hardware.LCD,1.0.0.0
SecretLabs.NETMF.Hardware.NetduinoPlus,4.2.0.0
NetduinoPlusApplication4,1.0.0.0

#6 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 March 2012 - 08:10 PM

Hi Wim, Remove that assembly from your project references, and then add this one in instead: C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.2\SecretLabs.NETMF.IO.dll Chris

#7 Wim Roeling

Wim Roeling

    Member

  • Members
  • PipPip
  • 11 posts

Posted 15 March 2012 - 10:15 PM

Hi Wim,

Remove that assembly from your project references, and then add this one in instead:
C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.2\SecretLabs.NETMF.IO.dll

Chris

I didn't need that assembly after all, so I organized my usings and deleted it.
But still the 4.2 Netduino is refusing to work properly. Very small projects (like a blinking LED and that sort of stuff) work fine, but more complex projects all fail. Even stranger: A complex project that I almost completely stripped while leaving the unused methods in the project also fails. (Size of assemblies 16752 bytes). It doesn't even get into the first instruction in the debugger. I'm really puzzled now. The network seems to be ok (I can ping the device) but that's all the life I can see. My LCD display does nothing, etc..
My other Netduino with firmware 4.1 runs all those same projects OK.

------------------------------------------------------------------------------
FORGET ALL THE ABOVE - It's working fine now!!! I forgot to deploy a sub project to the 4.2 target framework. The compiler does not give a warning for this, like it does for the main project. Thanks for your patience anyway!

#8 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 March 2012 - 10:19 PM

Hi Wim, Very strange. There's a lot of new code in .NET MF 4.2 beta, but we're having pretty good luck around here with RC4. If you can boil down a repro case to a few dozen lines of code...I'd love to test it and help get to the root of the issue. Chris

#9 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 15 March 2012 - 10:23 PM

Wim, if it may help, do you live nearby Breda? You're from the NL right? If so, I would love to help out?
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#10 Wim Roeling

Wim Roeling

    Member

  • Members
  • PipPip
  • 11 posts

Posted 16 March 2012 - 09:05 AM

Hi Wim,

Very strange. There's a lot of new code in .NET MF 4.2 beta, but we're having pretty good luck around here with RC4.

If you can boil down a repro case to a few dozen lines of code...I'd love to test it and help get to the root of the issue.

Chris

Chris,

I goto it to work yesterday, as you can see from my previous reply. Thanks anyway!

#11 Wim Roeling

Wim Roeling

    Member

  • Members
  • PipPip
  • 11 posts

Posted 16 March 2012 - 09:06 AM

Wim, if it may help, do you live nearby Breda? You're from the NL right? If so, I would love to help out?

Yes, I am from the NL, Vlaardingen.
And as you can see I finally did a successful update to 4.2 after all.

#12 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 16 March 2012 - 09:52 AM

Yes, I am from the NL, Vlaardingen.
And as you can see I finally did a successful update to 4.2 after all.

Oh awesome, so no trip to Vlaardingen this weekend, darn. I love the harbors there ;)
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs




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.