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

#41 Jon Henry

Jon Henry

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 25 March 2013 - 10:50 PM

So, I tried again before sending it back. I flashed to 4.3, didnt work. Flashed back to 4.2.2 and still doesnt work.

DfuSe demonstrator says the 4.2.2.dfu firmware is onboard, confirmed with MFDeploy.

 

Heres the problem.

I disconnect and reconnect the cable and try writing my program to the N+2. Correct framework and target device selected. NetduinoPlus2_Netduino is showing. Get an error, unable to communicate with device USB:Netduino. Disconnecting and reconnecting doesnt work.

I have a N1 which works perfectly, same program runs on it solid.

After trying to write from VS2012, I go back to MFDeploy, NetduinoPlus2_Netduino shows up but when i go Target>Device Capabilities I just get a Not Supported in the memo box.

 

Any insight?



#42 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 30 March 2013 - 06:53 PM

SolutionReleaseInfo.solutionVendorInfo: Netduino 2 (v4.2.2.2) by Secret Labs LLC   Now MFDeploy shows no MAC address and DHCP is disabled.  When I try to change the settings I get an "Unable to erase configuration sector memory".

I'm sure you already figured this out, but it looks like you flashed your Netduino Plus 2 (with Ethernet) with the Netduino 2 (non-Ethernet) firmware. Chris

#43 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 30 March 2013 - 06:54 PM

Hi Rob,

In short..installed MF 4.3 on a ND+2 using VS2012..full of bugs...try to reinstall MF4.2 by erasing firmware via the 3V3 method.

I think you're trying to follow the Netduino gen1 flashing instructions--on a Netduino gen2 board. Take a look at the latest firmware for your board (Netduino Plus 2) and follow the instructions that are there...you should be using ST DFUSE instead of Atmel SAM-BA. Chris

#44 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 30 March 2013 - 06:57 PM

Any insight?

Hi Jon, In Visual Studio, try changing the deployment transport from USB to Serial and back to USB (project properties > .NET Micro Framework tab). Make sure that MFDeploy isn't open and connected to your board. Then save your project and redeploy. If that doesn't work, please give us a bit more info about what you're seeing and we'll try to help diagnose it with you. Chris

#45 typhooneight

typhooneight

    New Member

  • Members
  • Pip
  • 1 posts

Posted 04 April 2013 - 02:34 PM

I would like to follow your instructions however I cannot find any .dfu file anywhere. Ple3ase tell me where it is located?



#46 bogdan

bogdan

    New Member

  • Members
  • Pip
  • 2 posts

Posted 10 April 2013 - 08:25 AM

Hey Chris

 

I have a problem with my Netduino Plus 2. I flashed the firmware and set the mac address, exactly as you mentioned in the first post. But when I deploy an application from Visual Studio to the device, it just simply does nothing. I deployed the BlinkingLed example, nothing complicated.

Visual Studio doesn't seem to have a problem, because because it tells me that the deploy was successful.

 

I found in another post of yours, a way to erase my netduino app manually. The device responds when i ping it, but when i put it into pre-boot, no device is found, and i cannot erase it.

 

Any tips?

 

Thank you



#47 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 11 April 2013 - 02:43 AM

Hi bogdan, Are you running inside a virtual machine? What does Visual Studio say in the output/debug window, exactly? Chris

#48 bogdan

bogdan

    New Member

  • Members
  • Pip
  • 2 posts

Posted 11 April 2013 - 06:54 AM

Hello again.

 

In OutputAfterDebug.txt, is the message in the Output window that shows, after I press F5 (Start Debugging)

In OutputAfterDeploy.txt is the message in the Output window that shows, after I press right-click on the project name, and click "Deploy"

 

Is there an incompatibility with the netduino firmware and the .net micro framework? I can't seem to figure this out

 

Thanks a lot !

 

Later edit: No, I am not running inside a virtual machine

 

Attached File  OutputAfterDebug.txt   4.02KB   10 downloadsAttached File  OutputAfterDeploy.txt   142bytes   6 downloads



#49 pcamargo

pcamargo

    New Member

  • Members
  • Pip
  • 4 posts

Posted 24 April 2013 - 08:19 PM

Hello Chris

 

How can I report a bug?

 

we have an application that uses uarts to connect to a TTL camera and it works perfect until we connect a ethernet cable to the board. Once we connect the ethernet cable the data received is incomplete (for example we expect 512 bytes and we only receive 500 or 505, it is random)

 

Againt if we disconnect the ethernet cable the serial data receieved is ALWAYS complete and the application works perfect.

 

In our test we are not even using the sockets library.

 

We believe there is a bug that causes the ethernet connection to mess up the uart transmissions.

 

Thank you

 

Pedro



#50 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 24 April 2013 - 10:16 PM

Hi bogdan,

Is there an incompatibility with the netduino firmware and the .net micro framework? I can't seem to figure this out

That is a really odd issue. It says that it is deploying your app. If you press Pause in Visual Studio, does Visual Studio stop on your current line of code? What happens if you set a breakpoint on the first line of your Main function and then run your app? Do you have any other machines to try this on? If it's a bug in Visual Studio...we'll want to get this forwarded to the VS team. Chris

#51 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 24 April 2013 - 10:18 PM

Hi Pedro,

we have an application that uses uarts to connect to a TTL camera and it works perfect until we connect a ethernet cable to the board. Once we connect the ethernet cable the data received is incomplete (for example we expect 512 bytes and we only receive 500 or 505, it is random)

When you read the serial data, what is the reading of SerialData.BytesToRead? We may be close to the maximum serial port receive buffer length here as well. Chris

#52 Neophyte

Neophyte

    New Member

  • Members
  • Pip
  • 7 posts

Posted 29 April 2013 - 08:06 AM

Hi there,

 

This is my first post here since only getting my hands on a client's Netduino Plus 2 last Thursday...it is on this latest firmware.

 

Two questions I have regarding this release:

1. Does it fully support the Microsoft.SPOT.Hardware.Watchdog functionality?

2. Have you implemented writing to flash memory? i.e. for writing of app settings...



#53 KevinR

KevinR

    New Member

  • Members
  • Pip
  • 9 posts

Posted 01 May 2013 - 01:02 PM

[font="arial, helvetica, sans-serif;"]I've just seen the bits buried in this thread about [/font]

 

[font="arial, helvetica, sans-serif;"][13:54:51 01/05/2013] Memory: OUTOFMEMORY!! 7692[/font]

 

[font="arial, helvetica, sans-serif;"]type errors when saving the network configuration in MFDeploy. We have a customer who is consistently having problems with this, and also with the board loosing it's MAC address and firmware frequently when deploying applications. I have been unable to reproduce his problems in our office. This was all on 4.2.1, so I upgraded my board to 4.2.2 to see if there was any improvement and now I've getting the same problem here. [/font]

 

[font="arial, helvetica, sans-serif;"]Anybody have any definitive answers? does setting the MAC address in code at bootup work reliably?[/font]

 

[font="arial, helvetica, sans-serif;"]thanks for your help[/font]



#54 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 01 May 2013 - 04:24 PM

Hi Neophyte,

1. Does it fully support the Microsoft.SPOT.Hardware.Watchdog functionality?

Netduino Plus 2 doesn't have software watchdog support, although we're looking at adding it in the future.

2. Have you implemented writing to flash memory? i.e. for writing of app settings...

There's no built-in feature in NETMF for writing settings to flash. Do you have a MicroSD card? Most users put their settings (as well as rich application data) onto the SD card. BTW, it would be possible to add a bit of storage in flash using native code...if you want to hack into the firmware. But the simplest solution is to use the SD card. Chris

#55 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 01 May 2013 - 04:27 PM

Hi KevinR,

[13:54:51 01/05/2013] Memory: OUTOFMEMORY!! 7692 type errors when saving the network configuration in MFDeploy.

Is this during application startup? If you call Debug.GC(true), how much RAM is left? Unless you have a lot of class-level variables, you should have plenty of RAM during startup.

We have a customer who is consistently having problems with this, and also with the board loosing it's MAC address and firmware frequently when deploying applications. I have been unable to reproduce his problems in our office. This was all on 4.2.1, so I upgraded my board to 4.2.2 to see if there was any improvement and now I've getting the same problem here.

Does this happen with any application, or only when you write the MAC address repeatedly? It is possible for NETMF to run out of flash in the config sector if you repeatedly write the MAC address. Are you checking it first, before changing it? Chris

#56 Neophyte

Neophyte

    New Member

  • Members
  • Pip
  • 7 posts

Posted 01 May 2013 - 07:30 PM

Hi Neophyte,Netduino Plus 2 doesn't have software watchdog support, although we're looking at adding it in the future.There's no built-in feature in NETMF for writing settings to flash. Do you have a MicroSD card? Most users put their settings (as well as rich application data) onto the SD card. BTW, it would be possible to add a bit of storage in flash using native code...if you want to hack into the firmware. But the simplest solution is to use the SD card. Chris

 

Thanks Chris. Yes, I did start by putting the settings on the SD card which is not much of a train smash.



#57 KevinR

KevinR

    New Member

  • Members
  • Pip
  • 9 posts

Posted 02 May 2013 - 03:03 PM

Chris, thanks for the prompt reply.

 

The customer finds that nearly every time he deploys a .hex file the MAC address is erased (set to the default 00-04-a3-00-00-00 ) and he frequently gets the error when setting the MAC address after reloading the firmware. I have since discovered he had a slightly old version of the Netduino SDK, and has upgraded. I'm waiting to hear if that has solved it for him. he is on 4.2.1 firmware.

 

I see the error here on 4.2.2 if I save the MAC address with our application loaded (it's pretty big), but not if I set it before deploying. I do not find that the MAC address is changed on deploy.

 

Therefore it seems like the problem is at least avoidable.



#58 gregor

gregor

    New Member

  • Members
  • Pip
  • 3 posts

Posted 12 May 2013 - 08:51 PM

Hi there

I´ve a programm which measure the pluses from a radio control. 

 

        static void inputPort_OnInterrupt(uint data1, uint data2, DateTime time)
        {        
            if (data2 == 1)
            {
                leadingedge = time.Ticks;
            }
            else
            {
                currentPulseWidth = (time.Ticks - leadingedge) / 100 - 100;
               
            }
        }

With a netduino 1 it works and with the netduino 2 plus not !

Error:

Failed allocation for 5 blocks, 60 bytes

Any ideas



#59 z3n0n

z3n0n

    New Member

  • Members
  • Pip
  • 1 posts

Posted 14 May 2013 - 03:13 AM

I'm just getting to know Netduino and VC# 2010 Express. Where should the NetduinoPlus2_firmware 4.2.2.2 file be saved to? The Secret Labs Driver file? Also, should the Getting Started with Netduino C# code work as is in a NetduinoPlus2 project? I've been getting an "overloaded method" error message in the editor on the AnalogInput line. It's useing SecretLabs.NETMF.Hardware and SecretLabs.NETMF.Hardware.Netduino.



#60 mtstarr

mtstarr

    New Member

  • Members
  • Pip
  • 2 posts

Posted 21 May 2013 - 03:12 PM

I still cannot get I2C to work, I did reflash with 4.2.2, it seemed to complete okay. I am running a "demo program" that should at least talk to the device.   Here is the output from .Net deployment tool, any ideas what I may have missed in the upgrades? The symptoms look similar but I do not have a scope so I cannot tell. I am plugged into SCA and SCL rather than A4 and 5. The device is a  MPU9150 at address 0x83

 

 

HalSystemInfo.halVersion: 4.2.0.0

HalSystemInfo.halVendorInfo: Netduino Plus 2 (v4.2.2.2) by Secret Labs LLC

HalSystemInfo.oemCode: 34

HalSystemInfo.modelCode: 177

HalSystemInfo.skuCode: 4102

HalSystemInfo.moduleSerialNumber: 00000000000000000000000000000000

HalSystemInfo.systemSerialNumber: 0000000000000000

ClrInfo.clrVersion: 4.2.0.0

ClrInfo.clrVendorInfo: Netduino Plus 2 (v4.2.2.2) by Secret Labs LLC

ClrInfo.targetFrameworkVersion: 4.2.0.0

SolutionReleaseInfo.solutionVersion: 4.2.2.2

SolutionReleaseInfo.solutionVendorInfo: Netduino Plus 2 (v4.2.2.2) by Secret Labs LLC

SoftwareVersion.BuildDate: Jan 26 2013

SoftwareVersion.CompilerVersion: 410894

FloatingPoint: True

SourceLevelDebugging: True

ThreadCreateEx: True

LCD.Width: 0

LCD.Height: 0

LCD.BitsPerPixel: 0

AppDomains: True

ExceptionFilters: True

IncrementalDeployment: True

SoftReboot: False

Profiling: False

ProfilingAllocations: False

ProfilingCalls: False

IsUnknown: False

 

Thanks again for your time.






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.