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

First steps and crashing firmware


  • Please log in to reply
2 replies to this topic

#1 Wernfried

Wernfried

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts

Posted 17 August 2014 - 10:39 AM

I think it is a kind of record. Got my Netduino plus 2 yesterday, wrote the "Hello World" programm with the blinking LED and it worked.

 

Then I added only one statement additionaly to the LED outputport and the firmware was necessary to re-flash.

 

The statement is:

    static InputPort port11 = new InputPort(Cpu.Pin.GPIO_Pin11, false, Port.ResistorMode.Disabled);

 

Did I occatiobnally met a port which is used internally?

Why this crashes the USB communication (the Netduino still worked but couldn't get connected anymore)?

Are my parameters somehow wrong?

 

Thanks for any hints.



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 18 August 2014 - 05:48 AM

Hi Wernfried,

Cpu.Pin.GPIO_Pin11 is pin PA11 on the MCU itself, (USB port pin or similar). Try using Pins.GPIO_PIN_D11 instead.

You can use Netduino Update to erase your current app--and of course you can always erase/reflash the board.

Does that get you back up and running?

Welcome to the Netduino community,

Chris

#3 Wernfried

Wernfried

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts

Posted 18 August 2014 - 08:07 AM

Thanks for the answer. Your suggestion helped.

 

I had to reflash my Netduino bofore, with any difficulties I could do that.

 

Thanks, Wernfried






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.