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

Beta driver for .NET MF 4.2 RC3+


  • Please log in to reply
36 replies to this topic

#1 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 19 August 2011 - 05:36 AM

These drivers are deprecated.

.NET MF 4.2 QFE2+ now supports WinUSB drivers.

Attached Files



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 19 August 2011 - 05:43 AM

P.S.

If you'd like to compile the updated drivers yourself for debugging purposes:
  • Replace the C:\MicroFrameworkPK_v4_2\USB_Drivers\MFUSB_PortingKitSample\sys\power.cpp file with the attached version.
  • Install the latest Windows Driver Development Kit
  • Follow the compilation instructions at C:\MicroFrameworkPK_v4_2\USB_Drivers\readme.txt.
Chris

Attached Files



#3 Edward

Edward

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationLondon, UK

Posted 19 August 2011 - 10:58 AM

Got the driver loaded. Testing...

#4 Edward

Edward

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationLondon, UK

Posted 19 August 2011 - 10:41 PM

Nope, sorry, just got the same BSOD. cc'd CodePlex.

#5 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 20 August 2011 - 12:02 AM

Nope, sorry, just got the same BSOD. cc'd CodePlex.

Thanks, Edward.

#6 Edward

Edward

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationLondon, UK

Posted 20 August 2011 - 12:50 AM

Feels so like a memory/resource leak. After fresh boot deplyment is fast, responsive etc. Then after a few deploy/debug cycles deplyment starts to struggle to get the devices attention, reset button works a few times but after 6-10 deployments the bug check BSOD.

I also observe that moving to a different USB port at the unresponsive stage (before the BSOD) buys more time so it's like there's a leak per port that hits some limit (hence the reference to nt!ExAllocatePoolWithTag+0x11 in the stack trace.

HTH

#7 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 20 August 2011 - 12:59 AM

Hi Edward,

Feels so like a memory/resource leak. After fresh boot deplyment is fast, responsive etc. Then after a few deploy/debug cycles deplyment starts to struggle to get the devices attention, reset button works a few times but after 6-10 deployments the bug check BSOD.

I also observe that moving to a different USB port at the unresponsive stage (before the BSOD) buys more time so it's like there's a leak per port that hits some limit (hence the reference to nt!ExAllocatePoolWithTag+0x11 in the stack trace.

Excellent feedback. Can you be sure to add that to the bug report?

Chris

#8 Edward

Edward

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationLondon, UK

Posted 20 August 2011 - 01:08 AM

Done

#9 Omar (OZ)

Omar (OZ)

    Advanced Member

  • Members
  • PipPipPip
  • 564 posts

Posted 26 August 2011 - 09:00 PM

Still having BSOD when unplugging the netduino plus when its hanging on deployment.

#10 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 26 August 2011 - 09:38 PM

Hi Omar,

Still having BSOD when unplugging the netduino plus when its hanging on deployment.

Thanks for the feedback. Can you post an update on the official bug report?
http://netmf.codeple...m/workitem/1049

Chris

#11 Stefan

Stefan

    Moderator

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

Posted 26 August 2011 - 09:45 PM

Thanks for the feedback. Can you post an update on the official bug report?
http://netmf.codeple...m/workitem/1049

As addition to Chris' post, getting the correct information for debugging, see this post: http://forums.netdui...dpost__p__16372

And Omar, if you feel any better, I had a bsod at almost the same time. :P
"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

#12 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 26 August 2011 - 10:31 PM

I just updated the drivers in the first post of this thread. They're identical to the original drivers, but are the checked (debug) version. If you're using the beta drivers, please uninstall the current drivers. Then re-install the new drivers using the earlier procedure. To uninstall the previous beta drivers: 1. Right-click on "USB > Micro Framework MXS Reference Board" in Device Manager. 2. Select the Uninstall menu option. 3. Make sure that "delete the driver software for this device" is CHECKED. 4. Press OK. Please note that these are not Netduino-specific. For those of you creating custom ports of .NET MF 4.2 RC, this driver should work equally on any NETMF board. Chris

#13 Edward

Edward

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationLondon, UK

Posted 26 August 2011 - 11:55 PM

Are the symbols for the beta driver available? I caught a full dump but have no symbols so it's not very useful.

#14 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 27 August 2011 - 12:22 AM

Hi Edward,

Are the symbols for the beta driver available? I caught a full dump but have no symbols so it's not very useful.

The .PDB files are included with the newly-updated drivers (in first post).

What other files do you need?

Chris

#15 ajcg1973

ajcg1973

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts

Posted 27 August 2011 - 01:52 AM

Are the symbols for the beta driver available? I caught a full dump but have no symbols so it's not very useful.


See this link: http://support.microsoft.com/kb/311503

It shows you how to download the symbols from the Windows symbol server for use with Windows dumps regardless if the compiled file has it available or not.

#16 Edward

Edward

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationLondon, UK

Posted 27 August 2011 - 04:47 PM

What other files do you need?

Got it - I'd not spotted your edit with the debug version just an hour earlier.

#17 Edward

Edward

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationLondon, UK

Posted 27 August 2011 - 08:09 PM

After one false start with the symbols but the non-debug build of the driver still loaded I think I've captured an informative debug trace of the driver issue. I've put the info up on the work item CodePlex.

#18 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 27 August 2011 - 08:25 PM

After one false start with the symbols but the non-debug build of the driver still loaded I think I've captured an informative debug trace of the driver issue. I've put the info up on the work item CodePlex.

Thanks, Edward.

#19 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 01 September 2011 - 08:07 PM

I'm gathering a bit more data for Microsoft to try to help narrow down the issue with NETMF 4.2 beta and BSODs. Does the BSOD happen with simple projects (like the default Console Application "Hello World" app)? Does the BSOD happen only on Windows 7 64-bit machines? Does the BSOD happen for you on Netduino or Netduino Plus? We're trying to find a good repro case so that they can reproduce the issue consistently. Thank you all for your input and help getting to the bottom of this issue... Chris

#20 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 01 September 2011 - 08:32 PM

P.S. Does anyone have a simple project (something along the lines of "Hello world" or maybe a little more sophisticated) which regularly causes a BSOD? 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.