Netduino Firmware v4.2.0 RC5 (Netduino + Netduino Plus) - Page 6 - Beta Firmware and Drivers - 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 Firmware v4.2.0 RC5 (Netduino + Netduino Plus)


  • Please log in to reply
138 replies to this topic

#101 <Jeremy>

<Jeremy>

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts
  • LocationNorthern Ireland

Posted 21 July 2012 - 06:26 PM

Thanks Chris, that's great. Jeremy

#102 Novice Alex

Novice Alex

    Advanced Member

  • Members
  • PipPipPip
  • 59 posts

Posted 22 July 2012 - 03:14 AM

Hi Novice Alex,


You can safely use the regular Netduino firmware on your Netduino Plus.

To do this you will want to: erase your board by applying 3V3 power to the gold erase pad underneath D0; flash TinyBooter using Atmel SAM-BA; flash the NETMF runtime using MFDeploy.

Full instructions are available on the Wiki.

Once you flash the regular Netduino firmware on your Netduino Plus, you can use the SecretLabs StorageDevice class to ".MountSD" and re-enable SD card access.

Chris


Hi Chris,

Just like to double confirm. I have successfully update the Netduino firmware onto my Neduino+. So when I start a project, do I set it as Netduino/Netduino+ project? Also in my case, do you have any sample code on mounting the SD card.
Also by using Netduino firmware on access SD card, will i be giving up any digital pins access?

Separately, do I need to mount & un-mount the SD card everything I use? Or only for once during system power up?

Thanks in advance.

#103 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 22 July 2012 - 05:18 AM

Hi Novice Alex,

Just like to double confirm. I have successfully update the Netduino firmware onto my Neduino+. So when I start a project, do I set it as Netduino/Netduino+ project? Also in my case, do you have any sample code on mounting the SD card.
Also by using Netduino firmware on access SD card, will i be giving up any digital pins access?

Separately, do I need to mount & un-mount the SD card everything I use? Or only for once during system power up?

You should create a project as a "Netduino" project when targeting the "regular" Netduino firmware.

When using the MicroSD card built into Netduino Plus, you will not give up any pins. The digital/analog pins are all separate and distinct microcontroller pins.

Here's some code for mounting the SD card (change the SPI to SPI2 and the pin # to the pin used for MicroSD on Netduino Plus):
StorageDevice.MountSD("SD", SPI_Devices.SPI1, Pins.GPIO_PIN_D10);

If you add the fourth parameter (chip select line) then you'll even get auto-mount/dismount of the SD card.

Chris

#104 elettrozero

elettrozero

    Advanced Member

  • Members
  • PipPipPip
  • 58 posts

Posted 23 July 2012 - 12:11 PM

Let's play "Spot the dumbass" !

Which genius didn't bother to check whether any other devices on his network had 192.168.0.100? Hmmmmm, that would be me.

On the bright side, now we all know that when DNS requests work for about 70 sec and then fail, it's probably an address collision.

Having resolved the address collision everything is now hunky dory.

On another note, Chris, you are a marvel, another 8K makes an unbelievable difference to my little logger.


LOL happened to me on sunday at my father house. So, you're not the only one ;)

#105 Valkyrie-MT

Valkyrie-MT

    Advanced Member

  • Members
  • PipPipPip
  • 315 posts
  • LocationIndiana, USA

Posted 23 July 2012 - 05:27 PM

...now we're just waiting for the next beta (which is waiting on .NET MF 4.2 QFE2).


4.2 QFE2? Where did that come from? I just went on the on the netmf.codeplex.com site and I see a reference to a planned QFE2 release with WinUSB support. What else is in this release? More fixes?

-Valkyrie-MT

#106 nakchak

nakchak

    Advanced Member

  • Members
  • PipPipPip
  • 404 posts
  • LocationBristol, UK

Posted 23 July 2012 - 06:09 PM

4.2 QFE2? Where did that come from? I just went on the on the netmf.codeplex.com site and I see a reference to a planned QFE2 release with WinUSB support. What else is in this release? More fixes?

-Valkyrie-MT

I believe that is the crux of the QFE as the usb driver issue seems to effect most/all boards using 4.2

Nak

#107 fozzy

fozzy

    New Member

  • Members
  • Pip
  • 2 posts

Posted 24 July 2012 - 01:48 AM

This is my first post and just purchased my ND+ :lol: .I updated the firmware with no issues to 4.2 RC5 and uploaded a simple led blinking program with no issues, but what I have found on my Windows XP SP3 is that now when I make a change to the program and try to upload the changes; I get an error in VS2012 saying that it could not connect. I took my ND+ to work and ran it on a Windows 7 with and the program worked just fine even making changes to the code and uploading it. I went back to my Windows XP SP3 and still was unable to connect to the ND+ with VS so I moved the firmware back to 4.1 and everything is working just find on my Windows XP machine. Making changes to the code and it uploads and runs with no problems. Does anyone have a solution for this?

#108 Cuno

Cuno

    Advanced Member

  • Members
  • PipPipPip
  • 144 posts
  • LocationZürich / Switzerland

Posted 24 July 2012 - 07:51 AM

I believe that is the crux of the QFE as the usb driver issue seems to effect most/all boards using 4.2

Yes, it also affects our Mountaineer boards.

#109 awaiK

awaiK

    Advanced Member

  • Members
  • PipPipPip
  • 90 posts

Posted 24 July 2012 - 09:28 AM

NET MF 4.2 RTM (QFE2) is released, containing a lot of interesting stuff.

#110 Cuno

Cuno

    Advanced Member

  • Members
  • PipPipPip
  • 144 posts
  • LocationZürich / Switzerland

Posted 24 July 2012 - 09:56 AM

NET MF 4.2 RTM (QFE2) is released, containing a lot of interesting stuff.

Not quite released yet, but announced and it should become available soon.

#111 nakchak

nakchak

    Advanced Member

  • Members
  • PipPipPip
  • 404 posts
  • LocationBristol, UK

Posted 24 July 2012 - 10:13 AM

Sweet, Looks like the source is available in the repo, but no packaged download yet :) Glad to see the serial port issue looks to have been fixed :D no more hair pulling associated with random blocks i hope... Fingers crossed winusb fixes the BSODs and deployment issues too :) Nak.

#112 Coyttl

Coyttl

    Advanced Member

  • Members
  • PipPipPip
  • 61 posts
  • LocationSilver Spring, MD, USA

Posted 31 July 2012 - 05:26 PM

6. Click "Browse..." and select the unzipped files from step #1 (ER_CONFIG and ER_FLASH).
7. Press "Deploy". It will take a few minutes to update your Netduino.
8. For Netduino Plus: Select the Target > Configuration > Networking menu. You will need to re-enter your IP address settings and MAC address. We will try to eliminate this step in the future.

Hey all -
New here, but I thought I'd chime in -
So far, upgrading is going fine, but on the link posted later in this thread (http://wiki.netduino...ep-by-step.ashx) it references setting the MAC address BEFORE doing the 'Deploy'. Apparently, you can't do it BEFORE, you have to do it AFTER. :) (I know, this may be basic (no pun intended) for most of you, but seeing as how updating the firmware was the *second* thing I've done with my new board, I wasn't aware of it..!)

--Mike.

#113 mohammad

mohammad

    Advanced Member

  • Members
  • PipPipPip
  • 79 posts

Posted 31 July 2012 - 10:58 PM

If you experience bugs with the .NET MF 4.2 RC5 firmware, please post about it in this thread.

Hi all,

I developed a program for Netduino Plus to work (read/write) with Micro SD 4GB.
This program worked perfect with firmware v4.1.1 betta, but after upgrading to firmware v4.2.0 RC4, I got these errors:
A first chance exception of type 'System.NotSupportedException' occurred in Microsoft.SPOT.IO.dll
A first chance exception of type 'System.NotSupportedException' occurred in System.IO.dll
System.NotSupportedException
Would you please help me solve this problem?

Special Thanks,
Mohammad

#114 Anthony Glenwright

Anthony Glenwright

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts

Posted 31 July 2012 - 11:06 PM

I tried to set up a multicast test for RC5 but I get an error when trying to join a multicast group. The context for my test is to listen for SSDP search broadcasts. As .NET MF doesn't have a multicastOptions class, I am *guessing* that we need to send a ip_mreq structure [ref: http://msdn.microsof...s738695(v=vs.85)] Is this still unsupported, or am I doing something wrong? Here's the code: Dim localaddress As IPAddress = IPAddress.Parse(Address) Dim ssdp_multicastaddress As IPAddress = IPAddress.Parse("239.255.255.250") _listenSocket = New Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp) Dim discoveryAddr As Byte() = ssdp_multicastaddress.GetAddressBytes() Dim ipAddr As Byte() = localaddress.GetAddressBytes() Dim multicastOpt As Byte() = New Byte() {discoveryAddr(0), discoveryAddr(1), discoveryAddr(2), discoveryAddr(3), 0, 0, 0, 0} ', ipAddr(0), ipAddr(1), ipAddr(2), ipAddr(3)} _listenSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, 1) _listenSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, True) _listenSocket.Bind(New IPEndPoint(IPAddress.Any, 1900)) ' This line fails on Netduino 4.2 RC5 _listenSocket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, multicastOpt)

#115 Arbiter

Arbiter

    Advanced Member

  • Members
  • PipPipPip
  • 132 posts
  • LocationBrisbane, Australia

Posted 02 August 2012 - 10:01 AM

Hi all,

I developed a program for Netduino Plus to work (read/write) with Micro SD 4GB.
This program worked perfect with firmware v4.1.1 betta, but after upgrading to firmware v4.2.0 RC4, I got these errors:



4.2 does not YET support 4G uSD

I have been politely pestering Chris for a little while now but he's a bit busy. Your code is fine, you need only be patient. In the meantime, you can develop and test using a 2G uSD card.
One day, all this too shall parse.

#116 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 04 August 2012 - 03:51 AM

Hi Anthony,

' This line fails on Netduino 4.2 RC5
_listenSocket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, multicastOpt)

Was this working for you in .NET MF 4.1?

The big update to networking is slated for NETMF 4.3, which should be entering beta soon. There are a large number of networking-related enhancements and a few bugfixes coming with that update.

Chris

#117 AxelG

AxelG

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts

Posted 04 August 2012 - 07:08 PM

I finally got around to upgrading to 4.2 to enable the SD card on my ND. Worked great. Took a bit of "translation" for the pinouts as it seems that nobody calls SPI pins the same thing. After getting that to function, I updated my code to 2.4 libraries, recompiled and now I am throwing the following error when opening up COM2: A first chance exception of type 'System.InvalidOperationException' occurred in Microsoft.SPOT.Hardware.dll A first chance exception of type 'System.InvalidOperationException' occurred in Microsoft.SPOT.Hardware.SerialPort.dll An unhandled exception of type 'System.InvalidOperationException' occurred in Microsoft.SPOT.Hardware.SerialPort.dll I change to COM1; everything is fine. I tried forcing Handshaking to be none (I am not using pins 7 or 8 for anything else, nor am I using pins 2 or 3 for anything else) Any ideas where I should look next? Runs fine on my ND+ under 4.1 (I am sure it is something obvious)

#118 Anthony Glenwright

Anthony Glenwright

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts

Posted 06 August 2012 - 12:46 AM

>> Was this working for you in .NET MF 4.1? No it didn't work in any previous version, I had read your posts about broadcast support being added to RC5, and was testing to see if RC5 had added multicast support as well. I know they aren't the same thing, but was hoping... Also was wanting to see if my code looked ok to others or if I just did something wrong.

#119 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 06 August 2012 - 03:08 AM

HI AxelG,

Any ideas where I should look next? Runs fine on my ND+ under 4.1 (I am sure it is something obvious)

Can you post a small repro app for us to look at? Generally speaking, NETMF 4.1 code should run as-is under NETMF 4.2.

Chris

#120 AxelG

AxelG

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts

Posted 06 August 2012 - 12:30 PM

HI AxelG,


Can you post a small repro app for us to look at? Generally speaking, NETMF 4.1 code should run as-is under NETMF 4.2.

Chris


I will try to later this week, but this is part of a larger program and I will need to create a smaller app to reproduce. Basically, I am defining the port, then assigning some interrupts and event handlers, and then opening the port - which is where I get this failure; but only on COM2. COM1 works fine...

I was also dealing with BSODs yesterday and just decided to update all my NDs to 4.2. That helped a lot; but still getting them on reboots.




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.