I currently have WindRiver and all the other FRC software installed on a Windows 7 64 bit computer. Our team has had no problems getting code to run via debugging, and have gotten our robot to move around a few times. However, we’ve been trying to deploy our code (In WindRiver, [FIRST] -> [Deploy]) and it’s not working.
Specifically, after hitting it, the dialog box that appears says that it’s downloading the code, but doesn’t ever appear to do anything else or finish. I’ve waited several minutes for something to happen, but nothing ever does. I’ve canceled after about 5-10 minutes each time, assuming that something has gone wrong.
How long does it typically take to deploy code? If this is abnormal behavior, what can I try to fix it?
Typically our code takes about 20-30 seconds total to Deploy. unfortunately I am a relatively new programmer and cannot offer you advice to fix it other than make sure that your connection is secure. If you have a loose ethernet connection that would explain the problem.
I’m not quite a pro yet at WindRiver, but the first diagnostic things I would suggest are:
open a command prompt (Start->Run… type in ‘cmd’ then click ok) – then at the command prompt do “ping 10.xx.yy.2” where xxyy is your team number (example - team 1234 would ping 10.12.34.2 while team 701 would type ping 10.7.1.2. See if you get “reply received…” messages or “request timed out”. If you are geting timeout messages, then your cRio config is messed up - go back to the FRC setup for the cRIO to re-flash your robot in this case until you do get a ping functioning.
at that command prompt, run “ipconfig” and see that YOUR ip address is of the form 10.xx.yy.*. If not, you’ll need to setup tcp/ip there properly to fix.
If ping is working, I would think that your WindRiver connection setup to the robot is not correct (or has become corrupted by something) – re-step through the WindRiver FRC setup to re-setup the connection and delete the old connection.
Others may have BETTER suggestions, but #1 is a for-sure quick item that can help with the most basic of issues.
Have you set up your team number under preferences in Windriver and there’s always the option of using FileZilla in times like this to upload your .out file which you can find in one of the WindRiver directory folders and then uploading that to your cRio using FileZilla. Be sure to rename the .out file to FRC_UserProgram.out when uploading to cRio. You upload it to the ni-rt/system folder in your cRio. I hope that helps.
The times I have seen this is when the Firewall is enabled and blocking things…
You can manually deploy the code by doing the following:
In an Explorer window (NOT Internet Explorer, but Windows Explorer), in the address box type “ftp://10.xx.yy.2”, where “xx.yy” is your team number
go to the “ni-rt/system” folder, and copy your .out file to this folder
rename your .out file to “FRC_UserProgram.out”
Reboot cRio.
I see this with my work laptop, because corporate IT pushes down all kinds of policies which don’t allow me to turn of the firewall. (Yes, I am an admin on the box, and still can’t turn off the firewall).
Also suggest turning of Antivirus software as well as that could be blocking something as well.
I have been seeing this happening sporadically myself.
I am usually able to deploy code, but I find some combination of FTPing into the robot using firefox and enabling teleop on the driver station will cause my deploys to hang in such a way that windriver will just sit at “Deploying” (or “Undeploying”) forever.
Typically, I have to power down the robot and close windriver to get it to work again after this happens.
Not sure if this is your issue, but it definately caused me some pain the first few times it happened.