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

Set breakpoint on Netduino Plus 2 very slow/not hit

netduino plus netduino 2 plus breakpoint VS2012 slow

  • Please log in to reply
10 replies to this topic

#1 nhale

nhale

    Advanced Member

  • Members
  • PipPipPip
  • 64 posts
  • LocationHeidelberg, Germany

Posted 03 February 2013 - 10:14 PM

Hi, I just started to test my new Netduino 2 Plus and tried to set a breakpoint in VS2012. In comparison to the "old" Netduino Plus it takes ages until the breakpoint is set and additionally it's never hit...with the Netduino Plus no problem. I also replaced the NetduinoPlus.dll with the Netduino.dll as suggested in some topics. But no success I'm running the same code with the same Framework and SDK, only the devices are different. .NETMF 4.3 Netduino SDK 4.2.2 (Jan13) Anyone else the same experience? Thanks

#2 nhale

nhale

    Advanced Member

  • Members
  • PipPipPip
  • 64 posts
  • LocationHeidelberg, Germany

Posted 05 February 2013 - 11:30 AM

I tried now some simple code which just lets the Onboard LED flash and this works also fine on both devices with setting and hitting the breakpoint.

 

As my project runs a few threads and is splitting into 3 different project-files, is there maybe some limitation/bottleneck on the N+2 compared to the N+?



#3 nhale

nhale

    Advanced Member

  • Members
  • PipPipPip
  • 64 posts
  • LocationHeidelberg, Germany

Posted 05 February 2013 - 09:15 PM

Ok, I did another test.

I increased the amount of code compared to the simple Onboard LED test (just one class with a few lines)

Now the project has some classes with a few hundred lines building a menu for a 16x2 LCD.

The refresh of the LCD is much faster than with the old N+ but the strange thing I could observer is, that setting a breakpoint took more time.

The breakpoint was also hit, but hovering over objects and displaying values took a few seconds.

 

It would be very nice if one of the Moderators or Admins could comment on that...



#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 06 February 2013 - 06:43 AM

Hi nhale, The new .NET MF 4.3 SDK has a lot of new code to make connecting to a device during deployment more reliable. Some of this is done with waiting for things to catch up. It's possible that this results in faster or slower step-by-step debugging and variable inspection in some situations. Could you please share your experience by opening up an issue at netmf.codeplex.com? There may be some tuning that can be done in .NET MF vNext (or a QFE) to speed things up more. Chris

#5 nhale

nhale

    Advanced Member

  • Members
  • PipPipPip
  • 64 posts
  • LocationHeidelberg, Germany

Posted 06 February 2013 - 01:50 PM

Hi,

 

I created an issue for the problem.

If someone else can reproduce it, may a comment with the experience might be useful.

 

http://netmf.codeple...m/workitem/1902

 

Thanks



#6 nhale

nhale

    Advanced Member

  • Members
  • PipPipPip
  • 64 posts
  • LocationHeidelberg, Germany

Posted 08 February 2013 - 09:56 AM

Someone else also experiences the same problem.

See comments at http://netmf.codeple...m/workitem/1902

 

I wonder that nobody else here experiences this problem...



#7 HiredMind

HiredMind

    Member

  • Members
  • PipPip
  • 25 posts

Posted 08 February 2013 - 04:52 PM

That is the first thing I noticed about working with the NP2 - stepping code is a bit slower than on the NP1. I plan to re-flash both devices to make certain what firmware versions I'm running, and post the results here.  (Had planned on doing that already but life intrudes :))

 

Here is an additional mode which I haven't seen mentioned: VS2012 / NP2; when stepping through code with Step Over (F10), sometimes the debugger doesn't appear to stop on the next line.  If you subsequently set a breakpoint on that line, the debugger breaks.  It's as if the NP2 is indeed in break mode, but the debugger never gets that message.



#8 nhale

nhale

    Advanced Member

  • Members
  • PipPipPip
  • 64 posts
  • LocationHeidelberg, Germany

Posted 08 February 2013 - 08:10 PM

I tried the Firmware 4.2.2.1 and yesterday the new Firmware 4.2.2.2 - both the same problem.

Currently I try to prepare two example solutions to attach them to the issue.

 

I'm not sure if its really the .NETMF, because with the same the N+1 just works fine - or does the different type of "CPU" make such a difference?

Because the "only" difference between both is the FW(software) and the device (hardware) and both is from SecretLabs....

I wonder that they did not encounter this problem, or mention it...



#9 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 09 February 2013 - 01:43 AM

I just chatted with Microsoft, and am working on potential ways to diagnose this issue. What would be really helpful is if we could get a tiny repro which doesn't exhibit this issue (such as blinky) and then a slightly larger one that does have the issue. If the same project works great on a gen1 board (which uses a slower MCU--and therefore may be affected differently by the newly-tuned MFDeployEngine 4.3), that will make the repro even nicer. Unfortunately we can't break into Visual Studio from here to see what's happening, but we can sniff the USB traffic and work with a Microsoft engineer to figure out what's going on. In the meantime, if you experience this issue and it is a blocking issue for you... Visual Studio 2010 (including Express) should continue working great with boards running the production 4.2 firmware. Would one of you be willing to put together a short repro and then a longer repro that exhibits this issue (preferably only with the newer boards)? I would be very grateful :) Thank you all for sharing your experiences, Chris

#10 nhale

nhale

    Advanced Member

  • Members
  • PipPipPip
  • 64 posts
  • LocationHeidelberg, Germany

Posted 09 February 2013 - 08:46 PM

Thanks Chris, I will try to upload a solution which can be taken to reproduce the issue, just have to do something which does not require special hardware. I already have started with something and can reproduce the issue, but its not that bad as with my project (which is much more code), i just need some foo-bar-senseless code ;-) As a simple example just take the "breathing Led" sample from the forum, thats normal (set, hit breakpoint) but also slower when drilling down on a nested object.

#11 DavidAsensio

DavidAsensio

    New Member

  • Members
  • Pip
  • 6 posts

Posted 08 April 2013 - 06:49 PM

Good afternoon,

I'm experiencing problems with the breakpoints in netduino plus 2, and I'm not capable to execute the software step by step. The software download the program into the netduino but it not reset and the breakpoint not work.

I haven't have any problem with the netduino plus...

 

Br.

 

David Asensio







Also tagged with one or more of these keywords: netduino plus, netduino 2 plus, breakpoint, VS2012, slow

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.