![Photo](http://www.gravatar.com/avatar/664d8e3aff0415ac6d18ee41852a73ef?s=100&d=http%3A%2F%2Fforums.netduino.com%2Fpublic%2Fstyle_images%2Fmaster%2Fprofile%2Fdefault_large.png)
Netduino Plus Unable to connect to from MFDeploy or Visual Studio after loading demo project
#1
Posted 26 September 2010 - 10:25 PM
Got through the "blinking an led" how to with no problem. Everything works. Then I did second one "pushing the button". I had no problem doing that one any loading the code onto the Netduino Plus - the board works as expected.
However, after loading that code on there, the Netduino Plus seems to be stuck. I can't load anything else new into it. Hitting F5 in visual studio (with USB and theNetduinoPlus_NetduinoPlus board selected in properties section of the project) causes visual studio to wait forever at "Preparing to deploy assemblies to the device"
Looking thru the forums, I see a thread that would seem to address this issue maybe, except that the solution was to use MFDeploy.exe to load new firmware on the unit. However, I'm basically having the same issues in MFDeploy. When I plug in the board, it shows up in the list in MFDeploy, but as soon as you try to communicate with the board MFDeploy hangs. For example, if you go to Device Capabilities MFDeploy freezes. It only unfreezes when you unplug the Netduino board from the USB port and then the MFDeploy window wakes up and says "Error: No response from device". In one of the forum postings, it suggests I just try to deploy the firmware on the unit by quickly hitting "deploy" in MFDeploy right after I plug in the unit. I've been trying all sorts of combinations of pluging in and quickly trying functions in MFDeploy - nothing seems to work.
I have tried this on 2 different computers with the same results
I guess it should be noted that the "pushing the button" demo is still working on the unit. Shortly after powering up the unit, the button does control the state of the LED on the unit.
So in summary, after loading code from the pushing the button demo on the Netduino Plus, I can no longer communicate with the board from the computer. Is there anyway to completely reset this thing? (the button won't reset it now, because it is being used to control the LED).
Thanks
#2
Posted 26 September 2010 - 10:47 PM
http://forums.netdui...indpost__p__216
I followed those instructions, then loaded the new firmware on the unit and I am back up and running.
I would echo the other posters in that thread that say the new firmware link should be posted on the downloads page. There should be an item number 4 on the list in upper left that says "download and install the firmware so you don't waste an hour of your life"
![Posted Image](http://forums.netduino.com/public/style_emoticons/default/smile.gif)
#3
Posted 26 September 2010 - 10:53 PM
#4
Posted 28 September 2010 - 02:35 AM
I followed those instructions, then loaded the new firmware on the unit and I am back up and running.
What new firmware did you install? I thought the firmware that came with the netduino plus was the latest available?
I am having the exact same problem.
#5
Posted 28 September 2010 - 02:42 AM
#6
Posted 28 September 2010 - 03:04 AM
#7
Posted 28 September 2010 - 03:19 AM
What new firmware did you install? I thought the firmware that came with the netduino plus was the latest available?
I am having the exact same problem.
Bill,
I installed the firmware located here: http://forums.netdui...ndpost__p__2737
I think the firmware on the unit that I got at the maker faire was older than that.
I will say that visual studio still gets hung up sometimes - but now I am able to either press the reset button or unplug/replug the unit during the deploy process and everything starts working again.
#8
Posted 28 September 2010 - 03:21 AM
#9
Posted 28 September 2010 - 03:43 AM
#10
Posted 28 September 2010 - 03:53 AM
#11
Posted 28 September 2010 - 04:13 AM
namespace NetduinoApplication1 { public class Program { public static void Main() { // write your code here OutputPort led = new OutputPort(Pins.ONBOARD_LED, false); bool b = false; while (true) { b = !b; led.Write(B); Thread.Sleep(50); } } } }
#12
Posted 28 September 2010 - 04:16 AM
#13
Posted 29 September 2010 - 01:07 AM
I've also tried the below code, which uses D0 for the button, instead, so I could still have access to the reset. Reset has no effect on how visual studio acts, however. I can see that the board resets (the net leds and the blue led cycle and then my code resumes) but visual studio is uneffected.
Once VS is stuck, i can only unstick it by unplugging the netduino, plugging it back it, waiting for it to boot, then unplugging it again. My code never stops running except during netduino boot up.
I've tried every combo i can think of involving resetting, power cycling, and deploying to get it to work without erasing. No luck.
using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; namespace NetduinoApplication1 { public class Program { public static void Main() { // write your code here OutputPort led = new OutputPort(Pins.ONBOARD_LED, false); InputPort button = new InputPort(Pins.GPIO_PIN_D0, false, ResistorModes.PullUp); while (true) { led.Write(!button.Read()); } } } }
#14
Posted 29 September 2010 - 01:19 AM
#15
Posted 29 September 2010 - 01:26 AM
#16
Posted 29 September 2010 - 01:55 AM
#17
Posted 29 September 2010 - 11:23 AM
#18
Posted 29 September 2010 - 02:08 PM
#19
Posted 29 September 2010 - 02:17 PM
In the meantime, you may want to reflash with the regular Netduino firmware
Have you tried the re-flashing bit? I had this error happen a few times... reflashed (technically, I upgraded to the newest "approved" firmware, and the errors went away. Been working fine since then.
Today LED's, tomorrow, the world!!! Well, OK, maybe servos.
#20
Posted 29 September 2010 - 02:42 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users