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

Can debug but can't run 'stand-alone'


Best Answer Chris Walker, 20 November 2014 - 08:35 PM

Hi afox,

When you deploy code, it deploys to the board as expected. Visual Studio remote-debugs your application.

Can you try adding a 1-2 second pause when your application starts, for diagnostics purposes, using Thread.Sleep()? Or connect to your board (F5) from MFDeploy, reboot your board and then press Ping in MFDeploy; that should give you a data dump showing your app start, any Debug.Print statements that your app prints out, etc.

Welcome to the Netduino community,

Chris Go to the full post


  • Please log in to reply
2 replies to this topic

#1 afox

afox

    New Member

  • Members
  • Pip
  • 2 posts

Posted 20 November 2014 - 04:51 PM

Hi,

 

Apologies if I'm missing something really obvious here but I've written a little app which runs fine on a Netduino Go when started from within VS 2012. When I power up the card without VS, on all USB ports/power supplies I've tried I just get the white power LED and a couple of blue GoBus lights. No activity on my servo or rgbled in response to a potentiometer which controls them fine in VS debug.

 

Perhaps I've completely misunderstood but I thought the deploy would stick on the card and it should become active automatically when powered up outside of the dev environment. I've tried all sorts of VS build options but always with the same result.

 

I'm happy to provide more details if it helps but I've got a feeling (no basis for this as I've only had the card for an afternoon) that it's probably pretty obvious to someone else.

 

Thanks very much.

 



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 20 November 2014 - 08:35 PM   Best Answer

Hi afox,

When you deploy code, it deploys to the board as expected. Visual Studio remote-debugs your application.

Can you try adding a 1-2 second pause when your application starts, for diagnostics purposes, using Thread.Sleep()? Or connect to your board (F5) from MFDeploy, reboot your board and then press Ping in MFDeploy; that should give you a data dump showing your app start, any Debug.Print statements that your app prints out, etc.

Welcome to the Netduino community,

Chris

#3 afox

afox

    New Member

  • Members
  • Pip
  • 2 posts

Posted 21 November 2014 - 02:03 PM

Hi Chris,

 

I added a one second sleep as first thing to do in Sub Main() and it worked! No need for MfDeploy.

 

Thanks for the suggestion and if I post anything else I'll try and make it a bit more challenging.

 

Cheers,

 

Antony






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.