Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   .out file not building! (http://www.chiefdelphi.com/forums/showthread.php?t=92430)

Rosemount2606 20-02-2011 12:00

.out file not building!
 
We have been using windriver fine this whole season, when suddenly, our .out files stopped getting updated. No matter how many times we rebuilt the code, or restarted windriver, they still won't build. Has anybody else had this problem, and how did you fix it?

Thanks in advance for any help!

tomy 20-02-2011 12:38

Re: .out file not building!
 
have you changed the name of your code

ex. simple_robot -> 2011_team_3038

if so you have to open windriver go to windows on the top menu bar, preferences, first deployment and make sure you file path is directing to the write .out file

Rosemount2606 20-02-2011 12:42

Re: .out file not building!
 
no, we haven't changed the name of the code, and the .out file path is correct. When building, it doesn't update the .out file. The only solution we have seen is to restart windriver. The very first day of the build season that solved the problem, and it hasn't come up since. Now it isn't working.

Rosemount2606 20-02-2011 13:40

Re: .out file not building!
 
ok... we have found a solution, but uncovered more problems.

first, we build the project. It does not create the .out file.

To solve this, we then rebuild the project (actually using "rebuild") and it then correctly updates the .out file.

When we deploy the code, it appears as if it is being deployed properly. The transferring file bar goes all the way across. There are no errors at this point.

At this point, we reboot the robot. We have tried doing this both via the classmate rebooting the crio, and a manual reboot of the robot by resetting its power.

Then, we reestablish comms with the robot, only to see that the new code is not on the robot.

We have tried re-imaging the robot, and then repeating the above steps, all of them working fine. Now, instead of still having the same old code on the robot, we have no code on the robot. We are unable to get any code onto the robot.

We have tried deploying code from another computer as well, and it didn't solve the problem.

Before re-imaging the crio, we tried undeploying code from the robot, but it would not work.

We are using windriver.

tomy 20-02-2011 13:53

Re: .out file not building!
 
you have to go to preferences and fine the path to your .out file

read this

Rosemount2606 20-02-2011 14:03

Re: .out file not building!
 
Quote:

Originally Posted by tomy (Post 1027480)
you have to go to preferences and fine the path to your .out file

We said that we did that in our post above. We double checked it, and the path is properly set.


Quote:

Originally Posted by tomy (Post 1027480)
read this

We followed that guide, and everything that it said to do, we have already done and tried multiple times. We have also gone through this and we still haven't come across a solution to our problem.

tomy 20-02-2011 14:09

Re: .out file not building!
 
when you build are you getting any errors?

Rosemount2606 20-02-2011 14:11

Re: .out file not building!
 
negative, ghostrider.

Quote:

Originally Posted by Rosemount2606 (Post 1027470)
When we deploy the code, it appears as if it is being deployed properly. The transferring file bar goes all the way across. There are no errors at this point.


tomy 20-02-2011 14:14

Re: .out file not building!
 
ok so you build it and you get no errors right?

so what is the problem?

Rosemount2606 20-02-2011 14:15

Re: .out file not building!
 
yes, we get no errors. We don't know what the problem is. We are wondering if somebody does, and can help us resolve it.

tomy 20-02-2011 14:16

Re: .out file not building!
 
can you deploy it to the robot?

Rosemount2606 20-02-2011 14:17

Re: .out file not building!
 
yes

Quote:

Originally Posted by Rosemount2606 (Post 1027470)
When we deploy the code, it appears as if it is being deployed properly. The transferring file bar goes all the way across. There are no errors at this point.


tomy 20-02-2011 14:18

Re: .out file not building!
 
so then what is the problem??????

tomy 20-02-2011 14:19

Re: .out file not building!
 
are you changing something in the wpilib that is not changing when you download it to the robot or what is wrong

Rosemount2606 20-02-2011 14:22

Re: .out file not building!
 
Quote:

Originally Posted by Rosemount2606 (Post 1027470)
When we deploy the code, it appears as if it is being deployed properly. The transferring file bar goes all the way across. There are no errors at this point.

Quote:

Originally Posted by Rosemount2606 (Post 1027470)
We are unable to get any code onto the robot.

does that help?

Rosemount2606 20-02-2011 14:23

Re: .out file not building!
 
Quote:

Originally Posted by tomy (Post 1027509)
are you changing something in the wpilib that is not changing when you download it to the robot or what is wrong

we are not changing it

basicxman 20-02-2011 14:24

Re: .out file not building!
 
Quote:

Originally Posted by tomy (Post 1027507)
so then what is the problem??????

Please read the entire thread...

Rosemount: Could you please post your source code? We have found WindRiver and vxWorks can do some odd things, sometimes an obscure runtime error will make the illusion of it uploading but older code is ran.

EDIT: You are doing Undeploy -> Deploy -> Reboot robot correct?

tomy 20-02-2011 14:26

Re: .out file not building!
 
have you reimaged your crio?
have you updated windriver?
on the crio are all dongles off but counsel out?
have you done a clean build?
do you have anything in your code that is not hooked up to the robot?
ex: sensor, encoder....

Rosemount2606 20-02-2011 14:28

Re: .out file not building!
 
Quote:

Originally Posted by basicxman (Post 1027515)
EDIT: You are doing Undeploy -> Deploy -> Reboot robot correct?

That is correct. The first time we do it, a window opens and closes immediately, so we cannot read it. If we do that again, is says "Unable to delete the UserProgram from the robot."

posting source in a second.

Rosemount2606 20-02-2011 14:33

Re: .out file not building!
 
Quote:

Originally Posted by basicxman (Post 1027515)
Rosemount: Could you please post your source code? We have found WindRiver and vxWorks can do some odd things, sometimes an obscure runtime error will make the illusion of it uploading but older code is ran.

In an attempt to fix our problems we have created a new project and widdled our code down to the essentials.

RJoystick is just a subclass of Joystick.
Our ZomBDashboard was working before we ran into these issues.

Code:

#include "WPILib.h"
#include "ZomBDashboard.h"
#include "RJoystick.h"

/**
 * This is a demo program showing the use of the RobotBase class.
 * The SimpleRobot class is the base of a robot application that will automatically call your
 * Autonomous and OperatorControl methods at the right time as controlled by the switches on
 * the driver station or the field controls.
 */
class RobotDemo : public SimpleRobot
{
        RobotDrive                myRobot; // robot drive system
        RJoystick                leftstick; // only joystick
        RJoystick                rightstick;
        ZomBDashboard        zomb;
        Jaguar                        winch_motor;
        Compressor                compressor;

public:
        RobotDemo(void):
                myRobot(1, 2),        // these must be initialized in the same order
                leftstick(1),                // as they are declared above.
                rightstick(2),
                zomb(ZomBDashboard::GetInstance(TCP)),
                winch_motor(3),
                compressor(5,4)
        {
                myRobot.SetExpiration(0.1);
        }

        /**
        * Drive left & right motors for 2 seconds then stop
        */
        void Autonomous(void)
        {
                myRobot.SetSafetyEnabled(false);
                myRobot.Drive(0.1, 0.0);        // drive forwards half speed
                Wait(2.0);                                //    for 2 seconds
                myRobot.Drive(0.0, 0.0);        // stop robot
        }

        /**
        * Runs the motors with arcade steering.
        */
        void OperatorControl(void)
        {
                myRobot.SetSafetyEnabled(true);
                while (IsOperatorControl())
                {
                        compressor.Start();
                        leftstick.UpdateButtonStates();
                        rightstick.UpdateButtonStates();
                        myRobot.TankDrive(leftstick, rightstick);
                       
                        if(zomb.CanSend())
                        {
                                zomb.Add("leftStickAxis", leftstick.GetY());
                                zomb.Add("rightStickAxis", rightstick.GetY());
                                zomb.Add("testtext", "RWRRSARSR");
                                zomb.Send();
                               
                        }
                       
                       
                        Wait(0.02);//Min time to wait is 0.005
                }
        }
};

START_ROBOT_CLASS(RobotDemo);


Rosemount2606 20-02-2011 14:36

Re: .out file not building!
 
Quote:

Originally Posted by tomy (Post 1027517)
have you reimaged your crio?
have you updated windriver?
on the crio are all dongles off but counsel out?
have you done a clean build?
do you have anything in your code that is not hooked up to the robot?
ex: sensor, encoder....

-Im not really sure where to find a windriver update but i feel like ours should be updated.
-Yes we reimaged the CRIO, thats why we not have no code on or robot.
- Yes the dongles are off except console out
-Yes we did a clean build
-No

tomy 20-02-2011 14:36

Re: .out file not building!
 
if i remember right you are missing a brace here

Code:

class RobotDemo : public SimpleRobot
{
RobotDrive myRobot; // robot drive system
RJoystick leftstick; // only joystick
RJoystick        rightstick;
ZomBDashboard zomb;
Jaguar winch_motor;
Compressor compressor;
}


Rosemount2606 20-02-2011 14:38

Re: .out file not building!
 
Quote:

Originally Posted by tomy (Post 1027526)
if i remember right you are missing a brace here

Code:

class RobotDemo : public SimpleRobot
{
RobotDrive myRobot; // robot drive system
RJoystick leftstick; // only joystick
RJoystick        rightstick;
ZomBDashboard zomb;
Jaguar winch_motor;
Compressor compressor;
}


negative ghostrider. If that were an issue, we would of gotten a compiler error.

Rosemount2606 20-02-2011 14:46

Re: .out file not building!
 
I'm not sure if this helps but we tried following this(Start on p.12) guide on Debugging the robot. The "Entry Point" of FRC_UserProgram.... it tells us to use is no where to be found.

Peragore 20-02-2011 14:47

Re: .out file not building!
 
we are having the same problem with deploying our code. We have tried everything mentioned in this thread and nothing has worked. Im with team 2606 on this one. And its bizarre because it worked perfectly at the beginning of the build season for us.

Rosemount2606 20-02-2011 15:05

Re: .out file not building!
 
If it helps, we are deploying it, so to speak. It just seemed like this may have been overlooked. It says it is deploying properly, but when we reboot the robot, it has no code on it.

Peragore 20-02-2011 15:08

Re: .out file not building!
 
That's is what is happening to me as well. Its like the code vanishes as it goes from the laptop to the cRIO

tomy 20-02-2011 15:21

Re: .out file not building!
 
check the dongles on the crio

this happened to us in our first year.

all of them should be off exept for counsel out

also how are you rebooting ?

Rosemount2606 20-02-2011 15:28

Re: .out file not building!
 
Quote:

Originally Posted by Rosemount2606 (Post 1027525)
-
- Yes the dongles are off except console out

We are rebooting through the driverstation and cutting power via the breaker, and then giving it back to the robot

tomy 20-02-2011 15:42

Re: .out file not building!
 
all you have to do to reboot is use the driverstation

make sure the code fully downloads

are you using the clam for programming?

Peragore 20-02-2011 15:42

Re: .out file not building!
 
Quote:

Originally Posted by tomy (Post 1027556)
check the dongles on the crio

this happened to us in our first year.

all of them should be off exept for counsel out

also how are you rebooting ?

Thanks! Flipping the console out switch on fixed it for us.

Rosemount2606 20-02-2011 15:46

Re: .out file not building!
 
Quote:

Originally Posted by tomy (Post 1027572)
all you have to do to reboot is use the driverstation

make sure the code fully downloads

are you using the clam for programming?

I meant to say that we have tried both methods, mainly we have just been doing the reboot of the crio via the classmate, but since that wasn't working, we also tried the physical reset.

The code has "fully downloaded". As in, when we say to deploy, the transfer status bar fills up.

We do not know what you mean by "the clam for programming"

thanks for the help!

garyk 20-02-2011 15:54

Re: .out file not building!
 
Quote:

Originally Posted by Peragore (Post 1027536)
we are having the same problem with deploying our code. We have tried everything mentioned in this thread and nothing has worked. Im with team 2606 on this one. And its bizarre because it worked perfectly at the beginning of the build season for us.

OK, I'm going to suggest some things you may (or some other team) has tried already:

WindRiver => Project => Clean. Click "Clean all Projects" and turn "Start A build Immediately" OFF, OK. Clean deletes the .out file and other temp files that the compile and link process creates.

WRW => Project => Close for all open projects.

With the robot on, etc: WindRiver => Deploy. It should fail because the .out file was removed by the clean but shouldn't complain about not connecting to the 'bot. Hit Details and check.

Exit WRW and reboot your PC and the Drivers Station. Power cycle the robot.

WRW => File => New => Example => VxWorks downloadable kernel module sample proj. Choose "FRC Drivers Station LCD Text" (I assume you haven't created this proj already). The project will be created and opened.

WRW => Project => Build Project. There should be no errors or warnings.

WRW => Window => Preferences => FIRST downloader Preferences. Your team number should be correct. Browse and select the .out file you just built. It should be (maybe broken into two lines or have a space here):

C:\WindRiver\workspace\DriverStationLCDText\PPC603 gnu\DriverStationLCDText\Debug\DriverStationLCDTex t.out

Don't hit OK yet. In the Browse window upper right frame are the icons: green arrow up, new folder, and the rectangle with the six dots. Click the rectangle and select Detals. Verify that the Modify timestamp on your .out matches the date and time you just did the Build Project above. Click on that .out, Open, OK.

Make sure the 'bot is on and wireless is up.
WRW => FIRST => Deploy. The file should download to the 'bot.

Power cycle the 'bot, bring up the Drivers Station if you haven't already, and get connected.

Enable the robot and the text "Hello World" and the time should appear on the Drivers Stn LCD. I HAVE NOT RUN THIS PROGRAM and I can't get to our 'bot now. I'm going to assume the program is written correctly.

Let us know what happens. If it just doesn't work it's probably time to uninstall WRW and reinstall it, including the patches.

basicxman 20-02-2011 16:18

Re: .out file not building!
 
Quote:

Originally Posted by Rosemount2606 (Post 1027576)
The code has "fully downloaded". As in, when we say to deploy, the transfer status bar fills up.

WindRiver frequently says stuff that is incorrect :rolleyes:. Sometimes the progress bar will complete even when there is no connected target >_>

Quote:

Originally Posted by Rosemount2606 (Post 1027576)
We do not know what you mean by "the clam for programming"

I...think...he means the netbook provided in the kit of parts (reference to Clamshell netbooks?).

Rosemount2606 20-02-2011 16:18

Re: .out file not building!
 
Quote:

Originally Posted by garyk (Post 1027582)
OK, I'm going to suggest some things you may (or some other team) has tried already:

WindRiver => Project => Clean. Click "Clean all Projects" and turn "Start A build Immediately" OFF, OK. Clean deletes the .out file and other temp files that the compile and link process creates.

WRW => Project => Close for all open projects.

With the robot on, etc: WindRiver => Deploy. It should fail because the .out file was removed by the clean but shouldn't complain about not connecting to the 'bot. Hit Details and check.

Exit WRW and reboot your PC and the Drivers Station. Power cycle the robot.

Random Information: After cleaning the project and trying to deploy, got a "IO Error while downloading program to robot"

Quote:

WRW => File => New => Example => VxWorks downloadable kernel module sample proj. Choose "FRC Drivers Station LCD Text" (I assume you haven't created this proj already). The project will be created and opened.

WRW => Project => Build Project. There should be no errors or warnings.

WRW => Window => Preferences => FIRST downloader Preferences. Your team number should be correct. Browse and select the .out file you just built. It should be (maybe broken into two lines or have a space here):

C:\WindRiver\workspace\DriverStationLCDText\PPC603 gnu\DriverStationLCDText\Debug\DriverStationLCDTex t.out

Don't hit OK yet. In the Browse window upper right frame are the icons: green arrow up, new folder, and the rectangle with the six dots. Click the rectangle and select Detals. Verify that the Modify timestamp on your .out matches the date and time you just did the Build Project above. Click on that .out, Open, OK.
After creating the DriverstationLCD project. I told it to build and it did not create a .out file. I restarted windriver and the rightclicked the projected and said "Rebuild." This created the .out file.

Everything went according to your directions.

Quote:

Make sure the 'bot is on and wireless is up.
WRW => FIRST => Deploy. The file should download to the 'bot.

Power cycle the 'bot, bring up the Drivers Station if you haven't already, and get connected.

Enable the robot and the text "Hello World" and the time should appear on the Drivers Stn LCD. I HAVE NOT RUN THIS PROGRAM and I can't get to our 'bot now. I'm going to assume the program is written correctly.

Let us know what happens. If it just doesn't work it's probably time to uninstall WRW and reinstall it, including the patches.
Excellent. The text is up on the driverstation. Thank you.
I will now try to put our code on the robot and post after.

basicxman 20-02-2011 16:19

Re: .out file not building!
 
Quote:

Originally Posted by Rosemount2606 (Post 1027525)
-Im not really sure where to find a windriver update but i feel like ours should be updated.

I mean this in the most gentle way possible: This isn't satisfactory.

http://firstforge.wpi.edu/sf/frs/do/...e_for_2011_f_1

Peragore 20-02-2011 18:26

Re: .out file not building!
 
Quote:

Originally Posted by garyk (Post 1027582)
OK, I'm going to suggest some things you may (or some other team) has tried already:

WindRiver => Project => Clean. Click "Clean all Projects" and turn "Start A build Immediately" OFF, OK. Clean deletes the .out file and other temp files that the compile and link process creates.

WRW => Project => Close for all open projects.

With the robot on, etc: WindRiver => Deploy. It should fail because the .out file was removed by the clean but shouldn't complain about not connecting to the 'bot. Hit Details and check.

Exit WRW and reboot your PC and the Drivers Station. Power cycle the robot.

WRW => File => New => Example => VxWorks downloadable kernel module sample proj. Choose "FRC Drivers Station LCD Text" (I assume you haven't created this proj already). The project will be created and opened.

WRW => Project => Build Project. There should be no errors or warnings.

WRW => Window => Preferences => FIRST downloader Preferences. Your team number should be correct. Browse and select the .out file you just built. It should be (maybe broken into two lines or have a space here):

C:\WindRiver\workspace\DriverStationLCDText\PPC603 gnu\DriverStationLCDText\Debug\DriverStationLCDTex t.out

Don't hit OK yet. In the Browse window upper right frame are the icons: green arrow up, new folder, and the rectangle with the six dots. Click the rectangle and select Detals. Verify that the Modify timestamp on your .out matches the date and time you just did the Build Project above. Click on that .out, Open, OK.

Make sure the 'bot is on and wireless is up.
WRW => FIRST => Deploy. The file should download to the 'bot.

Power cycle the 'bot, bring up the Drivers Station if you haven't already, and get connected.

Enable the robot and the text "Hello World" and the time should appear on the Drivers Stn LCD. I HAVE NOT RUN THIS PROGRAM and I can't get to our 'bot now. I'm going to assume the program is written correctly.

Let us know what happens. If it just doesn't work it's probably time to uninstall WRW and reinstall it, including the patches.

Thanks for the help, but we already managed to fix this. When we flipped the console dongle to "On" we were able to deploy. I hope this as well as what you wrote, can help other teams!


All times are GMT -5. The time now is 12:27.

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