Netduino Plus 2 Firmware v4.2.2 (update 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

Netduino Plus 2 Firmware v4.2.2 (update 2)


  • Please log in to reply
115 replies to this topic

#1 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 07 February 2013 - 06:07 PM

Version: 4.2.2 Update 2 (version 4.2.2.2)

This firmware requires use of the .NET Micro Framework v4.2 SDK (QFE2) or newer and .Netduino 4.2 SDK or newer.

With this firmware, you will have the following resources available for your code:
384KB Flash
100KB+ RAM

This firmware includes the following updates:
1. .NET MF 4.2 QFE2 bugfixes

This firmware also includes the previous updates:
1. Bug fix: SPI clock 'idle high' setting now supported
2. Netduino Plus 1 projects can be upgraded without changing HardwareProvider
3. Now compatible with legacy SecretLabs AnalogInput and PWM classes
4. Bug fix: SPI chip select timing corrected
5. Bug fix: PWM frequency corrected
6. New: more reliable rebooting during deployment
7. Static IP now works (in addition to DHCP default)
8. MAC Addresses are now loaded by TinyCLR
9. Additional I2C bug fix--pins now forced into proper configuration

To find the current version of your Netduino firmware:
1. Go to the Start Menu > Programs > Microsoft .NET Micro Framework 4.2 > Tools
2. Run MFDeploy.exe. Be careful to run MFDeploy.exe and not MFDeploy.exe.config (as file extensions are hidden by default)
3. Plug your Netduino into your PC using a Micro USB cable.
4. In the Device section at top, select USB instead of Serial. Your Netduino should appear in the drop-down; if not, select it.
5. Select the Target menu, Device Capabilities option.
6. In the output box, find the "SolutionReleaseInfo.solutionVersion" value. This is your firmware version.

To flash this firmware:
1. Detach your Netduino
2. Press and hold your Netduino's pushbutton while plugging it in via USB; this will put it in bootloader mode.
3. Erase the firmware on your Netduino using the STDFU Tester v3.0.1 application
> a. Select the "Protocol" tab
> b. Press the "Create from Map" button
> c. Select the "Erase" radio button option
> d. Press the "Go" button
> e. Wait for erase process to complete
4. Flash the attached .DFU file using the ST DfuSe Demonstrator v3.0.2 application (included with STDFU Tester)
> a. Locate the "Upgrade or Verify Action" pane (bottom-right pane)
> b. Press "Choose..." and select the attached DFU file
> c. Check the "Verify after download" option
> d. Press "Upgrade". It will take a few minutes to update your Netduino.
> e. Detach and reattach your Netduino (power cycle) or press "Leave DFU mode"

After flashing, to set your network settings using MFDeploy:
1. Select the Target > Configuration > Networking menu. Re-enter your IP address settings and MAC address.

Enjoy, and please let us know if you run into any troubles.

Chris

Attached Files



#2 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 07 February 2013 - 07:02 PM

Hey Chris...can you publish the BIN and HEX files?  I'd like to try a black box upgrade without having to open the unit and disassemble the shield to get to the button and see if it works.



#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 07 February 2013 - 07:09 PM

Hey Chris...can you publish the BIN and HEX files?

Sure, here you go! Chris

Attached Files



#4 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 07 February 2013 - 07:26 PM

Chris... You da Man!... I'll let you know how it goes. :D



#5 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 07 February 2013 - 07:56 PM

Ok, using the HEX and BIN worked like a champ.  My program basically used the "Erase Firmware" from MFDeploy, then Uploaded the new HEX and BIN files, then verified the firmware version was different than the previous version.  Finally it sets the MAC address (as this gets erased) and reboots.  Everything comes up fine and it's showing version 4.2.2.2 and the Pandora's Box version 2.95 software was still on there and didn't need to be erased as it doesn't affect those sectors.

 

All in all, the process too about 2 minutes.  This is a great way to allow end users of my product to get firmware and software upgrades alike.



#6 ajcg1973

ajcg1973

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts

Posted 08 February 2013 - 10:59 PM

I'm not sure what changed in this firmware related to Analog Input but for reading a LM34DZ temp sensor off of AN0, I used to see swings in my readings as large as 8 units but with this release that variance has dropped to 4.  Not bad for a simple firmware upgrade.



#7 Dave M.

Dave M.

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 10 February 2013 - 02:38 PM

I could be wrong, but this update seems to have broken I2C.  When my SDA/SCL lines were inactive under 4.1.1 while my program was running (verified with my logic analyzer), I found the I2C firmware fix update and loaded it.  Once I did that, my I2C bus started to work.  But in the process of debugging a STDFU app crash, I found out from another member about firmware 4.2.2, so I loaded it.  And now my I2C bus doesn't work again.  Has anyone else out there noticed this?  I'm going to downgrade the firmware again and will let you know what happens.



#8 Dave M.

Dave M.

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 10 February 2013 - 03:01 PM

I've confirmed by going back and forth between 4.2.1.1 and 4.2.2.2 that the latter update causes I2C to not work again.



#9 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 10 February 2013 - 04:19 PM

I've upgraded 3 boards to 4.2.2.2 which each have five I2C devices attached.  They all work fine.



#10 Dave M.

Dave M.

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 10 February 2013 - 07:30 PM

Thanks, Dave.  Can you suggest other ways for me to determine what's going on?  What I am seeing is that, running the same project, firmware 4.2.1.1 works, but when I run 4.2.2.2, the SDA and SCL lines stay high.  Each time I reprogram, I follow the instructions and disconnect / reconnect the hardware.  The only thing odd in the entire process is that firmware upload verification crashes the ST application.



#11 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 12 February 2013 - 07:54 PM

I'm noticing an issue only after upgrading to this new firmware version.  My MAC Address is resetting everytime the netduino is rebooted.  When I try to set it using MFDeploy I get an error saying "Memory: OUTOFMEMORY!! 8216".  Up until now I haven't encountered this issue.  Has anyone else encountered such an issue?



#12 ryan_sorensen

ryan_sorensen

    New Member

  • Members
  • Pip
  • 4 posts

Posted 14 February 2013 - 11:22 PM

Thanks for this update. It seems to have resolved a few issues for me. I am using I2C to talk to PCA9622DR Led drivers, and my Netduino Plus 2 with stock firmware could not establish any I2C communications at all. After updating to 4.2.2.2, these LED drivers are working properly. 

 

Has any progress been made on remapping the new I2C pins over to the old analog 4&5 pins? I have a number of shields made already and it would be great if I could get them to work on NDP1 and NDP2. 

 

Thanks!



#13 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 February 2013 - 01:37 AM

The 4.2.2.2 firmware is the 4.2.2.1 firmware...with the bug fixes from 4.2 QFE2 checked in. If you are experiencing specific issues with 4.2.2.2, please post a quick repro which exhibits the issue. We'll be happy to run the repro here and, upon seeing the issue, debug into QFE2 and figure out what's going on. Chris

#14 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 February 2013 - 01:37 AM

ryan_sorensen--we're working on a fast software I2C and special I2C Configuration class for A4/A5. Nothing official quite yet. In the meantime connecting wires between SDA/SCA and A4/A5 should make I2C work for you. Chris

#15 bsilvereagle

bsilvereagle

    Member

  • Members
  • PipPip
  • 11 posts

Posted 19 February 2013 - 07:34 PM

ST updated their website - all the links fro STDFU Test links are broken and I couldn't find good ones. 



#16 yogotie

yogotie

    Member

  • Members
  • PipPip
  • 16 posts

Posted 19 February 2013 - 09:39 PM

http://www.st.com/we...SS1533/PF257916

 

STSW-STM32080



#17 bsilvereagle

bsilvereagle

    Member

  • Members
  • PipPip
  • 11 posts

Posted 20 February 2013 - 03:09 AM

Thank you yogotie.



#18 jleitheiser@gmail.com

jleitheiser@gmail.com

    New Member

  • Members
  • Pip
  • 1 posts

Posted 20 February 2013 - 07:01 PM

HI,

I have installed a few programs onto a netduino plus and now I have moved to a netduino plus 2 for more memory.

 

I have loaded my original code and debugged it a couple times, but now I can't get a response. it does not appear that the PC usb is recognizing the Netduino plus 2 is connected, so I do not get the option to select a device in the

STDFU Tester application. When I connect the netduino to the PC with the reset button pushed, It is ON (pwr LED) and the blue LED stays on....when I connect it without the reset button pushed, The blue LED start in the on state and changes to the óff'state. I assume this means that I am successfully entering the bootloader and that the unit is not entirely dead. How Do I get it to accept a download and/or accept an update of the firmware?

 

Thank you,

Jeff



#19 Martijn

Martijn

    Member

  • Members
  • PipPip
  • 13 posts

Posted 20 February 2013 - 08:38 PM

Cool update! Any ETA on working UDP multicast? I've got multiple device lying around gathering dust and a working UPnP implementation on GHI G120HDR...



#20 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 20 February 2013 - 09:14 PM

Hi Jeff,

I have installed a few programs onto a netduino plus and now I have moved to a netduino plus 2 for more memory.   I have loaded my original code and debugged it a couple times, but now I can't get a response.

Welcome to gen2! The extra memory enables so many new projects. Let's get you up and running. It sounds like something might be locking out the debugger. There are a few ways to fix this but the easiest is to erase and reflash the firmware on your board. Check out the instructions in the first post on this thread. They should get you back into a factory-reset state. Chris




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.