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

Problem Debugging App


Best Answer Russell Christensen, 28 April 2013 - 11:50 PM

I just got around to trying another computer (and cable) and everything is working on my home computer.  I thought it might have been a difference between usb 2 and 3 ports that I was using but I tried on usb 3 ports as well as two on this computer and they both worked fine.  I am able to repeatedly deploy and debug applications.  The primary difference is that this machine is running windows 8, my work laptop which failed to debug was running windows 7.  I tried my samsung cable which didn't work on my laptop, it is working on this machine.  Seems to be a driver or other issue with the usb ports on my work laptop.  This is all running the 4.3 micro framework and sdk's.  Thanks for the help, looks like I'll be programming at home from now on.  :)

Go to the full post


  • Please log in to reply
5 replies to this topic

#1 Russell Christensen

Russell Christensen

    Member

  • Members
  • PipPip
  • 16 posts

Posted 25 April 2013 - 08:20 PM

This morning I remembered that I had my Netduino Go stored in my filing cabinet and decided to start messing around with it again.  I brought it to work with me and updated the firmware to 4.2.2.1.  I went to update the shield base firmware as well but I was having trouble connecting to the device.  I resolved that issue (had to do with the new name of the device).  In visual studio 2010 it would try to deploy but would fail to connect to the debugger after rebooting the device.  I removed the .net mf 4.2 and installed 4.3 as well as the sdk for 4.3.  I created a new application in VS 2012 which builds just fine, it finds the device, installs, then on restart again fails to connect to the debugger.  

 

Micro Framework Device Deployment Output:

 

 

Looking for a device on transport 'USB'
Starting device deployment...
Iteration 0
Opening port ?USB#VID_22B1&PID_1000#000000000000#{09343630-a794-10ef-334f-82ea332c49f3}Operations
Attaching debugger engine...
... debugger engine attached!
Querying device assemblies...
Found Assembly mscorlib 4.2.0.0
Found Assembly Microsoft.SPOT.Native 4.2.0.0
Found Assembly Microsoft.SPOT.Hardware 4.2.0.0
Found Assembly Microsoft.SPOT.Net 4.2.0.0
Found Assembly System 4.2.0.0
Found Assembly Microsoft.SPOT.Hardware.SerialPort 4.2.0.0
Found Assembly Microsoft.SPOT.IO 4.2.0.0
Found Assembly System.IO 4.2.0.0
Found Assembly Microsoft.SPOT.Hardware.PWM 4.2.0.1
Found Assembly Microsoft.SPOT.Hardware.Usb 4.2.0.0
Found Assembly GoBus 1.0.0.0
Found Assembly GoBusSerialTransport 1.4.1.0
Found Assembly NetduinoGo.ShieldBase 0.4.0.0
Found Assembly SecretLabs.NETMF.Diagnostics 4.2.0.0
Found Assembly SecretLabs.NETMF.Hardware.Netduino 4.2.1.0
Found Assembly SecretLabs.NETMF.IO 4.2.0.0
Found Assembly Microsoft.SPOT.Hardware.OneWire 4.2.0.0
Found Assembly Microsoft.SPOT.Time 4.2.0.0
Found Assembly SecretLabs.NETMF.Hardware.NetduinoGo 4.2.2.0
Found Assembly Nwazet.Go.Core 1.0.0.0
Found Assembly NetduinoGoApplication1 1.0.0.0
Found Assembly Nwazet.Go.SDT028ATFTLCDTS 1.0.0.0
Found Assembly SecretLabs.NETMF.Hardware 4.2.0.0
Adding pe file C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2lesecretlabs.netmf.hardware.netduinogo.pe to deployment bundle
Adding pe file C:UserschristerDownloadsNwazetAssembliesDebuglenwazet.go.core.pe to deployment bundle
Adding pe file C:UserschristerDocumentsVisual Studio 2012ProjectsNetduinoGoApplication1NetduinoGoApplication1binDebugleNetduinoGoApplication1.pe to deployment bundle
Adding pe file C:UserschristerDownloadsNwazetAssembliesDebuglenwazet.go.sdt028atftlcdts.pe to deployment bundle
Adding pe file C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2lesecretlabs.netmf.hardware.pe to deployment bundle
Attempting deployment...
Incrementally deploying assemblies to device
Deploying assemblies for a total size of 31336 bytes
Assemblies successfully deployed to device.
Restarting interpreter...
Attaching to device...
Waiting for device to initialize...
The debugging target and the debugger engine failed to initialize because of unspecified device errors.
The debugger engine thread has terminated unexpectedly with error 'Could not reconnect to the debugging target after rebooting it.'.
 
 
Is there anything I can try to get this to work?  I thought maybe if it was only a debug issue that running an app that would print something to the nwazet lcd would indicate that the program is indeed running, I just can't debug, but that didn't work either.  I run the code to print a line on the screen, but all I see is the stock image that the screen shows when its initialized.  Any help with this would be appreciated!
 
Russ


#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 25 April 2013 - 08:35 PM

Hi Russell, Let's simplify this a bit and see if we can diagnose the connection first--and then slowly in add your application logic. Try creating a new Netduino Go Application. In that application, add one simple line of code:
Debug.Print("hello world!");
Now try deploying that to your Netduino Go. Make sure that all GoBus modules and any other accessories are detached from your board first. Does that app deploy? Does it run? Please note that VS2012 support is currently in beta. We're using it almost exclusively here...but it does have a few hiccups from time to time. Chris

#3 Russell Christensen

Russell Christensen

    Member

  • Members
  • PipPip
  • 16 posts

Posted 25 April 2013 - 08:42 PM

Thanks for the prompt reply.  Did exactly as you asked, visual studio hangs at Waiting for device to initialize for a bit, the program never runs.  I do not have any modules connected to the netduino go at all, no extra dll's added.  Eventually visual studio reports:

 

 

Waiting for device to initialize...
The debugging target and the debugger engine failed to initialize because of unspecified device errors.
The debugger engine thread has terminated unexpectedly with error 'Could not reconnect to the debugging target after rebooting it.'.


#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 25 April 2013 - 11:00 PM

Hi Russell, Okay, in this case I'd recommend moving back to the regular 4.2 SDK (NETMF 4.2 QFE2). Either way, we can create a work request for Microsoft for Visual Studio/NETMF to get this fixed in 4.3. The only time I've seen this kind of behavior is when there's a USB filter driver (or USB sniffer software) installed on a PC. It really sounds like Visual Studio is just getting detached from the USB stream. Chris

#5 Russell Christensen

Russell Christensen

    Member

  • Members
  • PipPip
  • 16 posts

Posted 26 April 2013 - 05:27 PM

I actually started out on the 4.2 sdk initially.  I was seeing the same problem so I updated to 4.3 to see if visual studio 2012 handled it a little better.  Now I'm wondering if its the USB cable I'm using.  I do mobile development and have had issues debugging apps on my samsung phone using anything but a Samsung cable.  I was using my samsung cable with the netduino, I'm going to try this evening to see if a different usb cable produces different results.  I am not sure if this matters or not though.  As far as a USB filter driver or sniffer, I don't know anything about that.  It could be possible with the Android sdk to install that kind of driver?  



#6 Russell Christensen

Russell Christensen

    Member

  • Members
  • PipPip
  • 16 posts

Posted 28 April 2013 - 11:50 PM   Best Answer

I just got around to trying another computer (and cable) and everything is working on my home computer.  I thought it might have been a difference between usb 2 and 3 ports that I was using but I tried on usb 3 ports as well as two on this computer and they both worked fine.  I am able to repeatedly deploy and debug applications.  The primary difference is that this machine is running windows 8, my work laptop which failed to debug was running windows 7.  I tried my samsung cable which didn't work on my laptop, it is working on this machine.  Seems to be a driver or other issue with the usb ports on my work laptop.  This is all running the 4.3 micro framework and sdk's.  Thanks for the help, looks like I'll be programming at home from now on.  :)






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.