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

AnalogInput Read() LOCKS UP NetDuino


  • Please log in to reply
2 replies to this topic

#1 Websteria

Websteria

    Member

  • Members
  • PipPip
  • 25 posts

Posted 31 August 2010 - 07:17 PM

Just trying to read some analog values, and my NetDuino is locking up the debugger when it hits the Pot0.Read() line.... This is very disturbing as I've had to HARD reset it several times by using MFDeploy to make it work again. Any ideas?

I've bolded the line that it crashes on when it gets to the code.... This is with 3.3v hooked to aref. Is my netduino broken?



            AnalogInput Pot0 = new AnalogInput(Pins.GPIO_PIN_A1);
            AnalogInput Pot1 = new AnalogInput(Pins.GPIO_PIN_A0);

            while (true)
            {
                [b]int Pod0val = Pot0.Read();[/b]
                int Pod1val = Pot1.Read();
                Thread.Sleep(50);
             }



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 31 August 2010 - 07:19 PM

Hi Websteria, Are you running the updated firmware (v4.1.0.2)? There was a bug in the earlier AnalogInput code (sorry about that) which could cause this... http://forums.netdui...e-v410-patch-2/ Your Netduino is probably not dead; it probably just needs some good firmware upgrade medicine :) Chris

#3 Websteria

Websteria

    Member

  • Members
  • PipPip
  • 25 posts

Posted 31 August 2010 - 08:32 PM

Hi Websteria,

Are you running the updated firmware (v4.1.0.2)? There was a bug in the earlier AnalogInput code (sorry about that) which could cause this...

http://forums.netdui...e-v410-patch-2/

Your Netduino is probably not dead; it probably just needs some good firmware upgrade medicine :)

Chris


That fixed it. Whew! Thank you! :-)

Jeff




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.