Go to Post Another year, another picture of a Tytus injury. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-01-2009, 21:25
jcvd jcvd is offline
Registered User
FRC #1111
 
Join Date: Jan 2009
Location: Edgewater, MD
Posts: 1
jcvd is an unknown quantity at this point
Cannot Download Code to our Robot

Our problem is somewhat strange in that we don't encounter any errors when trying to download code to our robot, but when we go to test our robot, the behaviour does not change. For example, if we comment out everything in our code involving driving, and then download code, we will be able to do so, but then when we go to test our robot it can still drive.

Things that are worthy of mentioning are that:
-We are using C++ and Wind River, not LabVIEW
-We HAVE updated our cRio
-We are running a Subversion server
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2009, 21:27
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 325
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Cannot Download Code to our Robot

If you download it you must reboot the cRIO for it to take effect.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2009, 21:31
neutrino15's Avatar
neutrino15 neutrino15 is offline
plɹoʍ ollǝɥ
AKA: Jordan Perr
FRC #0694 (Stuypulse)
 
Join Date: Feb 2007
Rookie Year: 2007
Location: New York City
Posts: 162
neutrino15 is just really niceneutrino15 is just really niceneutrino15 is just really niceneutrino15 is just really nice
Re: Cannot Download Code to our Robot

Quote:
Originally Posted by wt200999 View Post
If you download it you must reboot the cRIO for it to take effect.
Is there any other option besides "Downloading" code? We have just been rebooting the cRIO every time as well, but this does take a huge amount of time. Is there a way to load code while the cRIO is running?
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2009, 22:40
Shinigami2057 Shinigami2057 is offline
Slackware Is Your New God (Mentor)
AKA: Harry Bock
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Johnston, RI
Posts: 106
Shinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really nice
Re: Cannot Download Code to our Robot

You can run the program in memory without deploying it to flash.

Sorry if the exact dialogues are incorrect, but I don't have it in front of me. I'll clarify with screenshots in the morning if desired You can either Run or Debug Kernel Task directly, after building your project. The first time you do it, it will bring up a Run dialog, where you will be able to configure how your program is run. You need to type in the entry point of the program, which is FRC_UserProgram_StartupLibraryInit for WPILib code. If running normally, just hit the "Run" button, which will start running the code.

If you need to test another build, you must first unload your program from the cRIO's memory - find YourProjectName.out in the Remote Systems list, and delete it (don't change any of the check boxes that come up - just hit OK). Then you can run another version of your code . It's a pain, but it works.

Note that you must also "undeploy" any code you've deployed to flash, otherwise directly running your program won't work.
__________________
One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2009, 09:29
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Cannot Download Code to our Robot

right click on the project, if you just created this project, and not built it yet, build, otherwise, Run (or Debug) Kernel Task, and set the values as specified in the updated C CPP Programming guide.pdf (the values only need to be entered once)
hit run
it runs w/o you rebooting
reboot cRIO to "undeploy"
edit file
Repeat

you don't need to undeploy, just reboot the cRIO
(make sure the downloaded code is undeployed)
Also, if you want to FIRST>Download,
you need to rebuild the project (Ctrl +Shift+A)
and then Undeploy, Download, reboot
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #6   Spotlight this post!  
Unread 16-01-2009, 12:21
popo308's Avatar
popo308 popo308 is offline
Registered User
AKA: Brent
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Winnebago, IL
Posts: 312
popo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to all
Send a message via AIM to popo308
Re: Cannot Download Code to our Robot

In labview how to you get the code to stay after a reboot?(permanent download)

I found a thread somewhere that explained this but i can't seem to find it again and i dont think its worth starting a new thread....

Thanks
Reply With Quote
  #7   Spotlight this post!  
Unread 16-01-2009, 12:33
JamesByrne's Avatar
JamesByrne JamesByrne is offline
Registered User
FRC #0360 (The revelution)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Tacoma
Posts: 74
JamesByrne is on a distinguished road
Re: Cannot Download Code to our Robot

When you deploy the code in labview you need to select run on boot option from the drop down box. This will make it so that it works. at least in my experience.
__________________
Reply With Quote
  #8   Spotlight this post!  
Unread 16-01-2009, 13:33
RKElectricalman's Avatar
RKElectricalman RKElectricalman is offline
Meezy the Mentor
AKA: Rameez
FRC #0384 (Sparky 384)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Richmond, Va
Posts: 88
RKElectricalman is just really niceRKElectricalman is just really niceRKElectricalman is just really niceRKElectricalman is just really nice
Send a message via AIM to RKElectricalman
Re: Cannot Download Code to our Robot

just for reference, I ran into the same issue. Early on when testing code, I never saw a change in code, especially when I knew I made drastic changes. What you have to do is run in to preferences, and chance your FIRST downloader preferences, and change the location of your .out file. It's usually on your computer under workspace.

let me know if this works

-Rameez
__________________
ahhh Division Finalists!!
Reply With Quote
  #9   Spotlight this post!  
Unread 17-01-2009, 16:51
StevenB StevenB is offline
is having FRC withdrawal symptoms.
AKA: Steven Bell
no team
Team Role: College Student
 
Join Date: May 2005
Rookie Year: 2005
Location: Stanford, CA
Posts: 416
StevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond repute
Re: Cannot Download Code to our Robot

Quote:
Originally Posted by jcvd View Post
Our problem is somewhat strange in that we don't encounter any errors when trying to download code to our robot, but when we go to test our robot, the behaviour does not change. For example, if we comment out everything in our code involving driving, and then download code, we will be able to do so, but then when we go to test our robot it can still drive.

Things that are worthy of mentioning are that:
-We are using C++ and Wind River, not LabVIEW
-We HAVE updated our cRio
-We are running a Subversion server
We've got the same problem. We've followed all of the WindRiver-associated steps mentioned in this thread. We are not running SVN, but everything else you mentioned is the same.
On some occasions, we've had it suddenly work, but we haven't been able to deduce why, and it only lasted for one or two reboot/reprogram iterations.
__________________
Need a physics refresher? Want to know if that motor is big enough for your arm? A FIRST Encounter with Physics

2005-2007: Student | Team #1519, Mechanical Mayhem | Milford, NH
2008-2011: Mentor | Team #2359, RoboLobos | Edmond, OK
2014-??: Mentor | Looking for a team...
Reply With Quote
  #10   Spotlight this post!  
Unread 27-01-2009, 13:09
StevenB StevenB is offline
is having FRC withdrawal symptoms.
AKA: Steven Bell
no team
Team Role: College Student
 
Join Date: May 2005
Rookie Year: 2005
Location: Stanford, CA
Posts: 416
StevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond repute
Re: Cannot Download Code to our Robot

I think I've found the solution (thanks to Ken Streeter and Brad Miller).
http://www.chiefdelphi.com/forums/showpost.php?p=807962&postcount=5

Before trying to download code, the robot should be "dead": No PWM outputs, no console output when you press buttons. If you get either of these, you have to undeploy the default image code first.
__________________
Need a physics refresher? Want to know if that motor is big enough for your arm? A FIRST Encounter with Physics

2005-2007: Student | Team #1519, Mechanical Mayhem | Milford, NH
2008-2011: Mentor | Team #2359, RoboLobos | Edmond, OK
2014-??: Mentor | Looking for a team...
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to upload/download the code from a robot? Team865 Programming 3 06-11-2007 17:03
2006 Robot Code Download Chris_Elston Programming 2 05-05-2006 10:42
Download code from robot Luminous Programming 4 25-05-2005 13:32
need a website? download our web site Jeremy_Mc Website Design/Showcase 6 17-11-2002 15:46


All times are GMT -5. The time now is 03:11.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi