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

Netduino 2 frozen

PWM Brick

Best Answer Chris Walker, 20 February 2013 - 09:04 PM

Hi tjfdownsouth,

Ok I finally found the driver and it will now show up in the stdfu software.  I did the steps to flash the firmware but after the demonstration program completes and I unplug and reconnect the board both lights stay on and it doesn't show in device manager.

Sorry for the troubles you're experiencing. Lots of great advice here, and it looks like we're making progress towards getting your board re-flashed. Let's see if we can get you the rest of the way really quick.

First: please unplug any components which might be attached to your Netduino 2. We want to eliminate any possibility that too much power is being drawn during re-flashing operations. This isn't strictly necessary, but it's a good idea if you're running into troubles.

Second: in DFUSE, there is an "upload" and a "download" button. The text on them feels backwards, so it's pretty easy to accidentally overwrite your firmware .DFU file with the empty contents of your board...instead of flashing the .DFU file to your board :)

Third: knowing all of the above, please delete the .DFU file off of your PC and re-download it from the 4.2.2.2 firmware post; we keep the latest firmware as a sticky at the top of this forum. Then go through the re-flashing process again, paying close attention to the buttons pressed in each step. Be sure to check the box to verify that the firmware was written correctly.

Fourth: If you can take a screenshot of the DFUSE Demonstrator program (press print screen, paste into Microsoft Paint, save as JPG, and then attach to your post), that screenshot will give us a ton of information about what happened during the reflashing process.

Does that get you back up and running? Please let us know if you have any other troubles.

Chris Go to the full post


  • Please log in to reply
13 replies to this topic

#1 tjfdownsouth

tjfdownsouth

    Member

  • Members
  • PipPip
  • 10 posts

Posted 20 February 2013 - 03:33 AM

Before reading some forums i sent the following code to my device and now i can't get it to do anything.  I have tried holding down the button and plugging it in but it never shows up in mfdeploy.  I tried connecting 3.3v to gold plate but nothing changes.  the board boots up and turns on led2.  It shows in mfdeploy but if i ping i get Error: no reponse from devide.  I have tried everything I could find to reset it but haven't had any success right now any advice would be appreciated.

 

public static void Main()

{

// write your code here

//OutputPort led1 = new OutputPort(Pins.GPIO_PIN_D0, false);

PWM led1 = new PWM(Cpu.Pin.GPIO_Pin0);

OutputPort led2 = new OutputPort(Pins.GPIO_PIN_D1, false);

OutputPort led3 = new OutputPort(Pins.GPIO_PIN_D2, false);

InputPort button = new InputPort(Pins.ONBOARD_BTN, false, Port.ResistorMode.Disabled);

 

bool buttonState = false;

 

while (true)

{

buttonState = button.Read();

 

if (buttonState == true)

{

led1.SetDutyCycle(75);

led2.Write(true);

led3.Write(true);

Thread.Sleep(500); // sleep for 250ms

led1.SetDutyCycle(25);

led2.Write(false);

led3.Write(false);

}

else

{

led1.SetDutyCycle(25);

led2.Write(false);

led3.Write(false);

Thread.Sleep(250);

led1.SetDutyCycle(50);

Thread.Sleep(250);

led1.SetDutyCycle(75);

led2.Write(true);

Thread.Sleep(250);

led2.Write(false);

led3.Write(true);

Thread.Sleep(250);

}

}

}



#2 martin2250

martin2250

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts
  • LocationGermany

Posted 20 February 2013 - 01:34 PM

you have to redeploy the firmware, you should find the latest Firmware + Instructions in the Forum somewhere pinned on the top

 

Martin



#3 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 20 February 2013 - 01:50 PM

PWM led1 = new PWM(Cpu.Pin.GPIO_Pin0); thats making your duino crash.

 

its not cpu.pin.. its PWMChannels.yourpin (if you are using the ms pwm class, wich i suggest doing.)

 

btw: netduino2 and plus2 dont have an "erase pad" .. what you found just looks like one, but has no function.

(its made so the machines that place the parts know where to start/orientation stuff)

 

its all software based (wich can be found in the numerous topics/tuts here ..)



#4 tjfdownsouth

tjfdownsouth

    Member

  • Members
  • PipPip
  • 10 posts

Posted 20 February 2013 - 02:33 PM

I have tried everything i could find on here.  If i hold the button and plug it in it never shows in device manager it just sits there with both led lights on.  if i just plug it in it shows in device manager but is doesn't reply to anything that mfdeploy sends it.  I have tried catching is as it boots and erase it.



#5 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 20 February 2013 - 03:00 PM

you sure you did it like this?

http://forums.netdui...-v422-update-2/

you have dfuse installed?

 

that erasing is not a mfdeploy thing, you have to reflash the firmware.



#6 tjfdownsouth

tjfdownsouth

    Member

  • Members
  • PipPip
  • 10 posts

Posted 20 February 2013 - 03:09 PM

I installed the stdfu tester but i could not get it to recognize the board.  I tried it holding the button and plugging it in and by just plugging it in.  I did not go any farther down the list since i couldn't get it to erase at this step.  Should it show in the drop down device box?



#7 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 20 February 2013 - 03:15 PM

yes it should, as dfu device (or netduino in dfu mode or something like that) when you plug it in while the button pressed.

:(

 

maybe try reinstalling netduino sdk fpr the drivers. if that doesent help, sry, iam out of ideas :(



#8 tjfdownsouth

tjfdownsouth

    Member

  • Members
  • PipPip
  • 10 posts

Posted 20 February 2013 - 03:36 PM

If I hold the button and plug it in it shows in the device manger under other devices as stmf32bootloader.  I tried reinstalling the sdk but apparently i am still missing a driver somewhere.



#9 tjfdownsouth

tjfdownsouth

    Member

  • Members
  • PipPip
  • 10 posts

Posted 20 February 2013 - 04:02 PM

Ok I finally found the driver and it will now show up in the stdfu software.  I did the steps to flash the firmware but after the demonstration program completes and I unplug and reconnect the board both lights stay on and it doesn't show in device manager.



#10 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 20 February 2013 - 09:04 PM   Best Answer

Hi tjfdownsouth,

Ok I finally found the driver and it will now show up in the stdfu software.  I did the steps to flash the firmware but after the demonstration program completes and I unplug and reconnect the board both lights stay on and it doesn't show in device manager.

Sorry for the troubles you're experiencing. Lots of great advice here, and it looks like we're making progress towards getting your board re-flashed. Let's see if we can get you the rest of the way really quick.

First: please unplug any components which might be attached to your Netduino 2. We want to eliminate any possibility that too much power is being drawn during re-flashing operations. This isn't strictly necessary, but it's a good idea if you're running into troubles.

Second: in DFUSE, there is an "upload" and a "download" button. The text on them feels backwards, so it's pretty easy to accidentally overwrite your firmware .DFU file with the empty contents of your board...instead of flashing the .DFU file to your board :)

Third: knowing all of the above, please delete the .DFU file off of your PC and re-download it from the 4.2.2.2 firmware post; we keep the latest firmware as a sticky at the top of this forum. Then go through the re-flashing process again, paying close attention to the buttons pressed in each step. Be sure to check the box to verify that the firmware was written correctly.

Fourth: If you can take a screenshot of the DFUSE Demonstrator program (press print screen, paste into Microsoft Paint, save as JPG, and then attach to your post), that screenshot will give us a ton of information about what happened during the reflashing process.

Does that get you back up and running? Please let us know if you have any other troubles.

Chris

#11 tjfdownsouth

tjfdownsouth

    Member

  • Members
  • PipPip
  • 10 posts

Posted 20 February 2013 - 09:21 PM

Thanks Chris, I tried it again and verified I was in the "Upgrade and verify" pane but still ended with same result.  I have attached a dfuse pic.

 

Thanks,

Tim

Attached Files



#12 tjfdownsouth

tjfdownsouth

    Member

  • Members
  • PipPip
  • 10 posts

Posted 21 February 2013 - 10:34 PM

Is it possible that i am not using the correct version of dfuse?  The link in the firmware update page did not work so I had quite the chore tracking down the version I have.

 

Thanks,

Tim



#13 tjfdownsouth

tjfdownsouth

    Member

  • Members
  • PipPip
  • 10 posts

Posted 23 February 2013 - 12:10 AM

I seen the different link to get dfuse in 4.2.2 and used the version 3.0.2 and everything is working now.  Thanks for your help I had to get all the correct versions installed and it worked correctly after that.

 

Thanks,

Tim



#14 ColoradoNetduino

ColoradoNetduino

    New Member

  • Members
  • Pip
  • 1 posts

Posted 23 March 2013 - 06:36 AM

Hello,

 

I fought through the exact same problems many users are having where the Netduino PLus 2 is locked up with both lights on, and wont be recognized by the USB bus unless it is in bootloader mode -

 

I took the advise of the earlier post by Chris, and re-downloaded the Firmware, and he was right, I had unknowingly copied (created) a bad firmware into the Firmware file I was trying to use.

 

After deleting the directory, redownloading the firmware, unzipping it, using STDFU Tester to erase, and then using DefuSe to Upgrade - it worked perfect. 

 

I had previously been at it all night, when it did work I noticed right away, because the 'Transferred Data Size' was around 384K and before it was flashing 1024k?

 

Now it works perfectly again.  I will repost the remedy below....

 

Thanks, JT

 

[color=rgb(90,90,90);font-family:helvetica, arial, sans-serif;font-size:13px;background-color:rgb(234,248,226);]Second: in DFUSE, there is an "upload" and a "download" button. The text on them feels backwards, so it's pretty easy to accidentally overwrite your firmware .DFU file with the empty contents of your board...instead of flashing the .DFU file to your board [/color] :)

[color=rgb(90,90,90);font-family:helvetica, arial, sans-serif;font-size:13px;background-color:rgb(234,248,226);]Third: knowing all of the above, please delete the .DFU file off of your PC and re-download it from the [/color]4.2.2.2 firmware post[color=rgb(90,90,90);font-family:helvetica, arial, sans-serif;font-size:13px;background-color:rgb(234,248,226);]; we keep the latest firmware as a sticky at the top of this forum. Then go through the re-flashing process again, paying close attention to the buttons pressed in each step. Be sure to check the box to verify that the firmware was written correctly.[/color]

[color=rgb(90,90,90);font-family:helvetica, arial, sans-serif;font-size:13px;background-color:rgb(234,248,226);]Fourth: If you can take a screenshot of the DFUSE Demonstrator program (press print screen, paste into Microsoft Paint, save as JPG, and then attach to your post), that screenshot will give us a ton of information about what happened during the reflashing process.[/color]

[color=rgb(90,90,90);font-family:helvetica, arial, sans-serif;font-size:13px;background-color:rgb(234,248,226);]Does that get you back up and running? Please let us know if you have any other troubles.[/color]






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.