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

No debug


  • Please log in to reply
5 replies to this topic

#1 louyo

louyo

    Member

  • Members
  • PipPip
  • 18 posts

Posted 07 July 2012 - 06:45 PM

I am newbie. Firmware is 4.1.0.6, SDK is 4.1 I can load and run the blinky program if I select run without debugging. If I select F5 (debug), I get 2 lines saying "Deploy started: Project Blinky, Configuration: Debug Any CPU" After some time, I get "rebooting.... Done" in the output window but the program does not run properly. If I set a breakpoint in the Main loop, and then hover over that BP, it says "The breakpoint will not currently be hit. The specified module has not been loaded. If I run without debugging, the program will load and run but any rebuild requires the reset button to be pressed before it will load and run again. I am sure that this worked OK at one time but it has been several weeks since I used it. Thanks for any help and apologies if I missed this in a search. Lou

#2 Paul Newton

Paul Newton

    Advanced Member

  • Members
  • PipPipPip
  • 724 posts
  • LocationBerkshire, UK

Posted 07 July 2012 - 09:52 PM

Hi Lou, Welcome to the Forums! I am not sure what is wrong, it would probably help if we could see the code you are running. Paul

#3 louyo

louyo

    Member

  • Members
  • PipPip
  • 18 posts

Posted 08 July 2012 - 03:27 AM

It is the simple little blinky program in the downloads section here. Turns the LED off and on 250 milliseconds at a time. I am not trying to reload firmware, having a problem finding a system to load the SAM-BA drivers, they install but say device can't start. Suspect I need to find a 32 bit XP machine to use. Thanks for reply. Lou Edit: oops, I AM trying to reload firmware now.

#4 louyo

louyo

    Member

  • Members
  • PipPip
  • 18 posts

Posted 08 July 2012 - 05:31 PM

Results of reloading firmware, anyone seen this?
-----------------------------------------------------------------
Chk signature
Signature PASS
Chk signature
Signature PASS
No debugger!
Create TS.
Loading start at 14d324, end 162e8c
Attaching file.
Assembly: mscorlib (4.1.2821.0) (3880 RAM - 33236 ROM - 19134 METADATA)
Attaching file.
Assembly: Microsoft.SPOT.Native (4.1.2821.0) (1144 RAM - 6516 ROM - 4479 METADATA)
Attaching file.
Assembly: Microsoft.SPOT.Hardware (4.1.2821.0) (1752 RAM - 11440 ROM - 7371 METADATA)
Attaching file.
Assembly: Microsoft.SPOT.Net (4.1.2821.0) (704 RAM - 5060 ROM - 2452 METADATA)
Attaching file.
Assembly: System (4.1.2821.0) (872 RAM - 5992 ROM - 3206 METADATA)
Attaching file.
Assembly: Microsoft.SPOT.IO (4.1.2821.0) (740 RAM - 4620 ROM - 2522 METADATA)
Attaching file.
Assembly: System.IO (4.1.2821.0) (1548 RAM - 13292 ROM - 5862 METADATA)
Attaching file.
Assembly: Microsoft.SPOT.Hardware.SerialPort (4.1.2821.0) (512 RAM - 3488 ROM - 1543 METADATA
Attaching file.
Assembly: SecretLabs.NETMF.Hardware (4.1.0.0) (256 RAM - 1108 ROM - 491 METADATA)
Attaching file.
Assembly: SecretLabs.NETMF.Diagnostics (4.1.0.0) (180 RAM - 440 ROM - 166 METADATA)
Loading Deployment Assemblies.
Resolving.
Total: (10500 RAM - 88932 ROM - 49070 METADATA)
Total: (10500 RAM - 88932 ROM - 49070 METADATA)

Ready.
Cannot find any entrypoint!
Done.
Waiting for debug commands...
--------------------------------------------------------------------------------------------

(waits forever)

When I ran the reload a second time, with the Netduino reset, I got:
Chk signature
Signature PASS
Chk signature
Signature PASS
-------------------------------------------

Running a program without debugging: runs OK from a reset state. If it is not reset first, Output says Device not found or cannot be opened, etc. Hit the reset button and it starts the program.

Now, if I select debug, after the deploy the status line says
"The debugging target is not in an initialized state; rebooting....
The output window says: "Rebooting... Done." (but, apparently, it didn't)
If I hit the reset button on the Netuino, it reboots and then debugging continues OK.
So, I think reloading the firmware helped but didn't fix. It seems like it can't be rebooted via software command?

I have tried running from both 32 and 64 bit versions of Win7 (both real and virtual machines) with same results.
The little blinky program that I downloaded just does:

public static void Main()
        {
            OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);
            while (true)
            {
                led.Write(true);
                Thread.Sleep(250);
                led.Write(false);
                Thread.Sleep(250);
            }
        }

Any help gratefully appreciated.

Lou

Edited by Chris Walker, 08 July 2012 - 07:14 PM.
added [code][/code] tags


#5 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 08 July 2012 - 07:16 PM

Hi Lou, To confirm: you can debug alright--but only if you press the reset button on your Netduino after the program is deployed? If that's the case, then this is a glitch related to the NETMF drivers. We'd be happy to ping Microsoft and look into it. They also have new replacement drivers coming in the next month or so (using WinUSB instead of a custom channel) so it may make the most sense to just press the reset button for now...and then update to the new drivers once they're posted. Chris

#6 louyo

louyo

    Member

  • Members
  • PipPip
  • 18 posts

Posted 08 July 2012 - 09:06 PM

Hi Lou,

To confirm: you can debug alright--but only if you press the reset button on your Netduino after the program is deployed?

True (it doesn't seem to me that it did this when it was new?)

so it may make the most sense to just press the reset button for now...and then update to the new drivers once they're posted.

10-4, at least that is within my technical abilities.. :)

Thank You
Lou




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.